You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Mark Thomas <ma...@apache.org> on 2015/11/02 22:04:32 UTC

[VOTE] Release Apache Tomcat Native 1.2.1

Version 1.2.1 includes the following changes:
- Fix to enable 1.2.x to work with Tomcat releases that do not have
  the SNI callback implemented on the Java side

The proposed release artefacts can be found at [1],
and the build was done using tag [2].

The Apache Tomcat Native 1.2.1 is
 [ ] Stable, go ahead and release
 [ ] Broken because of ...


[1]
https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/1.2.1/
[2] https://svn.apache.org/repos/asf/tomcat/native/tags/TOMCAT_NATIVE_1_2_1

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


Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Mark,

On 11/2/15 4:04 PM, Mark Thomas wrote:
> Version 1.2.1 includes the following changes:
> - Fix to enable 1.2.x to work with Tomcat releases that do not have
>   the SNI callback implemented on the Java side
> 
> The proposed release artefacts can be found at [1],
> and the build was done using tag [2].
> 
> The Apache Tomcat Native 1.2.1 is
>  [ ] Stable, go ahead and release
>  [ ] Broken because of ...
> 
> 
> [1]
> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/1.2.1/
> [2] https://svn.apache.org/repos/asf/tomcat/native/tags/TOMCAT_NATIVE_1_2_1

I'm unsure of how to interpret these unit test failures, so I'll just
report them and you can tell me if they can safely be ignored.

Environment: Tomcat 8.0.28, OpenSSL 1.0.1e (Debian, includes back-ported
security fixes), tcnative 1.2.1rc

============================================================
org.apache.tomcat.util.net.TestSsl.APR.txt
============================================================
Testcase: testKeyPass took 0.362 sec
        Caused an ERROR
Unexpected end of file from server
java.net.SocketException: Unexpected end of file from server
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:792)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
        at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:789)
        at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:647)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1535)
        at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1440)
        at
java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:480)
        at
sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:338)
        at
org.apache.catalina.startup.TomcatBaseTest.methodUrl(TomcatBaseTest.java:668)
        at
org.apache.catalina.startup.TomcatBaseTest.getUrl(TomcatBaseTest.java:640)
        at
org.apache.catalina.startup.TomcatBaseTest.getUrl(TomcatBaseTest.java:634)
        at
org.apache.catalina.startup.TomcatBaseTest.getUrl(TomcatBaseTest.java:623)
        at
org.apache.catalina.startup.TomcatBaseTest.getUrl(TomcatBaseTest.java:617)
        at org.apache.tomcat.util.net.TestSsl.testKeyPass(TestSsl.java:87)

Testcase: testRenegotiateWorks took 0.012 sec
        SKIPPED: SSL renegotiation has to be supported for this test

============================================================
org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.APR.txt
============================================================
Testcase: testBug56032 took 83.172 sec
        FAILED
No error reported by Endpoint when timeout was expected
junit.framework.AssertionFailedError: No error reported by Endpoint when
timeout was expected
        at
org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.testBug56032(TestWebSocketFrameClientSSL.java:142)

Testcase: testConnectToServerEndpoint took 0.275 sec
        Caused an ERROR
The HTTP request to initiate the WebSocket connection failed
javax.websocket.DeploymentException: The HTTP request to initiate the
WebSocket connection failed
        at
org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer(WsWebSocketContainer.java:364)
        at
org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer(WsWebSocketContainer.java:204)
        at
org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.testConnectToServerEndpoint(TestWebSocketFrameClientSSL.java:66)
Caused by: java.util.concurrent.ExecutionException:
java.lang.IllegalStateException: Unexpected Status of SSLEngineResult
after an unwrap() operation
        at
org.apache.tomcat.websocket.AsyncChannelWrapperSecure$WrapperFuture.get(AsyncChannelWrapperSecure.java:508)
        at
org.apache.tomcat.websocket.WsWebSocketContainer.processResponse(WsWebSocketContainer.java:607)
        at
org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer(WsWebSocketContainer.java:316)
Caused by: java.lang.IllegalStateException: Unexpected Status of
SSLEngineResult after an unwrap() operation
        at
org.apache.tomcat.websocket.AsyncChannelWrapperSecure$ReadTask.run(AsyncChannelWrapperSecure.java:313)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

