From 2ee40e3abf6db1cde92b15ce67e86233fd3439bf Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Apr 18 2018 08:29:01 +0000 Subject: Axis1 has been EOL and unmaintained for more than 10 years and no longer receives security fixes, please port your applications to Axis2. --- diff --git a/.gitignore b/.gitignore deleted file mode 100644 index 286f64b..0000000 --- a/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -axis-src-1_2_1.tar.gz -axis-1.4-src.tar.gz diff --git a/axis-CVE-2012-5784.patch b/axis-CVE-2012-5784.patch deleted file mode 100644 index 2cfce30..0000000 --- a/axis-CVE-2012-5784.patch +++ /dev/null @@ -1,316 +0,0 @@ - ---- axis-1.4.orig/src/org/apache/axis/components/net/JSSESocketFactory.java -+++ axis-1.4/src/org/apache/axis/components/net/JSSESocketFactory.java -@@ -15,12 +15,6 @@ - */ - package org.apache.axis.components.net; - --import org.apache.axis.utils.Messages; --import org.apache.axis.utils.XMLUtils; --import org.apache.axis.utils.StringUtils; -- --import javax.net.ssl.SSLSocket; --import javax.net.ssl.SSLSocketFactory; - import java.io.BufferedWriter; - import java.io.IOException; - import java.io.InputStream; -@@ -28,7 +22,27 @@ import java.io.OutputStream; - import java.io.OutputStreamWriter; - import java.io.PrintWriter; - import java.net.Socket; -+import java.security.cert.Certificate; -+import java.security.cert.CertificateParsingException; -+import java.security.cert.X509Certificate; -+import java.util.Arrays; -+import java.util.Collection; - import java.util.Hashtable; -+import java.util.Iterator; -+import java.util.LinkedList; -+import java.util.List; -+import java.util.Locale; -+import java.util.StringTokenizer; -+import java.util.regex.Pattern; -+ -+import javax.net.ssl.SSLException; -+import javax.net.ssl.SSLSession; -+import javax.net.ssl.SSLSocket; -+import javax.net.ssl.SSLSocketFactory; -+ -+import org.apache.axis.utils.Messages; -+import org.apache.axis.utils.StringUtils; -+import org.apache.axis.utils.XMLUtils; - - - /** -@@ -41,6 +55,10 @@ import java.util.Hashtable; - */ - public class JSSESocketFactory extends DefaultSocketFactory implements SecureSocketFactory { - -+ // This is a a sorted list, if you insert new elements do it orderdered. -+ private final static String[] BAD_COUNTRY_2LDS = -+ {"ac", "co", "com", "ed", "edu", "go", "gouv", "gov", "info", -+ "lg", "ne", "net", "or", "org"}; - /** Field sslFactory */ - protected SSLSocketFactory sslFactory = null; - -@@ -187,6 +205,260 @@ public class JSSESocketFactory extends D - if (log.isDebugEnabled()) { - log.debug(Messages.getMessage("createdSSL00")); - } -+ verifyHostName(host, (SSLSocket) sslSocket); - return sslSocket; - } -+ /** -+ * Verifies that the given hostname in certicifate is the hostname we are trying to connect to -+ * http://www.cvedetails.com/cve/CVE-2012-5783/ -+ * @param host -+ * @param ssl -+ * @throws IOException -+ */ -+ -+ private static void verifyHostName(String host, SSLSocket ssl) -+ throws IOException { -+ if (host == null) { -+ throw new IllegalArgumentException("host to verify was null"); -+ } -+ -+ SSLSession session = ssl.getSession(); -+ if (session == null) { -+ // In our experience this only happens under IBM 1.4.x when -+ // spurious (unrelated) certificates show up in the server's chain. -+ // Hopefully this will unearth the real problem: -+ InputStream in = ssl.getInputStream(); -+ in.available(); -+ /* -+ If you're looking at the 2 lines of code above because you're -+ running into a problem, you probably have two options: -+ -+ #1. Clean up the certificate chain that your server -+ is presenting (e.g. edit "/etc/apache2/server.crt" or -+ wherever it is your server's certificate chain is -+ defined). -+ -+ OR -+ -+ #2. Upgrade to an IBM 1.5.x or greater JVM, or switch to a -+ non-IBM JVM. -+ */ -+ -+ // If ssl.getInputStream().available() didn't cause an exception, -+ // maybe at least now the session is available? -+ session = ssl.getSession(); -+ if (session == null) { -+ // If it's still null, probably a startHandshake() will -+ // unearth the real problem. -+ ssl.startHandshake(); -+ -+ // Okay, if we still haven't managed to cause an exception, -+ // might as well go for the NPE. Or maybe we're okay now? -+ session = ssl.getSession(); -+ } -+ } -+ -+ Certificate[] certs = session.getPeerCertificates(); -+ verifyHostName(host.trim().toLowerCase(Locale.US), (X509Certificate) certs[0]); -+ } -+ /** -+ * Extract the names from the certificate and tests host matches one of them -+ * @param host -+ * @param cert -+ * @throws SSLException -+ */ -+ -+ private static void verifyHostName(final String host, X509Certificate cert) -+ throws SSLException { -+ // I'm okay with being case-insensitive when comparing the host we used -+ // to establish the socket to the hostname in the certificate. -+ // Don't trim the CN, though. -+ -+ String cn = getCN(cert); -+ String[] subjectAlts = getDNSSubjectAlts(cert); -+ verifyHostName(host, cn.toLowerCase(Locale.US), subjectAlts); -+ -+ } -+ -+ /** -+ * Extract all alternative names from a certificate. -+ * @param cert -+ * @return -+ */ -+ private static String[] getDNSSubjectAlts(X509Certificate cert) { -+ LinkedList subjectAltList = new LinkedList(); -+ Collection c = null; -+ try { -+ c = cert.getSubjectAlternativeNames(); -+ } catch (CertificateParsingException cpe) { -+ // Should probably log.debug() this? -+ cpe.printStackTrace(); -+ } -+ if (c != null) { -+ Iterator it = c.iterator(); -+ while (it.hasNext()) { -+ List list = (List) it.next(); -+ int type = ((Integer) list.get(0)).intValue(); -+ // If type is 2, then we've got a dNSName -+ if (type == 2) { -+ String s = (String) list.get(1); -+ subjectAltList.add(s); -+ } -+ } -+ } -+ if (!subjectAltList.isEmpty()) { -+ String[] subjectAlts = new String[subjectAltList.size()]; -+ subjectAltList.toArray(subjectAlts); -+ return subjectAlts; -+ } else { -+ return new String[0]; -+ } -+ -+ } -+ /** -+ * Verifies -+ * @param host -+ * @param cn -+ * @param subjectAlts -+ * @throws SSLException -+ */ -+ -+ private static void verifyHostName(final String host, String cn, String[] subjectAlts)throws SSLException{ -+ StringBuffer cnTested = new StringBuffer(); -+ -+ for (int i = 0; i < subjectAlts.length; i++){ -+ String name = subjectAlts[i]; -+ if (name != null) { -+ name = name.toLowerCase(Locale.US); -+ if (verifyHostName(host, name)){ -+ return; -+ } -+ cnTested.append("/").append(name); -+ } -+ } -+ if (cn != null && verifyHostName(host, cn)){ -+ return; -+ } -+ cnTested.append("/").append(cn); -+ throw new SSLException("hostname in certificate didn't match: <" -+ + host + "> != <" + cnTested + ">"); -+ -+ } -+ -+ private static boolean verifyHostName(final String host, final String cn){ -+ if (doWildCard(cn) && !isIPAddress(host)) { -+ return matchesWildCard(cn, host); -+ } -+ return host.equalsIgnoreCase(cn); -+ } -+ private static boolean doWildCard(String cn) { -+ // Contains a wildcard -+ // wildcard in the first block -+ // not an ipaddress (ip addres must explicitily be equal) -+ // not using 2nd level common tld : ex: not for *.co.uk -+ String parts[] = cn.split("\\."); -+ return parts.length >= 3 && -+ parts[0].endsWith("*") && -+ acceptableCountryWildcard(cn) && -+ !isIPAddress(cn); -+ } -+ -+ private static final Pattern IPV4_PATTERN = -+ Pattern.compile("^(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)(\\.(25[0-5]|2[0-4]\\d|[0-1]?\\d?\\d)){3}$"); -+ -+ private static final Pattern IPV6_STD_PATTERN = -+ Pattern.compile("^(?:[0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}$"); -+ -+ private static final Pattern IPV6_HEX_COMPRESSED_PATTERN = -+ Pattern.compile("^((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)::((?:[0-9A-Fa-f]{1,4}(?::[0-9A-Fa-f]{1,4})*)?)$"); -+ -+ -+ private static boolean isIPAddress(final String hostname) { -+ return hostname != null -+ && ( -+ IPV4_PATTERN.matcher(hostname).matches() -+ || IPV6_STD_PATTERN.matcher(hostname).matches() -+ || IPV6_HEX_COMPRESSED_PATTERN.matcher(hostname).matches() -+ ); -+ -+ } -+ -+ private static boolean acceptableCountryWildcard(final String cn) { -+ // The CN better have at least two dots if it wants wildcard action, -+ // but can't be [*.co.uk] or [*.co.jp] or [*.org.uk], etc... -+ // The [*.co.uk] problem is an interesting one. Should we just -+ // hope that CA's would never foolishly allow such a -+ // certificate to happen? -+ -+ String[] parts = cn.split("\\."); -+ // Only checks for 3 levels, with country code of 2 letters. -+ if (parts.length > 3 || parts[parts.length - 1].length() != 2) { -+ return true; -+ } -+ String countryCode = parts[parts.length - 2]; -+ return Arrays.binarySearch(BAD_COUNTRY_2LDS, countryCode) < 0; -+ } -+ -+ private static boolean matchesWildCard(final String cn, -+ final String hostName) { -+ String parts[] = cn.split("\\."); -+ boolean match = false; -+ String firstpart = parts[0]; -+ if (firstpart.length() > 1) { -+ // server∗ -+ // e.g. server -+ String prefix = firstpart.substring(0, firstpart.length() - 1); -+ // skipwildcard part from cn -+ String suffix = cn.substring(firstpart.length()); -+ // skip wildcard part from host -+ String hostSuffix = hostName.substring(prefix.length()); -+ match = hostName.startsWith(prefix) && hostSuffix.endsWith(suffix); -+ } else { -+ match = hostName.endsWith(cn.substring(1)); -+ } -+ if (match) { -+ // I f we ’ r e i n s t r i c t mode , -+ // [ ∗.foo.com] is not allowed to match [a.b.foo.com] -+ match = countDots(hostName) == countDots(cn); -+ } -+ return match; -+ } -+ -+ private static int countDots(final String data) { -+ int dots = 0; -+ for (int i = 0; i < data.length(); i++) { -+ if (data.charAt(i) == '.') { -+ dots += 1; -+ } -+ } -+ return dots; -+ } -+ -+ -+ private static String getCN(X509Certificate cert) { -+ // Note: toString() seems to do a better job than getName() -+ // -+ // For example, getName() gives me this: -+ // 1.2.840.113549.1.9.1=#16166a756c6975736461766965734063756362632e636f6d -+ // -+ // whereas toString() gives me this: -+ // EMAILADDRESS=juliusdavies@cucbc.com -+ String subjectPrincipal = cert.getSubjectX500Principal().toString(); -+ -+ return getCN(subjectPrincipal); -+ -+ } -+ private static String getCN(String subjectPrincipal) { -+ StringTokenizer st = new StringTokenizer(subjectPrincipal, ","); -+ while(st.hasMoreTokens()) { -+ String tok = st.nextToken().trim(); -+ if (tok.length() > 3) { -+ if (tok.substring(0, 3).equalsIgnoreCase("CN=")) { -+ return tok.substring(3); -+ } -+ } -+ } -+ return null; -+ } -+ - } diff --git a/axis-MANIFEST.MF b/axis-MANIFEST.MF deleted file mode 100644 index 8a6357a..0000000 --- a/axis-MANIFEST.MF +++ /dev/null @@ -1,76 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %Bundle-Name.0 -Bundle-SymbolicName: org.apache.axis -Bundle-Version: 1.4.0 -Bundle-Vendor: %Bundle-Vendor.0 -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.4 -Export-Package: org.apache.axis, - org.apache.axis.attachments, - org.apache.axis.client, - org.apache.axis.client.async, - org.apache.axis.collections, - org.apache.axis.components.compiler, - org.apache.axis.components.encoding, - org.apache.axis.components.image, - org.apache.axis.components.jms, - org.apache.axis.components.logger, - org.apache.axis.components.net, - org.apache.axis.components.script, - org.apache.axis.components.threadpool, - org.apache.axis.components.uuid, - org.apache.axis.configuration, - org.apache.axis.constants, - org.apache.axis.deployment.wsdd, - org.apache.axis.deployment.wsdd.providers, - org.apache.axis.description, - org.apache.axis.encoding, - org.apache.axis.encoding.ser, - org.apache.axis.encoding.ser.castor, - org.apache.axis.enum, - org.apache.axis.handlers, - org.apache.axis.handlers.http, - org.apache.axis.handlers.soap, - org.apache.axis.holders, - org.apache.axis.i18n, - org.apache.axis.management, - org.apache.axis.management.jmx, - org.apache.axis.message, - org.apache.axis.monitor, - org.apache.axis.providers, - org.apache.axis.providers.java, - org.apache.axis.schema, - org.apache.axis.security, - org.apache.axis.security.servlet, - org.apache.axis.security.simple, - org.apache.axis.server, - org.apache.axis.session, - org.apache.axis.soap, - org.apache.axis.strategies, - org.apache.axis.transport.http, - org.apache.axis.transport.java, - org.apache.axis.transport.jms, - org.apache.axis.transport.local, - org.apache.axis.transport.mail, - org.apache.axis.types, - org.apache.axis.utils, - org.apache.axis.utils.bytecode, - org.apache.axis.utils.cache, - org.apache.axis.wsdl, - org.apache.axis.wsdl.fromJava, - org.apache.axis.wsdl.gen, - org.apache.axis.wsdl.symbolTable, - org.apache.axis.wsdl.toJava -Require-Bundle: javax.xml.rpc;bundle-version="[1.1.0,2.0.0)", - javax.xml.soap;bundle-version="[1.2.0,2.0.0)", - javax.wsdl;bundle-version="[1.5.1,2.0.0)", - org.apache.commons.discovery;bundle-version="[0.2.0,1.0.0)" -Import-Package: org.apache.commons.logging;version="[1.0.4,2.0.0)";resolution:=optional, - org.apache.commons.logging.impl;version="[1.0.4,2.0.0)";resolution:=optional, - javax.servlet;resolution:=optional, - javax.servlet.http;resolution:=optional, - javax.activation;resolution:=optional, - javax.mail;resolution:=optional, - javax.mail.internet;resolution:=optional -Eclipse-BuddyPolicy: registered diff --git a/axis-ant-MANIFEST.MF b/axis-ant-MANIFEST.MF deleted file mode 100644 index 3d67ece..0000000 --- a/axis-ant-MANIFEST.MF +++ /dev/null @@ -1,18 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %Bundle-Name.0 -Bundle-SymbolicName: org.apache.axis.tools -Bundle-Version: 1.4.0 -Bundle-Vendor: %Bundle-Vendor.0 -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.4 -Export-Package: org.apache.axis.tools - org.apache.axis.tools.ant.axis, - org.apache.axis.tools.ant.foreach, - org.apache.axis.tools.ant.wsdl -Require-Bundle: org.apache.axis;bundle-version="1.4.0", - javax.xml.rpc;bundle-version="[1.1.0,2.0.0)", - javax.xml.soap;bundle-version="[1.2.0,2.0.0)", - org.apache.ant;resolution:=optional;bundle-version="[1.6.5,2.0.0)" -Import-Package: javax.activation;resolution:=optional -Eclipse-BuddyPolicy: registered diff --git a/axis-java16.patch b/axis-java16.patch deleted file mode 100644 index f44b3bc..0000000 --- a/axis-java16.patch +++ /dev/null @@ -1,27 +0,0 @@ -diff -Nur -x '*.orig' -x '*~' axis-1.4/src/org/apache/axis/i18n/ProjectResourceBundle.java axis-1.4.new/src/org/apache/axis/i18n/ProjectResourceBundle.java ---- src/org/apache/axis/i18n/ProjectResourceBundle.java 2006-04-23 03:57:27.000000000 +0200 -+++ src/org/apache/axis/i18n/ProjectResourceBundle.java 2009-07-24 18:24:32.000000000 +0200 -@@ -360,10 +360,12 @@ - /** - * Clears the internal cache - */ -+ /* - public static void clearCache() - { - bundleCache.clear(); - } -+ */ - - public String toString() { - return resourceName; ---- tools/build.xml.orig 2017-02-13 13:42:13.426990617 +0000 -+++ tools/build.xml 2017-02-13 13:42:30.443791950 +0000 -@@ -106,7 +106,7 @@ - - -- -+ - - - diff --git a/axis-manifest.patch b/axis-manifest.patch deleted file mode 100644 index 1ac7d83..0000000 --- a/axis-manifest.patch +++ /dev/null @@ -1,44 +0,0 @@ ---- build.xml 2011-11-30 16:55:39.668021907 -0500 -+++ build.xml 2011-12-01 11:06:16.379181123 -0500 -@@ -190,38 +190,17 @@ Copyright: - - - -- -+ - - - -- --
-- -- -- --
--
-
-- -+ - - -- --
-- -- -- --
--
-
-- -+ - -- --
-- -- -- --
--
-
- - diff --git a/axis-xml-commons-apis.patch b/axis-xml-commons-apis.patch deleted file mode 100644 index d588856..0000000 --- a/axis-xml-commons-apis.patch +++ /dev/null @@ -1,313 +0,0 @@ ---- axis-1.4-src/src/org/apache/axis/message/MessageElement.java.orig 2005-08-20 21:49:29.000000000 +0100 -+++ axis-1.4-src/src/org/apache/axis/message/MessageElement.java 2013-08-06 18:00:00.585790538 +0100 -@@ -2143,4 +2143,20 @@ - } - return doc; - } -+ -+ public org.w3c.dom.TypeInfo getSchemaTypeInfo() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setIdAttribute(String name, boolean isId) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setIdAttributeNS(String namespaceURI, String localName, boolean isId) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setIdAttributeNode(Attr idAttr, boolean isId) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } - } ---- axis-1.4-src/src/org/apache/axis/message/NodeImpl.java.orig 2005-08-20 21:49:29.000000000 +0100 -+++ axis-1.4-src/src/org/apache/axis/message/NodeImpl.java 2013-08-06 16:29:25.304348471 +0100 -@@ -857,4 +857,53 @@ - } - this._isDirty = false; - } -+ -+ // Node -+ public String getBaseURI() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public short compareDocumentPosition(Node other) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getTextContent() throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setTextContent(String textContent) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean isSameNode(Node other) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String lookupPrefix(String namespaceURI) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean isDefaultNamespace(String namespaceURI) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String lookupNamespaceURI(String prefix) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean isEqualNode(Node arg) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Object getFeature(String feature, String version) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Object getUserData(String key) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } - } ---- axis-1.4-src/src/org/apache/axis/message/SOAPDocumentImpl.java.orig 2005-05-27 16:34:36.000000000 +0100 -+++ axis-1.4-src/src/org/apache/axis/message/SOAPDocumentImpl.java 2013-08-06 16:28:49.488404040 +0100 -@@ -681,4 +681,110 @@ - public boolean hasAttributes() { - throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); - } -+ -+ // Document -+ public String getInputEncoding() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getXmlEncoding() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean getXmlStandalone() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setXmlStandalone(boolean xmlStandalone) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getXmlVersion() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setXmlVersion(String xmlVersion) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean getStrictErrorChecking() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setStrictErrorChecking(boolean strictErrorChecking) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getDocumentURI() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setDocumentURI(String documentURI) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Node adoptNode(Node source) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public org.w3c.dom.DOMConfiguration getDomConfig() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void normalizeDocument() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ // Node -+ public String getBaseURI() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public short compareDocumentPosition(Node other) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getTextContent() throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setTextContent(String textContent) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean isSameNode(Node other) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String lookupPrefix(String namespaceURI) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean isDefaultNamespace(String namespaceURI) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String lookupNamespaceURI(String prefix) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean isEqualNode(Node arg) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Object getFeature(String feature, String version) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Object getUserData(String key) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } - } ---- axis-1.4-src/src/org/apache/axis/SOAPPart.java.orig 2005-06-07 15:30:09.000000000 +0100 -+++ axis-1.4-src/src/org/apache/axis/SOAPPart.java 2013-08-06 16:40:38.837369862 +0100 -@@ -1280,5 +1280,99 @@ - public boolean isBodyStream() { - return (currentForm == SOAPPart.FORM_INPUTSTREAM || currentForm == SOAPPart.FORM_BODYINSTREAM); - } -+ -+ // Document -+ public String getInputEncoding() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getXmlEncoding() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean getXmlStandalone() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setXmlStandalone(boolean xmlStandalone) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getXmlVersion() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setXmlVersion(String xmlVersion) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getDocumentURI() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setDocumentURI(String documentURI) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public org.w3c.dom.DOMConfiguration getDomConfig() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void normalizeDocument() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Node renameNode(Node n, String namespaceURI, String qualifiedName) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ // Node -+ public String getBaseURI() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public short compareDocumentPosition(Node other) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getTextContent() throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public void setTextContent(String textContent) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean isSameNode(Node other) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String lookupPrefix(String namespaceURI) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean isDefaultNamespace(String namespaceURI) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String lookupNamespaceURI(String prefix) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public boolean isEqualNode(Node arg) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Object getFeature(String feature, String version) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Object setUserData(String key, Object data, org.w3c.dom.UserDataHandler handler) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public Object getUserData(String key) { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } - } - ---- axis-1.4-src/src/org/apache/axis/message/Text.java.orig 2005-08-20 21:49:29.000000000 +0100 -+++ axis-1.4-src/src/org/apache/axis/message/Text.java 2013-08-06 17:33:38.120031238 +0100 -@@ -213,4 +213,16 @@ - return ( textRep.getData() != null ? textRep.getData().hashCode() : 0 ); - } - -+ // Text -+ public boolean isElementContentWhitespace() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public String getWholeText() { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } -+ -+ public org.w3c.dom.Text replaceWholeText(String content) throws DOMException { -+ throw new DOMException(DOMException.NOT_SUPPORTED_ERR, ""); -+ } - } diff --git a/axis.spec b/axis.spec deleted file mode 100644 index d26144e..0000000 --- a/axis.spec +++ /dev/null @@ -1,391 +0,0 @@ -Name: axis -Version: 1.4 -Release: 37%{?dist} -Epoch: 0 -Summary: SOAP implementation in Java -License: ASL 2.0 -URL: http://ws.apache.org/axis/ -Source0: axis-1.4-src.tar.gz -# svn export http://svn.apache.org/repos/asf/webservices/axis/branches/AXIS_1_4_FINAL/ -# Build only -# cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/tools export -r v1_1_0 org.eclipse.orbit/javax.xml.rpc/META-INF/MANIFEST.MF -# mv org.eclipse.orbit/javax.xml.rpc/META-INF/MANIFEST.MF xmlrpc-MANIFEST.MF -Source1: xmlrpc-MANIFEST.MF -# cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/tools export -r v1_4_0 org.eclipse.orbit/org.apache.axis/META-INF/MANIFEST.MF -# mv org.eclipse.orbit/org.apache.axis/META-INF/MANIFEST.MF axis-MANIFEST.MF -Source2: axis-MANIFEST.MF -# cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/tools export -r v1_3_0 org.eclipse.orbit/javax.xml.soap/META-INF/MANIFEST.MF -# mv org.eclipse.orbit/javax.xml.soap/META-INF/MANIFEST.MF saaj-MANIFEST.MF -Source3: saaj-MANIFEST.MF -Source4: axis-ant-MANIFEST.MF -Patch0: %{name}-java16.patch -Patch1: %{name}-manifest.patch -# CVE-2012-5784: Does not verify that the server hostname matches X.509 certificate name -# https://issues.apache.org/jira/secure/attachment/12560257/CVE-2012-5784-2.patch -Patch3: %{name}-CVE-2012-5784.patch -# Patch to use newer xml-commons-apis -Patch4: axis-xml-commons-apis.patch -BuildRequires: java-devel -BuildRequires: javapackages-local -BuildRequires: ant -BuildRequires: ant-junit -BuildRequires: httpunit -BuildRequires: junit -BuildRequires: xmlunit -# Main requires -BuildRequires: bea-stax-api -BuildRequires: bsf -BuildRequires: castor -BuildRequires: javax.mail -BuildRequires: glassfish-servlet-api -BuildRequires: apache-commons-discovery -BuildRequires: jakarta-commons-httpclient >= 1:3.0 -BuildRequires: apache-commons-logging -BuildRequires: apache-commons-net -BuildRequires: jakarta-oro -BuildRequires: regexp -BuildRequires: log4j12 -BuildRequires: javax.wsdl -BuildRequires: xalan-j2 -BuildRequires: xmlbeans -BuildRequires: xml-security -BuildRequires: zip - -Requires: apache-commons-discovery -Requires: apache-commons-logging -Requires: jakarta-commons-httpclient >= 1:3.0 -Requires: log4j12 -Requires: javax.mail -Requires: javax.wsdl - -BuildArch: noarch - -Provides: javax.xml.rpc - -%description -Apache AXIS is an implementation of the SOAP ("Simple Object Access Protocol") -submission to W3C. - -From the draft W3C specification: - -SOAP is a lightweight protocol for exchange of information in a decentralized, -distributed environment. It is an XML based protocol that consists of three -parts: an envelope that defines a framework for describing what is in a message -and how to process it, a set of encoding rules for expressing instances of -application-defined datatypes, and a convention for representing remote -procedure calls and responses. - -This project is a follow-on to the Apache SOAP project. - -%package javadoc -Summary: Javadoc for %{name} - -%description javadoc -Javadoc for %{name}. - -%package manual -Summary: Manual for %{name} -Requires: %{name}-javadoc - -%description manual -Documentation for %{name}. - -%prep -%setup -q -n %{name}-%{version}-src -ln -s %{_javadocdir}/%{name} docs/apiDocs - -# Remove provided binaries -find . -name "*.jar" -delete -find . -name "*.zip" -delete -find . -name "*.class" -delete - -%patch0 -b .orig -%patch1 -b .orig - -cp %{SOURCE1} %{SOURCE2} %{SOURCE3} . - -%patch3 -p1 -b .orig -%patch4 -p1 -b .orig - -# Disable doclinting for java 8 -sed -i '/doctitle/a additionalparam="-Xdoclint:none"' build.xml - -# Use correct encoding -sed -i '/ - 0:1.4-37 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Fri Jan 05 2018 Mat Booth - 0:1.4-36 -- Add missing dep on javadoc package - -* Mon Oct 09 2017 Troy Dawson - 0:1.4-35 -- Fix zip -u in spec file causes race condition (#1495226) - -* Tue Aug 22 2017 Mat Booth - 0:1.4-34 -- Fix failure to build from source -- Install with xmvn and use JRE version of xml apis - -* Wed Jul 26 2017 Fedora Release Engineering - 0:1.4-33 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild - -* Wed Feb 15 2017 Mat Booth - 0:1.4-32 -- Relax servlet version restriction in OSGi metadata - -* Mon Feb 13 2017 Mat Booth - 0:1.4-31 -- Fix failure to build from source - -* Fri Feb 10 2017 Fedora Release Engineering - 0:1.4-30 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild - -* Tue Jul 26 2016 Mat Booth - 0:1.4-29 -- Disable doclinting for java 8 - -* Wed Feb 03 2016 Fedora Release Engineering - 0:1.4-28 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild - -* Wed Jun 17 2015 Alexander Kurtakov 0:1.4-27 -- Fix FTBFS - switch to glassfish-servlet-api. - -* Wed Jun 17 2015 Fedora Release Engineering - 0:1.4-26 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild - -* Sat Jun 07 2014 Fedora Release Engineering - 0:1.4-25 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - -* Fri Mar 28 2014 Michael Simacek - 0:1.4-24 -- Use Requires: java-headless rebuild (#1067528) - -* Tue Aug 13 2013 Stanislav Ochotnicky - 0:1.4-23 -- Add javax.xml.rpc provides and directory - -* Wed Aug 07 2013 Mat Booth - 0:1.4-22 -- Update BR/R and patch to build against newer APIs, rhbz #992008 - -* Sat Aug 03 2013 Fedora Release Engineering - 0:1.4-21 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild - -* Wed Feb 13 2013 Fedora Release Engineering - 0:1.4-20 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - -* Mon Jan 21 2013 Mikolaj Izdebski - 0:1.4-19 -- Add missing connection hostname check against X.509 certificate name -- Resolves: CVE-2012-5784 - -* Tue Jul 31 2012 Andy Grimm - 0:1.4-18 -- replace POMs with newer upstream versions using org.apache.axis gid - -* Wed Jul 18 2012 Fedora Release Engineering - 0:1.4-17 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild - -* Tue Jun 26 2012 Gerard Ryan 0:1.4-16 -- Remove problematic comma from axis.jar manifest - -* Sat Jun 23 2012 Gerard Ryan 0:1.4-15 -- Fix existing OSGI manifests and add manifest to axis-ant. - -* Fri May 11 2012 Marek Goldmann 0:1.4-14 -- Changed dependency from axis-wsdl4j to wsdl4j - -* Mon Apr 30 2012 Alexander Kurtakov 0:1.4-13 -- Revert RHEL conditionals - we are not getting complete build with them. - -* Mon Apr 30 2012 Alexander Kurtakov 0:1.4-12 -- Conditionalize xmlbeans/xml-security for RHEL. - -* Mon Feb 13 2012 Andy Grimm - 0:1.4-11 -- Add POM files from maven.org -- Uncomment optional BuildRequires to enable axis-schema build -- Disable tests, as they appear to be incompatible with junit4 - -* Thu Jan 12 2012 Fedora Release Engineering - 0:1.4-10 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild - -* Thu Dec 01 2011 Andrew Robinson 0:1.4-9 -- Inject orbit manifests to jars. - -* Mon Feb 07 2011 Fedora Release Engineering - 0:1.4-8 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild - -* Mon Dec 20 2010 Alexander Kurtakov 0:1.4-7 -- Drop versioned jar and javadoc. -- Do not call build targets twice. -- Other cleanups per the new guidelines. - -* Wed Oct 6 2010 Alexander Kurtakov 0:1.4-6 -- Fix javamail jar. - -* Wed Oct 6 2010 Alexander Kurtakov 0:1.4-5 -- Fix groups. -- Use new package names. - -* Fri Feb 12 2010 Alexander Kurtakov 0:1.4-4.1 -- Update to 1.4. - -* Fri Sep 25 2009 Dan Horak 0:1.2.1-7 -- Backport fix for building with java 1.6, synced from F-11 branch (#511480, #523203) - -* Fri Jul 24 2009 Fedora Release Engineering - 0:1.2.1-6.1 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild - -* Mon Feb 23 2009 Fedora Release Engineering - 0:1.2.1-5.1 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild - -* Wed Oct 01 2008 Permaine Cheung 0:1.2.1-4.1 -- Specify source=1.4 for javac - -* Wed Jul 9 2008 Tom "spot" Callaway 0:1.2.1-4 -- drop repotag -- fix license tag - -* Thu Jun 05 2008 Permaine Cheung 0:1.2.1-3jpp.9 -- Add javac.source=1.4 to the ant command for the build - -* Tue Feb 19 2008 Fedora Release Engineering - 0:1.2.1-3jpp.8 -- Autorebuild for GCC 4.3 - -* Thu Apr 19 2007 Permaine Cheung 0:1.2.1-2jpp.8 -- Rebuild - -* Wed Apr 04 2007 Permaine Cheung 0:1.2.1-2jpp.7 -- Fix building javadoc -- rpmlint cleanup - -* Thu Aug 03 2006 Deepak Bhole 0:1.2.1-2jpp.6 -- Added missing requirements - -* Sat Jul 22 2006 Jakub Jelinek - 0:1.2.1-2jpp_5fc -- Rebuilt - -* Wed Jul 19 2006 Deepak Bhole - 0:1.2.1-2jpp_4fc -- Added conditional native compilation. - -* Wed Jul 12 2006 Jesse Keating - 0:1.2.1-2jpp_3fc -- rebuild - -* Mon Mar 6 2006 Jeremy Katz - 0:1.2.1-2jpp_2fc -- stop scriptlet spew - -* Wed Mar 1 2006 Archit Shah 0:1.2.1-2jpp_1fc -- remove unnecessary build dependencies on jacorb and jonathan-rmi -- include fix to Axis bug 2142 -- merge from upstream 2jpp - -* Fri Dec 09 2005 Jesse Keating -- rebuilt - -* Tue Jun 21 2005 Gary Benson 0:1.2.1-1jpp_1fc -- Upgrade to 1.2.1-1jpp. - -* Fri Jun 17 2005 Fernando Nasser 0:1.2.1-1jpp -- Upgrade to 1.2.1 maintenance release - -* Fri Jun 17 2005 Gary Benson 0:1.2-1jpp_1fc -- Work around file descripter leak (#160802). -- Build into Fedora. - -* Mon Jun 13 2005 Gary Benson -- Add ObjectWeb's patch. - -* Fri Jun 10 2005 Gary Benson -- Remove jarfiles from the tarball. - -* Tue Jun 7 2005 Gary Benson -- Add DOM3 stubs to classes that need them (#152255). -- Avoid some API holes in libgcj's ImageIO implementation. -- Pick up CORBA and javax.rmi classes from jacorb and jonathan-rmi. - -* Wed May 04 2005 Fernando Nasser 0:1.2-1jpp_1rh -- Merge with upstream for upgrade - -* Wed May 04 2005 Fernando Nasser 0:1.2-1jpp -- Finaly 1.2 final release - -* Sat Mar 12 2005 Ralph Apel 0:1.2-0.rc2.3jpp -- Also Buildrequire ant-nodeps - -* Fri Mar 11 2005 Ralph Apel 0:1.2-0.rc2.2jpp -- Set OPT_JAR_LIST to "ant/ant-nodeps" -- Buildrequire ant >= 1.6 - -* Mon Feb 28 2005 Fernando Nasser 0:1.2-0.rc2.1jpp -- Upgrade to 1.2.rc2 - -* Fri Aug 20 2004 Ralph Apel 0:1.1-3jpp -- Build with ant-1.6.2 - -* Thu Jun 26 2003 Nicolas Mailhot 0:1.1-2jpp -- fix javadoc versionning - -* Thu Jun 26 2003 Nicolas Mailhot 0:1.1-1jpp -- Initial packaging -- no xml security for now since xml-security is not packaged yet -- functional tests not executed yet - seems they need some setup and do not - run out of the box -- no webapp right now - file layout is too messy if hidden into a war file - since jpp installs webapps expanded, this matters diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..62fc834 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +Axis1 has been EOL and unmaintained for more than 10 years and no longer receives security fixes, please port your applications to Axis2. diff --git a/saaj-MANIFEST.MF b/saaj-MANIFEST.MF deleted file mode 100644 index 8ad361b..0000000 --- a/saaj-MANIFEST.MF +++ /dev/null @@ -1,19 +0,0 @@ -Manifest-Version: 1.0 -Export-Package: javax.xml.soap;version="1.3.0"; - uses:="javax.activation, - javax.xml.namespace, - javax.xml.transform, - org.w3c.dom" -Bundle-Localization: plugin -Bundle-Name: %Bundle-Name.0 -Bundle-Version: 1.3.0 -Bundle-ManifestVersion: 2 -Import-Package: javax.activation, - javax.xml.namespace, - javax.xml.transform, - javax.xml.transform.dom, - org.w3c.dom -Bundle-SymbolicName: javax.xml.soap -Bundle-RequiredExecutionEnvironment: J2SE-1.5 -Require-Bundle: system.bundle -Bundle-Vendor: %Bundle-Vendor.0 diff --git a/sources b/sources deleted file mode 100644 index 6b23eac..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -c787567dd314951f0d47c4c4a96d3f2a axis-1.4-src.tar.gz diff --git a/xmlrpc-MANIFEST.MF b/xmlrpc-MANIFEST.MF deleted file mode 100644 index cff07b8..0000000 --- a/xmlrpc-MANIFEST.MF +++ /dev/null @@ -1,25 +0,0 @@ -Manifest-Version: 1.0 -Bundle-ManifestVersion: 2 -Bundle-Name: %Bundle-Name.0 -Created-By: 1.4.2_08-b03 (Sun Microsystems Inc.) - Name: javax/xml/rpc -Specification-Title: JAX-RPC -Specification-Version: 1.1 -Specification-Vendor: JCP -Bundle-SymbolicName: javax.xml.rpc -Bundle-Version: 1.1.0 -Bundle-Vendor: %Bundle-Vendor.0 -Bundle-Localization: plugin -Bundle-RequiredExecutionEnvironment: J2SE-1.4 -Export-Package: javax.xml.messaging, - javax.xml.rpc, - javax.xml.rpc.encoding, - javax.xml.rpc.handler, - javax.xml.rpc.handler.soap, - javax.xml.rpc.holders, - javax.xml.rpc.server, - javax.xml.rpc.soap -Require-Bundle: org.apache.xerces;bundle-version="[2.8.0,3.0.0)";resolution:=optional -Import-Package: javax.servlet, - javax.servlet.http, - javax.xml.soap