[Bug 50571] Tomcat 7 JDBC connection pool exception enhancement

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=50571

--- Comment #8 from bill_t_w...@hotmail.com ---
I resolved this bug in SlowQueryReport,using the second proposal by Felix
Schumacher -- "extract the information to sort on from the QueryStats and sort
on that information".

1, add a constructor in the inner class QueryStats for QueryStats clone
/**
 * Create a new QueryStats object based on another QueryStats object.
 * For resolving Bug 58489,
https://bz.apache.org/bugzilla/show_bug.cgi?id=58489
 * @param qs
 */
QueryStats(QueryStats qs){
this.query = qs.query;
this.nrOfInvocations = qs.nrOfInvocations;
this.maxInvocationTime = qs.maxInvocationTime;
this.maxInvocationDate = qs.maxInvocationDate;
this.minInvocationTime = qs.minInvocationTime;
this.minInvocationDate = qs.minInvocationDate;
this.totalInvocationTime = qs.totalInvocationTime;
this.failures = qs.failures;
this.prepareCount = qs.prepareCount;
this.prepareTime = qs.prepareTime;
this.lastInvocation = qs.lastInvocation;
}

2, modify method removeOldest
protected void removeOldest(ConcurrentHashMap queries) {
ArrayList list = new ArrayList<>(queries.values());
//For resolving Bug 58489,
https://bz.apache.org/bugzilla/show_bug.cgi?id=58489
//make a list of cloned QueryStats objects
for(int i=0; i maxQueries) {
String sql = list.get(removeIndex).getQuery();
queries.remove(sql);
if (log.isDebugEnabled()) log.debug("Removing slow query, capacity
reached:"+sql);
removeIndex++;
}
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 58489] QueryStatsComparator throws IllegalArgumentException: Comparison method violates its general contract!

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=58489

--- Comment #11 from bill_t_w...@hotmail.com ---
I resolved this bug in SlowQueryReport,using the second proposal by Felix
Schumacher -- "extract the information to sort on from the QueryStats and sort
on that information".

1, add a constructor in the inner class QueryStats for QueryStats clone
/**
 * Create a new QueryStats object based on another QueryStats object.
 * For resolving Bug 58489,
https://bz.apache.org/bugzilla/show_bug.cgi?id=58489
 * @param qs
 */
QueryStats(QueryStats qs){
this.query = qs.query;
this.nrOfInvocations = qs.nrOfInvocations;
this.maxInvocationTime = qs.maxInvocationTime;
this.maxInvocationDate = qs.maxInvocationDate;
this.minInvocationTime = qs.minInvocationTime;
this.minInvocationDate = qs.minInvocationDate;
this.totalInvocationTime = qs.totalInvocationTime;
this.failures = qs.failures;
this.prepareCount = qs.prepareCount;
this.prepareTime = qs.prepareTime;
this.lastInvocation = qs.lastInvocation;
}

2, modify method removeOldest
protected void removeOldest(ConcurrentHashMap queries) {
ArrayList list = new ArrayList<>(queries.values());
//For resolving Bug 58489,
https://bz.apache.org/bugzilla/show_bug.cgi?id=58489
//make a list of cloned QueryStats objects
for(int i=0; i maxQueries) {
String sql = list.get(removeIndex).getQuery();
queries.remove(sql);
if (log.isDebugEnabled()) log.debug("Removing slow query, capacity
reached:"+sql);
removeIndex++;
}
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 58489] QueryStatsComparator throws IllegalArgumentException: Comparison method violates its general contract!

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=58489

bill_t_w...@hotmail.com changed:

   What|Removed |Added

 CC||bill_t_w...@hotmail.com

--- Comment #10 from bill_t_w...@hotmail.com ---
Created attachment 37237
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37237&action=edit
extract the information to sort on from the QueryStats and sort on that
information

I resolved this bug in SlowQueryReport,using the second proposal by Felix
Schumacher -- "extract the information to sort on from the QueryStats and sort
on that information".

1, add a constructor in the inner class QueryStats for QueryStats clone
/**
 * Create a new QueryStats object based on another QueryStats object.
 * For resolving Bug 58489,
https://bz.apache.org/bugzilla/show_bug.cgi?id=58489
 * @param qs
 */
QueryStats(QueryStats qs){
this.query = qs.query;
this.nrOfInvocations = qs.nrOfInvocations;
this.maxInvocationTime = qs.maxInvocationTime;
this.maxInvocationDate = qs.maxInvocationDate;
this.minInvocationTime = qs.minInvocationTime;
this.minInvocationDate = qs.minInvocationDate;
this.totalInvocationTime = qs.totalInvocationTime;
this.failures = qs.failures;
this.prepareCount = qs.prepareCount;
this.prepareTime = qs.prepareTime;
this.lastInvocation = qs.lastInvocation;
}

2, modify method removeOldest
protected void removeOldest(ConcurrentHashMap queries) {
ArrayList list = new ArrayList<>(queries.values());
//For resolving Bug 58489,
https://bz.apache.org/bugzilla/show_bug.cgi?id=58489
//make a list of cloned QueryStats objects
for(int i=0; i maxQueries) {
String sql = list.get(removeIndex).getQuery();
queries.remove(sql);
if (log.isDebugEnabled()) log.debug("Removing slow query, capacity
reached:"+sql);
removeIndex++;
}
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64427] --enable-preview no error in log

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64427

Michael Osipov  changed:

   What|Removed |Added

 CC||micha...@apache.org

--- Comment #2 from Michael Osipov  ---
What happens when you enable debug logging? The background processor thread
should pick up the WAR file.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64426] TestSSLHostConfigCompat crashes with LibreSSL 2.9.0

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64426

--- Comment #7 from Michael Osipov  ---
I have already identified other compat issues with LibreSSL which can be easily
fixed with the appropriate ifdefs.

Getting back to this, my lack of strong C knowledge and the associated Java
code is too little to make any progress, but I can happily provide more testing
if necessary.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64426] TestSSLHostConfigCompat crashes with LibreSSL 2.9.0

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64426

--- Comment #6 from Christopher Schultz  ---
Thanks for diving-into this. I've wanted to support LibreSSL for a long time,
but I'm not really an expert in the arcana required to work with OpenSSL.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64427] --enable-preview no error in log

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64427

--- Comment #1 from Christopher Schultz  ---
So you get nothing in ANY log? Just silently get 404 responses from requests to
the context path? Swallowing errors isn't common... :(

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat] branch master updated: Add default methods for init() and destroy()