============================================================
org.apache.tomcat.websocket.TestWsWebSocketContainer.APR.txt
============================================================

Testcase: testConnectToServerEndpointSSL took 1.135 sec
        Caused an ERROR
The HTTP request to initiate the WebSocket connection failed
javax.websocket.DeploymentException: The HTTP request to initiate the
WebSocket connection failed
        at
org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer(WsWebSocketContainer.java:364)
        at
org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer(WsWebSocketContainer.java:204)
        at
org.apache.tomcat.websocket.TestWsWebSocketContainer.testConnectToServerEndpointSSL(TestWsWebSocketContainer.java:829)
Caused by: java.util.concurrent.ExecutionException:
java.lang.IllegalStateException: Unexpected Status of SSLEngineResult
after an unwrap() operation
        at
org.apache.tomcat.websocket.AsyncChannelWrapperSecure$WrapperFuture.get(AsyncChannelWrapperSecure.java:508)
        at
org.apache.tomcat.websocket.WsWebSocketContainer.processResponse(WsWebSocketContainer.java:607)
        at
org.apache.tomcat.websocket.WsWebSocketContainer.connectToServer(WsWebSocketContainer.java:316)
Caused by: java.lang.IllegalStateException: Unexpected Status of
SSLEngineResult after an unwrap() operation
        at
org.apache.tomcat.websocket.AsyncChannelWrapperSecure$ReadTask.run(AsyncChannelWrapperSecure.java:313)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:745)

Thanks,
-chris

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


Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Rémy Maucherat <re...@apache.org>.
2015-11-03 21:14 GMT+01:00 Christopher Schultz <chris@christopherschultz.net
>:

> Fixing the APR path allows tcnative to build without warnings or errors.
> It even links against libssl, even though the configure script really
> wants to have OpenSSL 1.0.2 and I only have 1.0.1. I'm curious to see
> what happens when I run it.
>
> Since there are issues that are being investigated, it would be best to
focus exclusively on OpenSSL 1.0.2d (that's a requirement for ALPN and
HTTP/2 support, so it's *really* a requirement for using tcnative 1.2,
there's no point in this release without it) and not test anything else to
avoid running into other errors that could confuse everyone.

Rémy

Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Rainer,

On 11/3/15 12:36 PM, Rainer Jung wrote:
> Am 03.11.2015 um 17:18 schrieb Christopher Schultz:
>> Mark,
>>
>> On 11/2/15 4:04 PM, Mark Thomas wrote:
>>> Version 1.2.1 includes the following changes:
>>> - Fix to enable 1.2.x to work with Tomcat releases that do not have
>>>    the SNI callback implemented on the Java side
>>>
>>> The proposed release artefacts can be found at [1],
>>> and the build was done using tag [2].
>>>
>>> The Apache Tomcat Native 1.2.1 is
>>>   [ ] Stable, go ahead and release
>>>   [ ] Broken because of ...
>>>
>>>
>>> [1]
>>> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/1.2.1/
>>>
>>> [2]
>>> https://svn.apache.org/repos/asf/tomcat/native/tags/TOMCAT_NATIVE_1_2_1
>>
>> I don't have OpenSSL 1.0.2 on one of my Linux servers, and I get this
>> result:
>>
>> $ ./configure --with-apr=../../apr-1.4.6 --with-ssl
>> checking build system type... x86_64-unknown-linux-gnu
>> checking host system type... x86_64-unknown-linux-gnu
>> checking target system type... x86_64-unknown-linux-gnu
>> checking for a BSD-compatible install... /usr/bin/install -c
>> checking for working mkdir -p... yes
>> Tomcat Native Version: 1.2.1
>> checking for chosen layout... tcnative
>> checking for APR... yes
>> configure: APR 1.4.6 detected.
>> ./configure: line 2689: cd: /home/cschultz/projects/apr-1.4.6/build: No
> 
> We need to determine, where APR installed some build support files.
> configure does in line 2687
> 
> APR_BUILD_DIR="`$apr_config --installbuilddir`"
> 
> then cd to APR_BUILD_DIR and then pwd to get the dir path.
> 
> You might want to insert directly before line
> 
> 2687   APR_BUILD_DIR="`$apr_config --installbuilddir`"
> 
> an
> 
> echo $apr_config
> 
> to check, which apr_config was actually used, whether the one from the
> APR you wanted to use, or another one. Then you can run
> 
> apr_config --installbuilddir
> 
> by yourself using the same apr_config, that your echo gave and look into
> the directory, that is returned by that command. That directory must
> exist and there needs to be an apr_rules.mk file in that directory.

It looks like my apr directory didn't have all it needed. Using
--with-apr=`which apr-config` did the trick on my Debian Linux system. I
had been playing around with different APR versions a while back and it
looks like I selected the wrong one for the build.

Fixing the APR path allows tcnative to build without warnings or errors.
It even links against libssl, even though the configure script really
wants to have OpenSSL 1.0.2 and I only have 1.0.1. I'm curious to see
what happens when I run it.

>> such file or directory
>>    setting CC to "gcc"
>>    setting CPP to "gcc -E"
>>    adding "-I/usr/local/java-8/include" to TCNATIVE_PRIV_INCLUDES
>> checking for JDK os include directory...  linux
>>    adding "-I/usr/local/java-8/include/linux" to TCNATIVE_PRIV_INCLUDES
>> checking for gcc... gcc
>> checking whether the C compiler works... yes
>> checking for C compiler default output file name... a.out
>> checking for suffix of executables...
>> checking whether we are cross compiling... no
>> checking for suffix of object files... o
>> checking whether we are using the GNU C compiler... yes
>> checking whether gcc accepts -g... yes
>> checking for gcc option to accept ISO C89... none needed
>> checking for OpenSSL library... using openssl from /usr/lib and
>> /usr/include
>> checking OpenSSL library version >= 1.0.2...
>>
>> Found   OPENSSL_VERSION_NUMBER 0x1000105f (OpenSSL 1.0.1e 11 Feb 2013)
>> Require OPENSSL_VERSION_NUMBER 0x1000200f or greater (1.0.2)
>>
>> not compatible
>> checking for OpenSSL DSA support... yes
>>    setting TCNATIVE_LDFLAGS to "-lssl -lcrypto"
>>    adding "-DHAVE_OPENSSL" to CFLAGS
>>    setting TCNATIVE_LIBS to ""
>>    setting TCNATIVE_LIBS to "
>> /home/cschultz/projects/apr-1.4.6/libapr-1.la -luuid -lrt -lcrypt
>> -lpthread -ldl"
>> checking for apr_pollset_wakeup in -lapr-1... yes
>>    adding "-DHAVE_POLLSET_WAKEUP" to CFLAGS
>> cp: cannot stat `/apr_rules.mk': No such file or directory
> 
> Same root cause as above.
> 
>> configure: creating ./config.status
>> config.status: creating tcnative.pc
>> config.status: creating Makefile
>> config.status: executing default commands
>> $ make
>> Makefile:47:
>> /home/cschultz/projects/apache/tomcat-native-1.2.1-src/native/build/rules.mk:
>>
>> No such file or directory
>> make: *** No rule to make target
>> `/home/cschultz/projects/apache/tomcat-native-1.2.1-src/native/build/rules.mk'.
>>
>>   Stop.
>>
>>
>> Presumably, this is due to the OpenSSL version problem, but configure
>> doesn't /appear/ to fail, and then make certainly does.
>>
>> On my OS X system (once I babied the CLI built-tools back into working
>> order -- SO frustrating every time Apple updates something and breaks it
>> all), the build was clean -- not even a compiler warning.
>>
>> I haven't tested it at all. Just the build on both systems.
> 
> The problem is due to some APR mismatch. See above.

Fixed. Thanks for the review.

I now have two built modules (one Linux .so, one Mac OS X .dylib). I'll
try to get some testing done with them as well.

-chris

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


Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Rainer Jung <ra...@kippdata.de>.
Am 03.11.2015 um 17:18 schrieb Christopher Schultz:
> Mark,
>
> On 11/2/15 4:04 PM, Mark Thomas wrote:
>> Version 1.2.1 includes the following changes:
>> - Fix to enable 1.2.x to work with Tomcat releases that do not have
>>    the SNI callback implemented on the Java side
>>
>> The proposed release artefacts can be found at [1],
>> and the build was done using tag [2].
>>
>> The Apache Tomcat Native 1.2.1 is
>>   [ ] Stable, go ahead and release
>>   [ ] Broken because of ...
>>
>>
>> [1]
>> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/1.2.1/
>> [2] https://svn.apache.org/repos/asf/tomcat/native/tags/TOMCAT_NATIVE_1_2_1
>
> I don't have OpenSSL 1.0.2 on one of my Linux servers, and I get this
> result:
>
> $ ./configure --with-apr=../../apr-1.4.6 --with-ssl
> checking build system type... x86_64-unknown-linux-gnu
> checking host system type... x86_64-unknown-linux-gnu
> checking target system type... x86_64-unknown-linux-gnu
> checking for a BSD-compatible install... /usr/bin/install -c
> checking for working mkdir -p... yes
> Tomcat Native Version: 1.2.1
> checking for chosen layout... tcnative
> checking for APR... yes
> configure: APR 1.4.6 detected.
> ./configure: line 2689: cd: /home/cschultz/projects/apr-1.4.6/build: No

We need to determine, where APR installed some build support files. 
configure does in line 2687

APR_BUILD_DIR="`$apr_config --installbuilddir`"

then cd to APR_BUILD_DIR and then pwd to get the dir path.

You might want to insert directly before line

2687   APR_BUILD_DIR="`$apr_config --installbuilddir`"

an

echo $apr_config

to check, which apr_config was actually used, whether the one from the 
APR you wanted to use, or another one. Then you can run

apr_config --installbuilddir

by yourself using the same apr_config, that your echo gave and look into 
the directory, that is returned by that command. That directory must 
exist and there needs to be an apr_rules.mk file in that directory.

> such file or directory
>    setting CC to "gcc"
>    setting CPP to "gcc -E"
>    adding "-I/usr/local/java-8/include" to TCNATIVE_PRIV_INCLUDES
> checking for JDK os include directory...  linux
>    adding "-I/usr/local/java-8/include/linux" to TCNATIVE_PRIV_INCLUDES
> checking for gcc... gcc
> checking whether the C compiler works... yes
> checking for C compiler default output file name... a.out
> checking for suffix of executables...
> checking whether we are cross compiling... no
> checking for suffix of object files... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> checking for gcc option to accept ISO C89... none needed
> checking for OpenSSL library... using openssl from /usr/lib and /usr/include
> checking OpenSSL library version >= 1.0.2...
>
> Found   OPENSSL_VERSION_NUMBER 0x1000105f (OpenSSL 1.0.1e 11 Feb 2013)
> Require OPENSSL_VERSION_NUMBER 0x1000200f or greater (1.0.2)
>
> not compatible
> checking for OpenSSL DSA support... yes
>    setting TCNATIVE_LDFLAGS to "-lssl -lcrypto"
>    adding "-DHAVE_OPENSSL" to CFLAGS
>    setting TCNATIVE_LIBS to ""
>    setting TCNATIVE_LIBS to "
> /home/cschultz/projects/apr-1.4.6/libapr-1.la -luuid -lrt -lcrypt
> -lpthread -ldl"
> checking for apr_pollset_wakeup in -lapr-1... yes
>    adding "-DHAVE_POLLSET_WAKEUP" to CFLAGS
> cp: cannot stat `/apr_rules.mk': No such file or directory

Same root cause as above.

> configure: creating ./config.status
> config.status: creating tcnative.pc
> config.status: creating Makefile
> config.status: executing default commands
> $ make
> Makefile:47:
> /home/cschultz/projects/apache/tomcat-native-1.2.1-src/native/build/rules.mk:
> No such file or directory
> make: *** No rule to make target
> `/home/cschultz/projects/apache/tomcat-native-1.2.1-src/native/build/rules.mk'.
>   Stop.
>
>
> Presumably, this is due to the OpenSSL version problem, but configure
> doesn't /appear/ to fail, and then make certainly does.
>
> On my OS X system (once I babied the CLI built-tools back into working
> order -- SO frustrating every time Apple updates something and breaks it
> all), the build was clean -- not even a compiler warning.
>
> I haven't tested it at all. Just the build on both systems.

The problem is due to some APR mismatch. See above.

Regards,

Rainer


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


Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Mark,

On 11/2/15 4:04 PM, Mark Thomas wrote:
> Version 1.2.1 includes the following changes:
> - Fix to enable 1.2.x to work with Tomcat releases that do not have
>   the SNI callback implemented on the Java side
> 
> The proposed release artefacts can be found at [1],
> and the build was done using tag [2].
> 
> The Apache Tomcat Native 1.2.1 is
>  [ ] Stable, go ahead and release
>  [ ] Broken because of ...
> 
> 
> [1]
> https://dist.apache.org/repos/dist/dev/tomcat/tomcat-connectors/native/1.2.1/
> [2] https://svn.apache.org/repos/asf/tomcat/native/tags/TOMCAT_NATIVE_1_2_1

I don't have OpenSSL 1.0.2 on one of my Linux servers, and I get this
result:

$ ./configure --with-apr=../../apr-1.4.6 --with-ssl
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking for working mkdir -p... yes
Tomcat Native Version: 1.2.1
checking for chosen layout... tcnative
checking for APR... yes
configure: APR 1.4.6 detected.
./configure: line 2689: cd: /home/cschultz/projects/apr-1.4.6/build: No
such file or directory
  setting CC to "gcc"
  setting CPP to "gcc -E"
  adding "-I/usr/local/java-8/include" to TCNATIVE_PRIV_INCLUDES
checking for JDK os include directory...  linux
  adding "-I/usr/local/java-8/include/linux" to TCNATIVE_PRIV_INCLUDES
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for OpenSSL library... using openssl from /usr/lib and /usr/include
checking OpenSSL library version >= 1.0.2...

Found   OPENSSL_VERSION_NUMBER 0x1000105f (OpenSSL 1.0.1e 11 Feb 2013)
Require OPENSSL_VERSION_NUMBER 0x1000200f or greater (1.0.2)

not compatible
checking for OpenSSL DSA support... yes
  setting TCNATIVE_LDFLAGS to "-lssl -lcrypto"
  adding "-DHAVE_OPENSSL" to CFLAGS
  setting TCNATIVE_LIBS to ""
  setting TCNATIVE_LIBS to "
/home/cschultz/projects/apr-1.4.6/libapr-1.la -luuid -lrt -lcrypt
-lpthread -ldl"
checking for apr_pollset_wakeup in -lapr-1... yes
  adding "-DHAVE_POLLSET_WAKEUP" to CFLAGS
cp: cannot stat `/apr_rules.mk': No such file or directory
configure: creating ./config.status
config.status: creating tcnative.pc
config.status: creating Makefile
config.status: executing default commands
$ make
Makefile:47:
/home/cschultz/projects/apache/tomcat-native-1.2.1-src/native/build/rules.mk:
No such file or directory
make: *** No rule to make target
`/home/cschultz/projects/apache/tomcat-native-1.2.1-src/native/build/rules.mk'.
 Stop.


Presumably, this is due to the OpenSSL version problem, but configure
doesn't /appear/ to fail, and then make certainly does.

On my OS X system (once I babied the CLI built-tools back into working
order -- SO frustrating every time Apple updates something and breaks it
all), the build was clean -- not even a compiler warning.

I haven't tested it at all. Just the build on both systems.

-chris

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


Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Mark Thomas <ma...@apache.org>.
On 02/11/2015 21:04, Mark Thomas wrote:
> Version 1.2.1 includes the following changes:
> - Fix to enable 1.2.x to work with Tomcat releases that do not have
>   the SNI callback implemented on the Java side
> 
> The proposed release artefacts can be found at [1],
> and the build was done using tag [2].
> 
> The Apache Tomcat Native 1.2.1 is
>  [ ] Stable, go ahead and release
>  [X] Broken because of ...

Unit test failures with native 1.2.1 + OpenSSL 1.0.2d

I've tracked these down to some missing fixes in the 1.1.x to trunk
ports for sslnetwork.c. At least, I've ported one missing patch and at
least some of the failing unit tests now pass.

I will commit the first fix for this shortly. Anything I commit will
compile but it might not be stable.

Mark

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


Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Rainer Jung <ra...@kippdata.de>.
Am 03.11.2015 um 13:31 schrieb Konstantin Kolinko:
> 2015-11-03 0:04 GMT+03:00 Mark Thomas <ma...@apache.org>:
>> Version 1.2.1 includes the following changes:
>> - Fix to enable 1.2.x to work with Tomcat releases that do not have
>>    the SNI callback implemented on the Java side
>>
>> The proposed release artefacts can be found at [1],
>> and the build was done using tag [2].
>>
>> The Apache Tomcat Native 1.2.1 is
>>   [ ] Stable, go ahead and release
>>   [ ] Broken because of ...
>
>
> Interim results.  Testing 7.0.x (@r1712220) with Java 8u66 (32-bit)
>
>     [concat] Testsuites with failed tests:
>     [concat] TEST-org.apache.catalina.authenticator.TestNonLoginAndBasicAuthenticator.APR.txt
>     [concat] TEST-org.apache.catalina.authenticator.TestSSOnonLoginAndBasicAuthenticator.APR.txt
>     [concat] TEST-org.apache.catalina.authenticator.TestSSOnonLoginAndDigestAuthenticator.APR.txt
>     [concat] TEST-org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.APR.txt
>     [concat] TEST-org.apache.tomcat.websocket.TestWsWebSocketContainer.APR.txt
>
> 1) All 3 authenticator tests are failing in an odd way:
>
> I guess that there is a change in Java 8 HttpURLConnection so that
> tests in Tomcat 7 became incorrect.
>
> IIRC somebody mentioned that there is some security feature protecting
> access tor request headers, and it can be turned off by some option.
>
> Testcase: testBasicLoginRejectProtectedWithSession took 0,265 sec
>      Caused an ERROR
> Illegal character(s) in message header field: Cookie:
> java.lang.IllegalArgumentException: Illegal character(s) in message
> header field: Cookie:
>      at sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader(HttpURLConnection.java:489)
>      at sun.net.www.protocol.http.HttpURLConnection.isExternalMessageHeaderAllowed(HttpURLConnection.java:459)
>      at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(HttpURLConnection.java:3018)
>      at org.apache.catalina.startup.TomcatBaseTest.methodUrl(TomcatBaseTest.java:648)
>      at org.apache.catalina.startup.TomcatBaseTest.getUrl(TomcatBaseTest.java:625)
>      at org.apache.catalina.startup.TomcatBaseTest.getUrl(TomcatBaseTest.java:619)
>      at org.apache.catalina.authenticator.TestNonLoginAndBasicAuthenticator.doTestNonLogin(TestNonLoginAndBasicAuthenticator.java:419)
>      at org.apache.catalina.authenticator.TestNonLoginAndBasicAuthenticator.testBasicLoginRejectProtectedWithSession(TestNonLoginAndBasicAuthenticator.java:401)

