summaryrefslogtreecommitdiff
path: root/www/jakarta-tomcat/patches
diff options
context:
space:
mode:
authorjwise <jwise@pkgsrc.org>2002-04-19 15:54:20 +0000
committerjwise <jwise@pkgsrc.org>2002-04-19 15:54:20 +0000
commit60715496a9ed3e9d9de1152d4a251779bb47d846 (patch)
tree74c6844b1acadf52a76dd645483fbc50257c85c9 /www/jakarta-tomcat/patches
parent091818d82659322f7928c84f6cdc668f38ad37c3 (diff)
downloadpkgsrc-60715496a9ed3e9d9de1152d4a251779bb47d846.tar.gz
Update jakarta-servletapi, jakarta-tomcat, and ap-jk to version 3.2.4.
We are not advancing to the 3.3 or 4.0 branches at the moment, as neither will work with our native JDK without a lot more work. Changes since Tomcat 3.2.3 (the last pkgsrc version): 7.1 Fixes and Enhancements in Release 3.2.4 This section highlights the bugs fixed in this release. - Cookie name expires is a reserved token (#1114) - Thread initialization problem in thread pool (#1745) - AJP12 returned invalid HTTP headers when redirecting to very long URLS (#2333) - Fixed casting problem in JspFactoryImpl.getPageContext(). (#4260) - Setting sesstion-timeout in web.xml did not prevent sessions from timing out. (#4412) - Fixed race condition in ServerSocketFactory.getDefault(). (#4418) - Removed the restrictions on encoded spcecial characters in URLs that was added as a security precaution in 3.2.3. The encoded special characters are not decoded and remain the URL and path info returned to servlets. - Jk_nt_service now supports the ability to be restarted automatically by the Windows 2000 service control manager if Tomcat terminates abnormally. - Fixed invalid servlet mapping in web.xml generated by JspC (#3474, #3499) - Added findResource() and findResources() to AdaptiveClassLoader12 - A Date: HTTP header is now sent in responses when running stand alone. (#345) - Simple held on to a reference to removed objects preventing garbage collection. - Tomcat 3.2.4 now ships with JAXP 1.1. Prior releases used JAXP 1.0.1. Tomcat 3.2.4 remains completely compatible with the older version of JAXP and there is no requirement for users to upgrade to JAXP 1.1 unless their applications require the new version. - Fixed NullPointerException in HttpConnectionHandler. (#4577) 7.2 Security Vulnerabilities fixed in Tomcat 3.2.4 The randomness of generated session ids has been enhanced to prevent the generation of guessable ids.
Diffstat (limited to 'www/jakarta-tomcat/patches')
-rw-r--r--www/jakarta-tomcat/patches/patch-aa89
-rw-r--r--www/jakarta-tomcat/patches/patch-ae20
2 files changed, 51 insertions, 58 deletions
diff --git a/www/jakarta-tomcat/patches/patch-aa b/www/jakarta-tomcat/patches/patch-aa
index 05a5ea10b67..f55e27c9804 100644
--- a/www/jakarta-tomcat/patches/patch-aa
+++ b/www/jakarta-tomcat/patches/patch-aa
@@ -1,11 +1,18 @@
---- build.xml.orig Tue Jul 17 07:25:27 2001
-+++ build.xml Sat Aug 11 15:23:28 2001
-@@ -5,11 +5,11 @@
- <property name="ant.home" value="../jakarta-ant"/>
- <property name="debug" value="on"/>
+--- build.xml.orig Fri Oct 26 09:59:03 2001
++++ build.xml Fri Apr 19 11:25:00 2002
+@@ -2,15 +2,15 @@
+
+
+ <!-- ==================== Initialization properties ===================== -->
+- <property name="ant.home" value="../jakarta-ant"/>
+- <property name="debug" value="on"/>
++ <property name="ant.home" value="${pkgsrc.prefix}"/>
++ <property name="debug" value="off"/>
<property name="j2ee.home" value="../../j2ee/build/unix"/>
-- <property name="jaxp" value="../jaxp-1.0.1" />
+- <property name="jaxp" value="../jaxp-1.1/jaxp.jar" />
+- <property name="parser" value="../jaxp-1.1/crimson.jar" />
+ <property name="jaxp" value="${pkgsrc.prefix}/lib/java" />
++ <property name="parser" value="${pkgsrc.prefix}/lib/java/crimson.jar" />
<property name="optimize" value="true" />
- <property name="servlet.jar" value="../jakarta-servletapi/lib/servlet.jar"/>
+ <property name="servlet.jar" value="${pkgsrc.prefix}/lib/java/servlet.jar"/>
@@ -15,7 +22,7 @@
<!-- ======================== Copy static files ========================= -->
-@@ -30,14 +30,18 @@
+@@ -31,14 +31,18 @@
<!-- Copy executables and scripts -->
<copy todir="${tomcat.build}/bin">
@@ -36,84 +43,50 @@
<copy tofile="${tomcat.build}/conf/build.xml"
file="build.xml"/>
-@@ -50,14 +54,16 @@
+@@ -51,6 +55,7 @@
<copy tofile="${tomcat.build}/KEYS" file="KEYS"/>
<!-- Copy library JAR files -->
-- <copy tofile="${tomcat.build}/lib/ant.jar"
-- file="${ant.home}/lib/ant.jar"/>
-- <copy tofile="${tomcat.build}/lib/servlet.jar"
-- file="${servlet.jar}"/>
-- <copy tofile="${tomcat.build}/lib/jaxp.jar"
-- file="${jaxp}/jaxp.jar"/>
-- <copy tofile="${tomcat.build}/lib/parser.jar"
-- file="${jaxp}/parser.jar"/>
+ <!--
-+ <copy tofile="${tomcat.build}/lib/ant.jar"
-+ file="${ant.home}/lib/ant.jar"/>
-+ <copy tofile="${tomcat.build}/lib/servlet.jar"
-+ file="${servlet.jar}"/>
-+ <copy tofile="${tomcat.build}/lib/jaxp.jar"
-+ file="${jaxp}/jaxp.jar"/>
-+ <copy tofile="${tomcat.build}/lib/parser.jar"
-+ file="${jaxp}/parser.jar"/>
+ <copy tofile="${tomcat.build}/lib/ant.jar"
+ file="${ant.home}/lib/ant.jar"/>
+ <copy tofile="${tomcat.build}/lib/servlet.jar"
+@@ -59,6 +64,7 @@
+ file="${jaxp}"/>
+ <copy todir="${tomcat.build}/lib"
+ file="${parser}"/>
+ -->
<!-- Copy golden files for the tests webapp -->
<copy todir="${tomcat.build}/lib/test/Golden">
-@@ -66,9 +72,11 @@
+@@ -67,9 +73,11 @@
<!-- Fixups for line endings and executable permissions -->
<fixcrlf srcdir="${tomcat.build}" includes="**/*.sh" cr="remove"/>
-- <fixcrlf srcdir="${tomcat.build}" includes="**/*.bat" cr="add"/>
-- <chmod perm="+x" file="${tomcat.build}/bin/ant"/>
-- <chmod perm="+x" file="${tomcat.build}/bin/antRun"/>
+ <!--
-+ <fixcrlf srcdir="${tomcat.build}" includes="**/*.bat" cr="add"/>
-+ <chmod perm="+x" file="${tomcat.build}/bin/ant"/>
-+ <chmod perm="+x" file="${tomcat.build}/bin/antRun"/>
+ <fixcrlf srcdir="${tomcat.build}" includes="**/*.bat" cr="add"/>
+ <chmod perm="+x" file="${tomcat.build}/bin/ant"/>
+ <chmod perm="+x" file="${tomcat.build}/bin/antRun"/>
+ -->
<chmod perm="+x" file="${tomcat.build}/bin/jspc.sh"/>
<chmod perm="+x" file="${tomcat.build}/bin/startup.sh"/>
<chmod perm="+x" file="${tomcat.build}/bin/shutdown.sh"/>
-@@ -82,8 +90,10 @@
- <target name="tomcat" depends="prepare">
-
- <!-- Determine availability of optional components -->
-+ <!-- no JSSE yet
- <available property="jsse.present"
- classname="com.sun.net.ssl.internal.ssl.Provider" />
-+ -->
- <available property="jdk12.present"
- classname="java.security.PrivilegedAction" />
-
-@@ -95,6 +105,8 @@
+@@ -96,6 +104,8 @@
deprecation="off" >
<exclude name="**/Jdk12Interceptor.java"
unless="jdk12.present"/>
-+ <exclude name="**/Jdk12Support.java"
++ <exclude name="**/Jdk12Support.java"
+ unless="jdk12.present"/>
<exclude name="**/SetSecurityManager.java"
unless="jdk12.present"/>
<exclude name="**/EmbededTomcat.java"
-@@ -107,6 +119,8 @@
- unless="jdk12.present"/>
- <exclude name="**/SSLSocketFactory.java"
- unless="jsse.present" />
-+ <exclude name="**/EmbededTomcat.java"
-+ unless="jsse.present"/>
- </javac>
-
- <!-- Copy the corresponding resource files -->
-@@ -203,8 +217,10 @@
+@@ -204,8 +214,10 @@
</copy>
<!-- Fixups for executable permissions -->
-- <chmod perm="+x" file="${tomcat.dist}/bin/ant"/>
-- <chmod perm="+x" file="${tomcat.dist}/bin/antRun"/>
+ <!--
-+ <chmod perm="+x" file="${tomcat.dist}/bin/ant"/>
-+ <chmod perm="+x" file="${tomcat.dist}/bin/antRun"/>
+ <chmod perm="+x" file="${tomcat.dist}/bin/ant"/>
+ <chmod perm="+x" file="${tomcat.dist}/bin/antRun"/>
+ -->
<chmod perm="+x" file="${tomcat.dist}/bin/jspc.sh"/>
<chmod perm="+x" file="${tomcat.dist}/bin/startup.sh"/>
diff --git a/www/jakarta-tomcat/patches/patch-ae b/www/jakarta-tomcat/patches/patch-ae
new file mode 100644
index 00000000000..00cdda27be6
--- /dev/null
+++ b/www/jakarta-tomcat/patches/patch-ae
@@ -0,0 +1,20 @@
+--- src/share/org/apache/tomcat/loader/AdaptiveClassLoader.java.orig Fri Apr 19 10:40:20 2002
++++ src/share/org/apache/tomcat/loader/AdaptiveClassLoader.java Fri Apr 19 10:40:48 2002
+@@ -813,7 +813,7 @@
+ if (resFile.exists()) {
+ // Build a file:// URL form the file name
+ try {
+- urls.add( new URL("file", null, resFile.getAbsolutePath()) );
++ urls.addElement( new URL("file", null, resFile.getAbsolutePath()) );
+ if(justOne) return urls;
+ } catch(java.net.MalformedURLException badurl) {
+ badurl.printStackTrace();
+@@ -832,7 +832,7 @@
+
+ if (ze != null) {
+ try {
+- urls.add( new URL("jar:file:" + file.getAbsolutePath() + "!/" + name) );
++ urls.addElement( new URL("jar:file:" + file.getAbsolutePath() + "!/" + name) );
+ if(justOne) return urls;
+ } catch(java.net.MalformedURLException badurl) {
+ badurl.printStackTrace();