You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2023/02/26 17:30:50 UTC
[tomcat] branch main updated: Fix BZ 66491 - BND was removing config file required by war: URL support
This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new 57f5075a00 Fix BZ 66491 - BND was removing config file required by war: URL support
57f5075a00 is described below
commit 57f5075a00d3c243d3ebe888f09b8b11b1fbc416
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Sun Feb 26 17:30:08 2023 +0000
Fix BZ 66491 - BND was removing config file required by war: URL support
---
build.xml | 7 +++----
res/bnd/catalina.jar.tmp.bnd | 2 ++
res/bnd/tomcat-embed-core.jar.tmp.bnd | 2 ++
webapps/docs/changelog.xml | 11 ++++++++---
4 files changed, 15 insertions(+), 7 deletions(-)
diff --git a/build.xml b/build.xml
index 00983bd2ca..d51f3045cf 100644
--- a/build.xml
+++ b/build.xml
@@ -297,6 +297,7 @@
<include name="**/jakarta.servlet.ServletContainerInitializer"/>
<include name="**/jakarta.websocket.ContainerProvider"/>
<include name="**/jakarta.websocket.server.ServerEndpointConfig$Configurator"/>
+ <include name="**/java.net.spi.URLStreamHandlerProvider"/>
<include name="**/.gitignore"/>
<include name="**/*.bnd"/>
<include name="**/*.classpath"/>
@@ -1040,16 +1041,14 @@
<filter token="annotation.revision" value="${annotation.revision}"/>
<mkdir dir="${tomcat.manifests}" />
- <copy todir="${tomcat.manifests}" overwrite="yes" filtering="yes"
- encoding="ISO-8859-1">
+ <copy todir="${tomcat.manifests}" overwrite="yes" filtering="yes" encoding="ISO-8859-1">
<filterset refid="version.filters"/>
<fileset dir="${tomcat.home}/res/META-INF" />
</copy>
<!-- Ensure text files in JARs have consistent line endings. Required for
reproducible builds. -->
- <fixcrlf srcdir="${tomcat.manifests}" eol="lf"
- encoding="ISO-8859-1" fixlast="false" >
+ <fixcrlf srcdir="${tomcat.manifests}" eol="lf" encoding="ISO-8859-1" fixlast="false" >
<patternset refid="text.files" />
</fixcrlf>
</target>
diff --git a/res/bnd/catalina.jar.tmp.bnd b/res/bnd/catalina.jar.tmp.bnd
index 7579a233b1..b8a0814a6c 100644
--- a/res/bnd/catalina.jar.tmp.bnd
+++ b/res/bnd/catalina.jar.tmp.bnd
@@ -46,6 +46,8 @@ Export-Package: \
org.apache.catalina.manager.util,\
org.apache.catalina
+-includeresource.meta-inf: /META-INF/=${tomcat.output}/manifests/catalina.jar/
+
-jpms-module-info: \
${module.name};\
access=32;\
diff --git a/res/bnd/tomcat-embed-core.jar.tmp.bnd b/res/bnd/tomcat-embed-core.jar.tmp.bnd
index 2c0f8e7495..e85c0b5204 100644
--- a/res/bnd/tomcat-embed-core.jar.tmp.bnd
+++ b/res/bnd/tomcat-embed-core.jar.tmp.bnd
@@ -123,6 +123,8 @@ Provide-Capability: \
Implementation-Version=${servlet.spec.version}${servlet.revision};\
Implementation-Vendor=Apache Software Foundation
+-includeresource.meta-inf: /META-INF/=${tomcat.output}/manifests/tomcat-embed-core.jar/
+
-jpms-module-info: \
${module.name};\
access=32;\
diff --git a/webapps/docs/changelog.xml b/webapps/docs/changelog.xml
index 8a09747055..e7eb32f1dd 100644
--- a/webapps/docs/changelog.xml
+++ b/webapps/docs/changelog.xml
@@ -107,15 +107,20 @@
<section name="Tomcat 11.0.0-M4 (markt)" rtext="in development">
<subsection name="Catalina">
<changelog>
- <update>
+ <add>
Add support for <code>txt:</code> and <code>rnd:</code> rewrite map
types from mod_rewrite. Based on a pull request <pr>591</pr>
- provided by Dimitrios Soumis. (markt)
- </update>
+ provided by Dimitrios Soumis. (remm)
+ </add>
<update>
Provide a more appropriate response (501 rather than 400) when rejecting
an HTTP request using the CONNECT method. (markt)
</update>
+ <fix>
+ <bug>66491</bug>: Correct the BND configuration used by the build script
+ so that the provider configuration file required by Tomcat's custom URL
+ protocol for WAR files is retained when adding OSGi meta-data. (markt)
+ </fix>
</changelog>
</subsection>
<subsection name="Coyote">
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org