The message "Illegal character(s) in message header field" is thrown in 
Java 8 if the header names contains a line feed "\n". Problems with the 
header value would be signaled with "header value" not "header field".

So you might be able to debug into the problem by looking at 
TomcatBaseTest.methodUrl(), especially the keys of reqHead.entrySet().

Regards,

Rainer


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


Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Mark Thomas <ma...@apache.org>.
On 03/11/2015 13:05, Mark Thomas wrote:
> On 03/11/2015 12:31, Konstantin Kolinko wrote:

<snip/>

>> Testcase: testConnectToServerEndpointSSL took 63,823 sec
>>     FAILED
>> expected:<100000> but was:<0>
>> junit.framework.AssertionFailedError: expected:<100000> but was:<0>
>>     at org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.testConnectToServerEndpointSSL(TestWebSocketFrameClientSSL.java:92)
> 
> I see this error. I'll take a look.
> 
>> 3) org.apache.tomcat.websocket.TestWsWebSocketContainer
>>
>> Testcase: testConnectToServerEndpointSSL took 10,852 sec
>>     FAILED
>> null
>> junit.framework.AssertionFailedError
>>     at org.apache.tomcat.websocket.TestWsWebSocketContainer.testConnectToServerEndpointSSL(TestWsWebSocketContainer.java:815)
> 
> I see this error too.