2020-05-12 Thread markt
This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/master by this push:
 new f4f2c51  Add default methods for init() and destroy()
f4f2c51 is described below

commit f4f2c51cec753ed8e3d6cd555f264a1ba45596e4
Author: Mark Thomas 
AuthorDate: Tue May 12 19:36:58 2020 +0100

Add default methods for init() and destroy()

This aligns Tomcat with a recent change for Jakarta EE 9

Signed-off-by: Mark Thomas 
---
 java/jakarta/websocket/Decoder.java | 14 --
 java/jakarta/websocket/Encoder.java | 14 --
 webapps/docs/changelog.xml  |  9 +
 3 files changed, 33 insertions(+), 4 deletions(-)

diff --git a/java/jakarta/websocket/Decoder.java 
b/java/jakarta/websocket/Decoder.java
index c8fa343..4f0a4e4 100644
--- a/java/jakarta/websocket/Decoder.java
+++ b/java/jakarta/websocket/Decoder.java
@@ -23,9 +23,19 @@ import java.nio.ByteBuffer;
 
 public interface Decoder {
 
-abstract void init(EndpointConfig endpointConfig);
+/**
+ * Initialise the decoder. The default implementation is a NO-OP.
+ *
+ * @param endpointConfig The end-point configuration
+ */
+default void init(EndpointConfig endpointConfig) {
+}
 
-abstract void destroy();
+/**
+ * Destroy the decoder. The default implementation is a NO-OP.
+ */
+default void destroy() {
+}
 
 interface Binary extends Decoder {
 
diff --git a/java/jakarta/websocket/Encoder.java 
b/java/jakarta/websocket/Encoder.java
index 8b2c871..c201ae9 100644
--- a/java/jakarta/websocket/Encoder.java
+++ b/java/jakarta/websocket/Encoder.java
@@ -23,9 +23,19 @@ import java.nio.ByteBuffer;
 
 public interface Encoder {
 
-abstract void init(EndpointConfig endpointConfig);
+/**
+ * Initialise the encoder. The default implementation is a NO-OP.
+ *
+ * @param endpointConfig The end-point configuration
+ */
+default void init(EndpointConfig endpointConfig) {
+}
 
-abstract void destroy();
+/**
+ * Destroy the decoder. The default implementation is a NO-OP.
+ */
+default void destroy() {
+}
 
 interface Text extends Encoder {
 
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index ee765e8..f6d1e43 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -52,6 +52,15 @@
   
 
   
+  
+
+  
+Add default implementations for init() and
+destroy() to the Encoder and
+Decoder interfaces. (markt)
+  
+
+  
 
 
   


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



[Bug 64427] --enable-preview no error in log

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64427

Manfred Quasten  changed:

   What|Removed |Added

   Severity|normal  |minor
 OS||All
   Priority|P2  |P3

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64427] New: --enable-preview no error in log

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64427

Bug ID: 64427
   Summary: --enable-preview no error in log
   Product: Tomcat 9
   Version: 9.0.x
  Hardware: PC
Status: NEW
  Severity: normal
  Priority: P2
 Component: Catalina
  Assignee: dev@tomcat.apache.org
  Reporter: manfred.quas...@t-online.de
  Target Milestone: -

Created attachment 37236
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37236&action=edit
example stacktrace  in jetty

The war of a webapplication has been compiled with enable-preview (to be able
to use java 14 record). When I put the war into the webapp, tomcat deploys the
application. Calling the url nothing happens, not really nothing, I will get an
404 http error.  No error is written in the logs. 

When I set JAVA_OPTS=--enable-preview everything works fine.  I think it would
be nice to see the Error in the logs (especially deploying it the first time
using preview features with a new java version. Often jetty is used in the
development and so you will run into problems deploying it the first time in a
tomcat ...

Tomcat 10 its the same

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[ANN] Apache Tomcat 8.5.55 available

2020-05-12 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 8.5.55.

Apache Tomcat 8 is an open source software implementation of the Java
Servlet, JavaServer Pages, Java Unified Expression Language, Java
WebSocket and Java Authentication Service Provider Interface for
Containers technologies.

Apache Tomcat 8.5.x replaces 8.0.x and includes new features pulled
forward from the 9.0.x branch. The notable changes since 8.5.54 include:

- Improve the handling of requests that use an expectation. Do not
  disable keep-alive where the response has a non-2xx status code
  but the request body has been fully read.

- Change default value separator for property replacement to ":-"
  due to possible conflicts. The syntax is now "${name:-default}".

- Update the packaged version of the Tomcat Native Library to 1.2.24

Please refer to the change log for the complete list of changes:
http://tomcat.apache.org/tomcat-8.5-doc/changelog.html


Downloads:
http://tomcat.apache.org/download-80.cgi

Migration guides from Apache Tomcat 7.x and 8.0.x:
http://tomcat.apache.org/migration.html

Enjoy!

- The Apache Tomcat team


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



svn commit: r1877663 - in /tomcat/site/trunk: ./ docs/ xdocs/

2020-05-12 Thread markt
Author: markt
Date: Tue May 12 15:24:32 2020
New Revision: 1877663

URL: http://svn.apache.org/viewvc?rev=1877663&view=rev
Log:
Update site for 8.5.55 release

Modified:
tomcat/site/trunk/build.properties.default
tomcat/site/trunk/docs/doap_Tomcat.rdf
tomcat/site/trunk/docs/download-80.html
tomcat/site/trunk/docs/index.html
tomcat/site/trunk/docs/migration-85.html
tomcat/site/trunk/docs/oldnews.html
tomcat/site/trunk/docs/whichversion.html
tomcat/site/trunk/xdocs/doap_Tomcat.rdf
tomcat/site/trunk/xdocs/download-80.xml
tomcat/site/trunk/xdocs/index.xml
tomcat/site/trunk/xdocs/migration-85.xml
tomcat/site/trunk/xdocs/oldnews.xml
tomcat/site/trunk/xdocs/whichversion.xml

Modified: tomcat/site/trunk/build.properties.default
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/build.properties.default?rev=1877663&r1=1877662&r2=1877663&view=diff
==
--- tomcat/site/trunk/build.properties.default (original)
+++ tomcat/site/trunk/build.properties.default Tue May 12 15:24:32 2020
@@ -37,7 +37,7 @@ tomcat.loc=https://downloads.apache.org/
 
 # - Tomcat versions -
 tomcat70=7.0.103
-tomcat85=8.5.54
+tomcat85=8.5.55
 tomcat90=9.0.35
 tomcat100=10.0.0-M5
 

Modified: tomcat/site/trunk/docs/doap_Tomcat.rdf
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/doap_Tomcat.rdf?rev=1877663&r1=1877662&r2=1877663&view=diff
==
--- tomcat/site/trunk/docs/doap_Tomcat.rdf (original)
+++ tomcat/site/trunk/docs/doap_Tomcat.rdf Tue May 12 15:24:32 2020
@@ -67,8 +67,8 @@
 
   
 Latest Stable 8.5.x Release
-2020-04-08
-8.5.54
+2020-05-11
+8.5.55
   
 
 

Modified: tomcat/site/trunk/docs/download-80.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/download-80.html?rev=1877663&r1=1877662&r2=1877663&view=diff
==
--- tomcat/site/trunk/docs/download-80.html (original)
+++ tomcat/site/trunk/docs/download-80.html Tue May 12 15:24:32 2020
@@ -12,7 +12,7 @@
 
   Quick Navigation
 
-[define v]8.5.54[end]
+[define v]8.5.55[end]
 https://downloads.apache.org/tomcat/tomcat-8/KEYS";>KEYS |
 [v] |
 Browse |

Modified: tomcat/site/trunk/docs/index.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/index.html?rev=1877663&r1=1877662&r2=1877663&view=diff
==
--- tomcat/site/trunk/docs/index.html (original)
+++ tomcat/site/trunk/docs/index.html Tue May 12 15:24:32 2020
@@ -28,7 +28,7 @@ wiki page.
 Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat
 project logo are trademarks of the Apache Software Foundation.
 
-2020-05-11 Tomcat 9.0.34 Released
+2020-05-11 Tomcat 9.0.35 Released
 
 The Apache Tomcat Project is proud to announce the release of version 9.0.35
 of Apache Tomcat. The notable changes compared to 9.0.34 include:
@@ -49,6 +49,31 @@ changelog.
 
 https://tomcat.apache.org/download-90.cgi";>Download
 
+2020-05-11 Tomcat 8.5.55 Released
+
+The Apache Tomcat Project is proud to announce the release of version 8.5.55
+of Apache Tomcat. Apache Tomcat 8.5.x replaces 8.0.x and includes new features
+pulled forward from Tomcat 9.0.x. The minimum Java version and implemented
+specification versions remain unchanged. The notable changes compared
+to 8.5.54 include:
+
+Improve the handling of requests that use an expectation. Do not
+disable keep-alive where the response has a non-2xx status code
+but the request body has been fully read.
+Change default value separator for property replacement to ":-"
+due to possible conflicts. The syntax is now "${name:-default}".
+Update the packaged version of the Tomcat Native Library to 1.2.24.
+
+
+
+Full details of these changes, and all the other changes, are available in the
+Tomcat 8.5
+changelog.
+
+
+
+https://tomcat.apache.org/download-80.cgi";>Download
+
 2020-05-11 Tomcat 10.0.0-M5 Released
 
 The Apache Tomcat Project is proud to announce the release of version 10.0.0-M5
@@ -92,37 +117,6 @@ Tomcat Native. The notable changes since
 https://tomcat.apache.org/download-native.cgi";>Download |
 ChangeLog for 1.2.24
 
-2020-04-08 Tomcat 8.5.54 Released
-
-The Apache Tomcat Project is proud to announce the release of version 8.5.54
-of Apache Tomcat. Apache Tomcat 8.5.x replaces 8.0.x and includes new features
-pulled forward from Tomcat 9.0.x. The minimum Java version and implemented
-specification versions remain unchanged. The notable changes compared
-to 8.5.53 include:
-
-Add support for default values when using ${...} property
-replacement in configuration files. Based on a pull request provided by
-Bernd Bohmann.
-When configuring an HTTP Connector, warn if the encoding specified for
-  

svn commit: r1877662 - in /tomcat/site/trunk/docs/tomcat-8.5-doc: ./ annotationapi/ annotationapi/javax/annotation/ annotationapi/javax/annotation/security/ annotationapi/javax/annotation/sql/ api/ ap

2020-05-12 Thread markt
Author: markt
Date: Tue May 12 15:17:33 2020
New Revision: 1877662

URL: http://svn.apache.org/viewvc?rev=1877662&view=rev
Log:
Update docs for 8.5.35 release


[This commit notification would consist of 65 parts, 
which exceeds the limit of 50 ones, so it was shortened to the summary.]

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



Re: [ANN] Apache Tomcat 9.0.34 available

2020-05-12 Thread Mark Thomas
On 12/05/2020 16:12, Maxim Solodovnik wrote:
> There is typo in title: should be 9.0.35

Drat. Thanks. I might just leave it rather than spam people again. I'll
see what other responses I get.

Mark


> 
> (from mobile, sorry for typos)
> 
> On Tue, May 12, 2020, 22:09 Mark Thomas  > wrote:
> 
> The Apache Tomcat team announces the immediate availability of Apache
> Tomcat 9.0.35.
> 
> Apache Tomcat 9 is an open source software implementation of the Java
> Servlet, JavaServer Pages, Java Unified Expression Language, Java
> WebSocket and JASPIC technologies.
> 
> Apache Tomcat 9.0.35 is a bugfix and feature release. The notable
> changes compared to 9.0.34 include:
> 
> - Improve the handling of requests that use an expectation. Do not
>   disable keep-alive where the response has a non-2xx status code
>   but the request body has been fully read.
> 
> - Change default value separator for property replacement to ":-"
>   due to possible conflicts. The syntax is now "${name:-default}".
> 
> - Update the packaged version of the Tomcat Native Library to 1.2.24
> 
> Please refer to the change log for the complete list of changes:
> http://tomcat.apache.org/tomcat-9.0-doc/changelog.html
> 
> 
> Downloads:
> http://tomcat.apache.org/download-90.cgi
> 
> Migration guides from Apache Tomcat 7.x and 8.x:
> http://tomcat.apache.org/migration.html
> 
> Enjoy!
> 
> - The Apache Tomcat team
> 
> 
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> 
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 
> 


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



Re: [ANN] Apache Tomcat 9.0.34 available

2020-05-12 Thread Maxim Solodovnik
There is typo in title: should be 9.0.35

(from mobile, sorry for typos)

On Tue, May 12, 2020, 22:09 Mark Thomas  wrote:

> The Apache Tomcat team announces the immediate availability of Apache
> Tomcat 9.0.35.
>
> Apache Tomcat 9 is an open source software implementation of the Java
> Servlet, JavaServer Pages, Java Unified Expression Language, Java
> WebSocket and JASPIC technologies.
>
> Apache Tomcat 9.0.35 is a bugfix and feature release. The notable
> changes compared to 9.0.34 include:
>
> - Improve the handling of requests that use an expectation. Do not
>   disable keep-alive where the response has a non-2xx status code
>   but the request body has been fully read.
>
> - Change default value separator for property replacement to ":-"
>   due to possible conflicts. The syntax is now "${name:-default}".
>
> - Update the packaged version of the Tomcat Native Library to 1.2.24
>
> Please refer to the change log for the complete list of changes:
> http://tomcat.apache.org/tomcat-9.0-doc/changelog.html
>
>
> Downloads:
> http://tomcat.apache.org/download-90.cgi
>
> Migration guides from Apache Tomcat 7.x and 8.x:
> http://tomcat.apache.org/migration.html
>
> Enjoy!
>
> - The Apache Tomcat team
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>


[ANN] Apache Tomcat 9.0.34 available

2020-05-12 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 9.0.35.

Apache Tomcat 9 is an open source software implementation of the Java
Servlet, JavaServer Pages, Java Unified Expression Language, Java
WebSocket and JASPIC technologies.

Apache Tomcat 9.0.35 is a bugfix and feature release. The notable
changes compared to 9.0.34 include:

- Improve the handling of requests that use an expectation. Do not
  disable keep-alive where the response has a non-2xx status code
  but the request body has been fully read.

- Change default value separator for property replacement to ":-"
  due to possible conflicts. The syntax is now "${name:-default}".

- Update the packaged version of the Tomcat Native Library to 1.2.24

Please refer to the change log for the complete list of changes:
http://tomcat.apache.org/tomcat-9.0-doc/changelog.html


Downloads:
http://tomcat.apache.org/download-90.cgi

Migration guides from Apache Tomcat 7.x and 8.x:
http://tomcat.apache.org/migration.html

Enjoy!

- The Apache Tomcat team


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



svn commit: r1877661 - in /tomcat/site/trunk: ./ docs/ xdocs/

2020-05-12 Thread markt
Author: markt
Date: Tue May 12 14:57:48 2020
New Revision: 1877661

URL: http://svn.apache.org/viewvc?rev=1877661&view=rev
Log:
Update site for 9.0.35 release

Modified:
tomcat/site/trunk/build.properties.default
tomcat/site/trunk/docs/doap_Tomcat.rdf
tomcat/site/trunk/docs/download-90.html
tomcat/site/trunk/docs/index.html
tomcat/site/trunk/docs/migration-9.html
tomcat/site/trunk/docs/oldnews.html
tomcat/site/trunk/docs/whichversion.html
tomcat/site/trunk/xdocs/doap_Tomcat.rdf
tomcat/site/trunk/xdocs/download-90.xml
tomcat/site/trunk/xdocs/index.xml
tomcat/site/trunk/xdocs/migration-9.xml
tomcat/site/trunk/xdocs/oldnews.xml
tomcat/site/trunk/xdocs/whichversion.xml

Modified: tomcat/site/trunk/build.properties.default
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/build.properties.default?rev=1877661&r1=1877660&r2=1877661&view=diff
==
--- tomcat/site/trunk/build.properties.default (original)
+++ tomcat/site/trunk/build.properties.default Tue May 12 14:57:48 2020
@@ -38,7 +38,7 @@ tomcat.loc=https://downloads.apache.org/
 # - Tomcat versions -
 tomcat70=7.0.103
 tomcat85=8.5.54
-tomcat90=9.0.34
+tomcat90=9.0.35
 tomcat100=10.0.0-M5
 
 # - Download destination -

Modified: tomcat/site/trunk/docs/doap_Tomcat.rdf
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/doap_Tomcat.rdf?rev=1877661&r1=1877660&r2=1877661&view=diff
==
--- tomcat/site/trunk/docs/doap_Tomcat.rdf (original)
+++ tomcat/site/trunk/docs/doap_Tomcat.rdf Tue May 12 14:57:48 2020
@@ -60,8 +60,8 @@
 
   
 Latest Stable 9.0.x Release
-2020-04-08
-9.0.34
+2020-05-11
+9.0.35
   
 
 

Modified: tomcat/site/trunk/docs/download-90.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/download-90.html?rev=1877661&r1=1877660&r2=1877661&view=diff
==
--- tomcat/site/trunk/docs/download-90.html (original)
+++ tomcat/site/trunk/docs/download-90.html Tue May 12 14:57:48 2020
@@ -12,7 +12,7 @@
 
   Quick Navigation
 
-[define v]9.0.34[end]
+[define v]9.0.35[end]
 https://downloads.apache.org/tomcat/tomcat-9/KEYS";>KEYS |
 [v] |
 Browse |

Modified: tomcat/site/trunk/docs/index.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/index.html?rev=1877661&r1=1877660&r2=1877661&view=diff
==
--- tomcat/site/trunk/docs/index.html (original)
+++ tomcat/site/trunk/docs/index.html Tue May 12 14:57:48 2020
@@ -28,6 +28,27 @@ wiki page.
 Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat
 project logo are trademarks of the Apache Software Foundation.
 
+2020-05-11 Tomcat 9.0.34 Released
+
+The Apache Tomcat Project is proud to announce the release of version 9.0.35
+of Apache Tomcat. The notable changes compared to 9.0.34 include:
+
+Improve the handling of requests that use an expectation. Do not
+disable keep-alive where the response has a non-2xx status code
+but the request body has been fully read.
+Change default value separator for property replacement to ":-"
+due to possible conflicts. The syntax is now "${name:-default}".
+Update the packaged version of the Tomcat Native Library to 1.2.24.
+
+
+Full details of these changes, and all the other changes, are available in the
+Tomcat 9
+changelog.
+
+
+
+https://tomcat.apache.org/download-90.cgi";>Download
+
 2020-05-11 Tomcat 10.0.0-M5 Released
 
 The Apache Tomcat Project is proud to announce the release of version 10.0.0-M5
@@ -71,33 +92,6 @@ Tomcat Native. The notable changes since
 https://tomcat.apache.org/download-native.cgi";>Download |
 ChangeLog for 1.2.24
 
-2020-04-08 Tomcat 9.0.34 Released
-
-The Apache Tomcat Project is proud to announce the release of version 9.0.34
-of Apache Tomcat. The notable changes compared to 9.0.33 include:
-
-Add support for default values when using ${...} property
-replacement in configuration files. Based on a pull request provided by
-Bernd Bohmann.
-When configuring an HTTP Connector, warn if the encoding specified for
-URIEncoding is not a superset of US-ASCII as required by RFC
-7230.
-Replace the system property
-org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH with
-the Connector attribute encodedSolidusHandling that adds an
-additional option to pass the %2f sequence through to the
-application without decoding it in addition to rejecting such sequences and
-decoding such sequences.
-
-
-Full details of these changes, and all the other changes, are available in the
-Tomcat 9
-changelog.
-
-
-
-https://tomcat.apache.org/download-90.cgi";>Download
-
 2020-04-08 Tomcat 8.5.54 Released
 
 The Apache Tomcat Proje

svn commit: r1877659 - in /tomcat/site/trunk/docs/tomcat-9.0-doc: ./ annotationapi/ annotationapi/javax/annotation/ annotationapi/javax/annotation/security/ annotationapi/javax/annotation/sql/ api/ ap

2020-05-12 Thread markt
Author: markt
Date: Tue May 12 14:42:41 2020
New Revision: 1877659

URL: http://svn.apache.org/viewvc?rev=1877659&view=rev
Log:
Update docs for 9.0.35 release


[This commit notification would consist of 70 parts, 
which exceeds the limit of 50 ones, so it was shortened to the summary.]

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



[ANN] Apache Tomcat 10.0.0-M5 available

2020-05-12 Thread Mark Thomas
The Apache Tomcat team announces the immediate availability of Apache
Tomcat 10.0.0-M5.

Apache Tomcat 10 is an open source software implementation of the
Jakarta Servlet, Jakarta Server Pages, Jakarta Expression Language,
Jakarta WebSocket, Jakarta Authentication and Jakarta Annotations
specifications.

Users of Tomcat 10 onwards should be aware that, as a result of the move
from Java EE to Jakarta EE as part of the transfer of Java EE to the
Eclipse Foundation, the primary package for all implemented APIs has
changed from javax.* to jakarta.*. This will almost certainly require
code changes to enable applications to migrate from Tomcat 9 and earlier
to Tomcat 10 and later. A migration tool is under development to aid
this process.

Apache Tomcat 10.0.0-M5 is a milestone release of the 10.0.x
branch and has been made to provide users with early access to the new
features in Apache Tomcat 10.0.x so that they may provide feedback. The
notable changes compared to 10.0.0-M4 include:

- Remove useAprConnector flag from AprLifecycleListener so that the
  only way to use the APR connectors is to set the full class name.

- Change default value separator for property replacement to ":-"
  due to possible conflicts. The syntax is now "${name:-default}".

- Update the packaged version of the Tomcat Native Library to 1.2.24.

Please refer to the change log for the complete list of changes:
http://tomcat.apache.org/tomcat-10.0-doc/changelog.html

Downloads:
http://tomcat.apache.org/download-10.cgi

Migration guides from Apache Tomcat 7.0.x, 8.5.x and 9.0.x:
http://tomcat.apache.org/migration.html

Enjoy!

- The Apache Tomcat team

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



svn commit: r1877657 - in /tomcat/site/trunk: docs/index.html docs/migration-10.html xdocs/index.xml xdocs/migration-10.xml

2020-05-12 Thread markt
Author: markt
Date: Tue May 12 14:10:07 2020
New Revision: 1877657

URL: http://svn.apache.org/viewvc?rev=1877657&view=rev
Log:
Update site for release of 10.0.0-M5 - this time after saving the changes...

Modified:
tomcat/site/trunk/docs/index.html
tomcat/site/trunk/docs/migration-10.html
tomcat/site/trunk/xdocs/index.xml
tomcat/site/trunk/xdocs/migration-10.xml

Modified: tomcat/site/trunk/docs/index.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/index.html?rev=1877657&r1=1877656&r2=1877657&view=diff
==
--- tomcat/site/trunk/docs/index.html (original)
+++ tomcat/site/trunk/docs/index.html Tue May 12 14:10:07 2020
@@ -28,7 +28,7 @@ wiki page.
 Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat
 project logo are trademarks of the Apache Software Foundation.
 
-2020-05-11 Tomcat 10.0.0-M4 Released
+2020-05-11 Tomcat 10.0.0-M5 Released
 
 The Apache Tomcat Project is proud to announce the release of version 10.0.0-M5
 of Apache Tomcat. This release is a milestone release and is targeted at 
Jakarta

Modified: tomcat/site/trunk/docs/migration-10.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/migration-10.html?rev=1877657&r1=1877656&r2=1877657&view=diff
==
--- tomcat/site/trunk/docs/migration-10.html (original)
+++ tomcat/site/trunk/docs/migration-10.html Tue May 12 14:10:07 2020
@@ -163,14 +163,16 @@ of Apache Tomcat.
 
 Old version:
 
-10.0.0-M1
-10.0.0-M3
-10.0.0-M4
+10.0.0-M1
+10.0.0-M3
+10.0.0-M4
+10.0.0-M5
 , new version:
 
 10.0.0-M1
 10.0.0-M3
-10.0.0-M4
+10.0.0-M4
+10.0.0-M5
 trunk (unreleased)
 
 

Modified: tomcat/site/trunk/xdocs/index.xml
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/index.xml?rev=1877657&r1=1877656&r2=1877657&view=diff
==
--- tomcat/site/trunk/xdocs/index.xml (original)
+++ tomcat/site/trunk/xdocs/index.xml Tue May 12 14:10:07 2020
@@ -40,7 +40,7 @@ project logo are trademarks of the Apach
 
 
 
-
+
 
 The Apache Tomcat Project is proud to announce the release of version 10.0.0-M5
 of Apache Tomcat. This release is a milestone release and is targeted at 
Jakarta

Modified: tomcat/site/trunk/xdocs/migration-10.xml
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/xdocs/migration-10.xml?rev=1877657&r1=1877656&r2=1877657&view=diff
==
--- tomcat/site/trunk/xdocs/migration-10.xml (original)
+++ tomcat/site/trunk/xdocs/migration-10.xml Tue May 12 14:10:07 2020
@@ -178,14 +178,16 @@ of Apache Tomcat.
 
 Old version:
 
-10.0.0-M1
-10.0.0-M3
-10.0.0-M4
+10.0.0-M1
+10.0.0-M3
+10.0.0-M4
+10.0.0-M5
 , new version:
 
 10.0.0-M1
 10.0.0-M3
-10.0.0-M4
+10.0.0-M4
+10.0.0-M5
 trunk (unreleased)
 
 



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



svn commit: r1877656 - in /tomcat/site/trunk: build.properties.default docs/download-10.html docs/index.html docs/oldnews.html docs/whichversion.html xdocs/download-10.xml xdocs/index.xml xdocs/oldnew

2020-05-12 Thread markt
Author: markt
Date: Tue May 12 14:09:34 2020
New Revision: 1877656

URL: http://svn.apache.org/viewvc?rev=1877656&view=rev
Log:
Update site for release of 10.0.0-M5

Modified:
tomcat/site/trunk/build.properties.default
tomcat/site/trunk/docs/download-10.html
tomcat/site/trunk/docs/index.html
tomcat/site/trunk/docs/oldnews.html
tomcat/site/trunk/docs/whichversion.html
tomcat/site/trunk/xdocs/download-10.xml
tomcat/site/trunk/xdocs/index.xml
tomcat/site/trunk/xdocs/oldnews.xml
tomcat/site/trunk/xdocs/whichversion.xml

Modified: tomcat/site/trunk/build.properties.default
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/build.properties.default?rev=1877656&r1=1877655&r2=1877656&view=diff
==
--- tomcat/site/trunk/build.properties.default (original)
+++ tomcat/site/trunk/build.properties.default Tue May 12 14:09:34 2020
@@ -39,7 +39,7 @@ tomcat.loc=https://downloads.apache.org/
 tomcat70=7.0.103
 tomcat85=8.5.54
 tomcat90=9.0.34
-tomcat100=10.0.0-M4
+tomcat100=10.0.0-M5
 
 # - Download destination -
 tomcat-site-docs.home=${base.path}/tomcat-site-docs/

Modified: tomcat/site/trunk/docs/download-10.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/download-10.html?rev=1877656&r1=1877655&r2=1877656&view=diff
==
--- tomcat/site/trunk/docs/download-10.html (original)
+++ tomcat/site/trunk/docs/download-10.html Tue May 12 14:09:34 2020
@@ -21,7 +21,7 @@
 
   Quick Navigation
 
-[define v]10.0.0-M4[end]
+[define v]10.0.0-M5[end]
 https://downloads.apache.org/tomcat/tomcat-10/KEYS";>KEYS |
 [v] |
 Browse |

Modified: tomcat/site/trunk/docs/index.html
URL: 
http://svn.apache.org/viewvc/tomcat/site/trunk/docs/index.html?rev=1877656&r1=1877655&r2=1877656&view=diff
==
--- tomcat/site/trunk/docs/index.html (original)
+++ tomcat/site/trunk/docs/index.html Tue May 12 14:09:34 2020
@@ -28,6 +28,36 @@ wiki page.
 Apache Tomcat, Tomcat, Apache, the Apache feather, and the Apache Tomcat
 project logo are trademarks of the Apache Software Foundation.
 
+2020-05-11 Tomcat 10.0.0-M4 Released
+
+The Apache Tomcat Project is proud to announce the release of version 10.0.0-M5
+of Apache Tomcat. This release is a milestone release and is targeted at 
Jakarta
+EE 9.
+Users of Tomcat 10 onwards should be aware that, as a result of the move 
from
+Java EE to Jakarta EE as part of the transfer of Java EE to the Eclipse
+Foundation, the primary package for all implemented APIs has changed from
+javax.* to jakarta.*. This will almost certainly
+require code changes to enable applications to migrate from Tomcat 9 and 
earlier
+to Tomcat 10 and later. A
+https://github.com/apache/tomcat-jakartaee-migration";>migration
+tool is under development to aid this process.
+The notable changes in this release are:
+
+Remove useAprConnector flag from AprLifecycleListener so that the
+only way to use the APR connectors is to set the full class name.
+Change default value separator for property replacement to ":-"
+due to possible conflicts. The syntax is now "${name:-default}".
+Update the packaged version of the Tomcat Native Library to 1.2.24.
+
+
+Full details of these changes, and all the other changes, are available in the
+Tomcat 10
+(alpha) changelog.
+
+
+
+https://tomcat.apache.org/download-10.cgi";>Download
+
 2020-04-29 Tomcat Native 1.2.24 Released
 
 The Apache Tomcat Project is proud to announce the release of version 1.2.24 of
@@ -99,43 +129,6 @@ changelog.
 
 https://tomcat.apache.org/download-80.cgi";>Download
 
-2020-04-08 Tomcat 10.0.0-M4 Released
-
-The Apache Tomcat Project is proud to announce the release of version 10.0.0-M4
-of Apache Tomcat. This release is a milestone release and is targeted at 
Jakarta
-EE 9.
-Users of Tomcat 10 onwards should be aware that, as a result of the move 
from
-Java EE to Jakarta EE as part of the transfer of Java EE to the Eclipse
-Foundation, the primary package for all implemented APIs has changed from
-javax.* to jakarta.*. This will almost certainly
-require code changes to enable applications to migrate from Tomcat 9 and 
earlier
-to Tomcat 10 and later. A
-https://github.com/apache/tomcat-jakartaee-migration";>migration
-tool is under development to aid this process.
-The notable changes in this release are:
-
-Replace configuration via system property with configuration via an
-attribute on the appropriate element where practical. A large number of
-system properties have been replaced.
-Add support for default values when using ${...} property
-replacement in configuration files. Based on a pull request provided by
-Bernd Bohmann.
-Replace the system property
-org.apache.tomcat.util.buf.UDecoder.ALLOW_ENCODED_SLASH with
-the Connector attribute enco

svn commit: r1877655 - in /tomcat/site/trunk/docs/tomcat-10.0-doc: ./ annotationapi/ annotationapi/jakarta/annotation/ annotationapi/jakarta/annotation/security/ annotationapi/jakarta/annotation/sql/

2020-05-12 Thread markt
Author: markt
Date: Tue May 12 14:06:55 2020
New Revision: 1877655

URL: http://svn.apache.org/viewvc?rev=1877655&view=rev
Log:
Update docs for 10.0.0-M5 release


[This commit notification would consist of 71 parts, 
which exceeds the limit of 50 ones, so it was shortened to the summary.]

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



[Bug 64426] TestSSLHostConfigCompat crashes with LibreSSL 2.9.0

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64426

--- Comment #5 from Michael Osipov  ---
Created attachment 37235
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37235&action=edit
Crash file 3

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64426] TestSSLHostConfigCompat crashes with LibreSSL 2.9.0

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64426

--- Comment #4 from Michael Osipov  ---
Created attachment 37234
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37234&action=edit
Crash file 2

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64426] TestSSLHostConfigCompat crashes with LibreSSL 2.9.0

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64426

--- Comment #2 from Michael Osipov  ---
Created attachment 37232
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37232&action=edit
Sample test result

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64426] TestSSLHostConfigCompat crashes with LibreSSL 2.9.0

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64426

--- Comment #3 from Michael Osipov  ---
Created attachment 37233
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37233&action=edit
Crash file 1

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64426] TestSSLHostConfigCompat crashes with LibreSSL 2.9.0

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64426

