On 3 November 2010 10:57, sebb <[email protected]> wrote: > On 3 November 2010 10:18, sebb <[email protected]> wrote: >> On 3 November 2010 09:32, sebb <[email protected]> wrote: >>> On 3 November 2010 08:03, Milamber <[email protected]> wrote: >>>> Hello, >>>> >>>> When I use Ant script [tests] (on same project), I have the following >>>> errors : >>>> >>>> * 1 error with jdk1.6_21 >>>> * 1 error + 4 failures with jdk1.6_22 >>>> >>>> For the error, I think that must remove a slash in >>>> test/src/org/apache/jmeter/services/TestFileServer.java >>>> on this line : "infile=findTestPath("/testfiles/test.csv");" >>>> to infile=findTestPath("testfiles/test.csv"); >>> >>> Oops! >>> >>> No idea why this works on Windows. >>> >>>> For failures, I don't understand now (I don't really searching the root >>>> cause) >>> >>> Me neither, but I will investigate. >> >> Looks like the HTTP implementation has changed - it no longer seems to >> send the Content-Length header with POST requests.
Not so - the length is sent as before. It looks like the test case assumes that one can set Content-Length in the header and then retrieve it. I'm not sure what this achieves in the context of this test, so I think the best would be to remove that check of the request header. The mirrored content is checked later anyway. > Appears to be related to this bug: > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6996110 > > as setting "sun.net.http.allowRestrictedHeaders=true" allows the test > to complete successfully. > > Unfortunately "sun.net.http.allowRestrictedHeaders" does not appear to > be documented anywhere yet apart from the bug report. > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