I've gone back to 9.0.x and am running the unit tests with Native 1.2.1.
I'm seeing failures but it is not clear at this point if the root cause
is a native bug or changes in native/OpenSSL behaviour that are not
correctly handled on the Java side.

Still looking...

Mark

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


Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Violeta Georgieva <mi...@gmail.com>.
2015-11-03 15:05 GMT+02:00 Mark Thomas <ma...@apache.org>:
>
> On 03/11/2015 12:31, Konstantin Kolinko wrote:
>
> > Interim results.  Testing 7.0.x (@r1712220) with Java 8u66 (32-bit)
> >
> >    [concat] Testsuites with failed tests:
> >    [concat]
TEST-org.apache.catalina.authenticator.TestNonLoginAndBasicAuthenticator.APR.txt
> >    [concat]
TEST-org.apache.catalina.authenticator.TestSSOnonLoginAndBasicAuthenticator.APR.txt
> >    [concat]
TEST-org.apache.catalina.authenticator.TestSSOnonLoginAndDigestAuthenticator.APR.txt
> >    [concat]
TEST-org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.APR.txt
> >    [concat]
TEST-org.apache.tomcat.websocket.TestWsWebSocketContainer.APR.txt
> >
> > 1) All 3 authenticator tests are failing in an odd way:
>
> I can't repeat this.