--- Comment #1 from Michael Osipov  ---
Created attachment 37231
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37231&action=edit
Test output

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[Bug 64426] New: TestSSLHostConfigCompat crashes with LibreSSL 2.9.0

2020-05-12 Thread bugzilla
https://bz.apache.org/bugzilla/show_bug.cgi?id=64426

Bug ID: 64426
   Summary: TestSSLHostConfigCompat crashes with LibreSSL 2.9.0
   Product: Tomcat Native
   Version: 1.2.23
  Hardware: All
OS: FreeBSD
Status: NEW
  Severity: major
  Priority: P2
 Component: Library
  Assignee: dev@tomcat.apache.org
  Reporter: micha...@apache.org
  Target Milestone: ---

How to reproduce:

Obtain master (51f949dc6e0b6e4e27972b8ba2d0a2626fc3c1c5) for tomcat-native,
revert b8649e81458194d70667952d9e26df82a79c773f. Obtain Tomcat master.

* Apply this patch against tcnative:
diff --git a/native/src/ssl.c b/native/src/ssl.c
index fcb2a9ec..ad0a17fd 100644
--- a/native/src/ssl.c
+++ b/native/src/ssl.c
@@ -1328 +1328,3 @@ TCN_IMPLEMENT_CALL(jlong /* SSL * */, SSL,
newSSL)(TCN_STDARGS,
-tcn_ThrowException(e, "cannot create new ssl");
+char err[256];
+ERR_error_string(SSL_ERR_get(), err);
+tcn_Throw(e, "Cannot create new SSL (%s)", err);

* Compile tomcat-native against LibreSSL 2.9.0 and 2.9.1
Comipling previous versions of LibreSSL is tricky:
** Clone from GitHub
** Switch to v2.9.0 or v2.9.1
** Apply patch:
diff --git a/update.sh b/update.sh
index 3315311..bc291e2 100755
--- a/update.sh
+++ b/update.sh
@@ -18 +18 @@ fi
- git pull --rebase)
+ )
** Modify OPENBSD_BRANCH to libressl-v2.9.0 or libressl-v2.9.1
** Perform ./update.sh
*** NOTE: When switching between versions all produce needs to be wiped out,
along with openbsd/! 
* Prefixes: /tmp/tcnative, /tmp/libressl-2.9.0, /tmp/libressl-2.9.1
* Run "ant test
-Dtest.entry=org.apache.tomcat.util.net.TestSSLHostConfigCompat" with both.
2.9.1 shall succeed, 2.9.0 will fail with two issues ("java.lang.Exception:
Unable to use Java keystores with LibreSSL" can be ignored, this is expected):
**  java.lang.Exception: Cannot create new SSL (error:14FFF0C3:SSL
routines:(UNKNOWN)SSL_internal:null ssl ctx)
** [junit] # JRE version: OpenJDK Runtime Environment (8.0_252-b09) (build
1.8.0_252-b09)
[junit] # Java VM: OpenJDK 64-Bit Server VM (25.252-b09 mixed mode
bsd-amd64 compressed oops)
[junit] # Problematic frame:
[junit] # C  [libssl.so.47+0x3f2e9]  SSL_CTX_use_certificate+0x9
[junit] #

