2015-02-02 15:05 GMT+03:00 Konstantin Kolinko <knst.koli...@gmail.com>:
> 2015-01-28 22:35 GMT+03:00 Violeta Georgieva <violet...@apache.org>:
>> The proposed Apache Tomcat 7.0.59 release is now available for voting.
>>
>> It can be obtained from:
>> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-7/v7.0.59/
>> The Maven staging repo is:
>> https://repository.apache.org/content/repositories/orgapachetomcat-1033/
>> The svn tag is:
>> http://svn.apache.org/repos/asf/tomcat/tc7.0.x/tags/TOMCAT_7_0_59/
>>
>> The proposed 7.0.59 release is:
>> [ ] Broken - do not release
>> [x] Stable - go ahead and release as 7.0.59 Stable
>
> Smoke testing (JDK 8u31) - OK
>
> JUnit tests run with Java 6 alone and with Java 7 (Java 6 as JAVA_HOME
> + Java 7 in build.properties) with all connectors (BIO, NIO, APR),
> with 32-bit JDKs on Windows 7.
>
> There are the following failures:
> [...]
> 4) org.apache.coyote.http11.TestAbstractHttp11Processor
>
> Failed testNon2xxResponseWithExpectation with an NPE, on Java 6, all
> connectors (BIO, NIO, APR).
>
> The test passes successfully when running with Java 7.
>
> [[[
> Testcase: testNon2xxResponseWithExpectation took 0,216 sec
>     Caused an ERROR
> null
> java.lang.NullPointerException
>     at 
> org.apache.coyote.http11.TestAbstractHttp11Processor.doTestNon2xxResponseAndExpectation(TestAbstractHttp11Processor.java:646)
>     at 
> org.apache.coyote.http11.TestAbstractHttp11Processor.testNon2xxResponseWithExpectation(TestAbstractHttp11Processor.java:604)
> ]]]
>
> The test sets up a web application with a security constraint that
> forbids access to an echo servlet. It sends a request with "Expect:
> 100-continue"  and expects a 403 response with "Connection: close"
> header.
>
> The headers map of a response received with Java 6:
> {null=[HTTP/1.1 403 Forbidden], Content-Language=[en], Date=[Mon, 02
> Feb 2015 11:53:52 GMT], Content-Length=[1065],
> Content-Type=[text/html;charset=utf-8], Server=[Apache-Coyote/1.1]}
>
> There is no Connection: close header.
>
> This failure is odd and needs a review, but as the test passes with
> Java 7 I do not consider this as a stopper.
>

Running with a debugger, Java 6 does not send the "Expect:
100-continue" header. At Tomcat side the headers in
org.apache.coyote.Request are:

[[[
=== MimeHeaders ===
user-agent = Java/1.6.0_45
host = localhost:62264
accept = text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
connection = keep-alive
content-type = application/x-www-form-urlencoded
content-length = 10
]]]

Not a Tomcat's fault.

Best regards,
Konstantin Kolinko

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to