This was reported also during 7.0.65 voting [1]

Unfortunately I also cannot reproduce it.

Windows 8, x64, jdk 1.8.0_45
Loaded APR based Apache Tomcat Native library 1.2.1 using APR version 1.5.1.
OpenSSL successfully initialized (OpenSSL 1.0.2d 9 Jul 2015)

[1] http://marc.info/?l=tomcat-dev&m=144554705426625&w=2


>
> > 2) org.apache.tomcat.websocket.TestWebSocketFrameClientSSL
> >
> > An odd "SKIPPED" line and a failed test.
>
> Fixed as you suggested.
>
> > Testcase: testConnectToServerEndpointSSL took 63,823 sec
> >     FAILED
> > expected:<100000> but was:<0>
> > junit.framework.AssertionFailedError: expected:<100000> but was:<0>
> >     at
org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.testConnectToServerEndpointSSL(TestWebSocketFrameClientSSL.java:92)
>
> I see this error. I'll take a look.
>
> > 3) org.apache.tomcat.websocket.TestWsWebSocketContainer
> >
> > Testcase: testConnectToServerEndpointSSL took 10,852 sec
> >     FAILED
> > null
> > junit.framework.AssertionFailedError
> >     at
org.apache.tomcat.websocket.TestWsWebSocketContainer.testConnectToServerEndpointSSL(TestWsWebSocketContainer.java:815)
>
> I see this error too.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>

Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Mark Thomas <ma...@apache.org>.
On 03/11/2015 12:31, Konstantin Kolinko wrote:

> Interim results.  Testing 7.0.x (@r1712220) with Java 8u66 (32-bit)
> 
>    [concat] Testsuites with failed tests:
>    [concat] TEST-org.apache.catalina.authenticator.TestNonLoginAndBasicAuthenticator.APR.txt
>    [concat] TEST-org.apache.catalina.authenticator.TestSSOnonLoginAndBasicAuthenticator.APR.txt
>    [concat] TEST-org.apache.catalina.authenticator.TestSSOnonLoginAndDigestAuthenticator.APR.txt
>    [concat] TEST-org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.APR.txt
>    [concat] TEST-org.apache.tomcat.websocket.TestWsWebSocketContainer.APR.txt
> 
> 1) All 3 authenticator tests are failing in an odd way:

I can't repeat this.

> 2) org.apache.tomcat.websocket.TestWebSocketFrameClientSSL
> 
> An odd "SKIPPED" line and a failed test.

Fixed as you suggested.

> Testcase: testConnectToServerEndpointSSL took 63,823 sec
>     FAILED
> expected:<100000> but was:<0>
> junit.framework.AssertionFailedError: expected:<100000> but was:<0>
>     at org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.testConnectToServerEndpointSSL(TestWebSocketFrameClientSSL.java:92)

I see this error. I'll take a look.

> 3) org.apache.tomcat.websocket.TestWsWebSocketContainer
> 
> Testcase: testConnectToServerEndpointSSL took 10,852 sec
>     FAILED
> null
> junit.framework.AssertionFailedError
>     at org.apache.tomcat.websocket.TestWsWebSocketContainer.testConnectToServerEndpointSSL(TestWsWebSocketContainer.java:815)