Log files attached.

I don't know whether it is our code or a bug in LibreSSL below 2.9.1. We might
say, since 2.9.1 is the first stable release from the 2.9.x, it is a minimum
version.

All tests performed with:
* Compiler:
FreeBSD clang version 9.0.1 (g...@github.com:llvm/llvm-project.git
c1a0a213378a458fbea1a5c77b315c7dce08fd05) (based on LLVM 9.0.1)
Target: x86_64-unknown-freebsd12.1
Thread model: posix
InstalledDir: /usr/bin
* Java:
openjdk version "1.8.0_252"
OpenJDK Runtime Environment (The FreeBSD Project)(build 1.8.0_252-b09)
OpenJDK 64-Bit Server VM (The FreeBSD Project)(build 25.252-b09, mixed mode)
* OS: FreeBSD 12.1-STABLE #1 r360428

-- 
You are receiving this mail because:
You are the assignee for the bug.
-
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org



[tomcat-native] branch master updated: Add support for SLContext.addChainCertificateRaw() with LibreSSL 2.9.1 and up

2020-05-12 Thread michaelo
This is an automated email from the ASF dual-hosted git repository.

michaelo pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/tomcat-native.git


The following commit(s) were added to refs/heads/master by this push:
 new 51f949d  Add support for SLContext.addChainCertificateRaw() with 