I see this error too.

Mark

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


Re: [VOTE] Release Apache Tomcat Native 1.2.1

Posted by Konstantin Kolinko <kn...@gmail.com>.
2015-11-03 0:04 GMT+03:00 Mark Thomas <ma...@apache.org>:
> Version 1.2.1 includes the following changes:
> - Fix to enable 1.2.x to work with Tomcat releases that do not have
>   the SNI callback implemented on the Java side
>
> The proposed release artefacts can be found at [1],
> and the build was done using tag [2].
>
> The Apache Tomcat Native 1.2.1 is
>  [ ] Stable, go ahead and release
>  [ ] Broken because of ...


Interim results.  Testing 7.0.x (@r1712220) with Java 8u66 (32-bit)

   [concat] Testsuites with failed tests:
   [concat] TEST-org.apache.catalina.authenticator.TestNonLoginAndBasicAuthenticator.APR.txt
   [concat] TEST-org.apache.catalina.authenticator.TestSSOnonLoginAndBasicAuthenticator.APR.txt
   [concat] TEST-org.apache.catalina.authenticator.TestSSOnonLoginAndDigestAuthenticator.APR.txt
   [concat] TEST-org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.APR.txt
   [concat] TEST-org.apache.tomcat.websocket.TestWsWebSocketContainer.APR.txt

1) All 3 authenticator tests are failing in an odd way:

I guess that there is a change in Java 8 HttpURLConnection so that
tests in Tomcat 7 became incorrect.

IIRC somebody mentioned that there is some security feature protecting
access tor request headers, and it can be turned off by some option.

Testcase: testBasicLoginRejectProtectedWithSession took 0,265 sec
    Caused an ERROR
Illegal character(s) in message header field: Cookie:
java.lang.IllegalArgumentException: Illegal character(s) in message
header field: Cookie:
    at sun.net.www.protocol.http.HttpURLConnection.checkMessageHeader(HttpURLConnection.java:489)
    at sun.net.www.protocol.http.HttpURLConnection.isExternalMessageHeaderAllowed(HttpURLConnection.java:459)
    at sun.net.www.protocol.http.HttpURLConnection.setRequestProperty(HttpURLConnection.java:3018)
    at org.apache.catalina.startup.TomcatBaseTest.methodUrl(TomcatBaseTest.java:648)
    at org.apache.catalina.startup.TomcatBaseTest.getUrl(TomcatBaseTest.java:625)
    at org.apache.catalina.startup.TomcatBaseTest.getUrl(TomcatBaseTest.java:619)
    at org.apache.catalina.authenticator.TestNonLoginAndBasicAuthenticator.doTestNonLogin(TestNonLoginAndBasicAuthenticator.java:419)
    at org.apache.catalina.authenticator.TestNonLoginAndBasicAuthenticator.testBasicLoginRejectProtectedWithSession(TestNonLoginAndBasicAuthenticator.java:401)



2) org.apache.tomcat.websocket.TestWebSocketFrameClientSSL

An odd "SKIPPED" line and a failed test.

Regarding 'SKIPPED' line maybe it is solved by replacing
s/getConnector().getProtocol()
  /getConnector().getProtocolHandlerClassName() /
like done elsewhere.


Testcase: testBug56032 took 0,29 sec
    SKIPPED: Skip this test on BIO. TODO: investigate options to make
it pass with HTTP BIO connector
Testcase: testBug56032 took 0,296 sec
Testcase: testConnectToServerEndpointSSL took 63,823 sec
    FAILED
expected:<100000> but was:<0>
junit.framework.AssertionFailedError: expected:<100000> but was:<0>
    at org.apache.tomcat.websocket.TestWebSocketFrameClientSSL.testConnectToServerEndpointSSL(TestWebSocketFrameClientSSL.java:92)


3) org.apache.tomcat.websocket.TestWsWebSocketContainer

Testcase: testConnectToServerEndpointSSL took 10,852 sec
    FAILED
null
junit.framework.AssertionFailedError
    at org.apache.tomcat.websocket.TestWsWebSocketContainer.testConnectToServerEndpointSSL(TestWsWebSocketContainer.java:815)


All other tests are OK.

Best regards,
Konstantin Kolinko

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