LibreSSL 2.9.1 and up
51f949d is described below

commit 51f949dc6e0b6e4e27972b8ba2d0a2626fc3c1c5
Author: Michael Osipov 
AuthorDate: Tue May 12 10:58:06 2020 +0200

Add support for SLContext.addChainCertificateRaw() with LibreSSL 2.9.1 and 
up

In libressl-portable/openbsd:0db809ee17 support was added for
SSL_CTX_add0_chain_cert() and alike which were included in OpenBSD 6.5 base 
as
well as LibreSSL 2.9.1 and up. This now makes TestSSLHostConfigCompat pass
successfully with LibreSSL.
---
 native/src/sslcontext.c   | 2 +-
 xdocs/miscellaneous/changelog.xml | 4 
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/native/src/sslcontext.c b/native/src/sslcontext.c
index 1d584f7..f10b55e 100644
--- a/native/src/sslcontext.c
+++ b/native/src/sslcontext.c
@@ -1262,7 +1262,7 @@ TCN_IMPLEMENT_CALL(jboolean, SSLContext, 
addChainCertificateRaw)(TCN_STDARGS, jl
 ERR_error_string(SSL_ERR_get(), err);
 tcn_Throw(e, "Error reading certificate (%s)", err);
 rv = JNI_FALSE;
-#if defined(LIBRESSL_VERSION_NUMBER)
+#if defined(LIBRESSL_VERSION_NUMBER) && LIBRESSL_VERSION_NUMBER < 0x20901000L
 } else {
 tcn_Throw(e, "Unable to use Java keystores with LibreSSL");
 #else
diff --git a/xdocs/miscellaneous/changelog.xml 
b/xdocs/miscellaneous/changelog.xml
index 71cfd86..68ce2f4 100644
--- a/xdocs/miscellaneous/changelog.xml
+++ b/xdocs/miscellaneous/changelog.xml
@@ -45,6 +45,10 @@
 
   Disable keylog callback support for LibreSSL. (michaelo)
 
+
+  Add support for SSLContext.addChainCertificateRaw() with
+  LibreSSL 2.9.1 and up. (michaelo)
+
   
 
 


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