blob: 72dc3aa6a4acf67e856f8e46c552b0e0d33d2a52 [file]
<!DOCTYPE html>
<!--
| Generated by Apache Maven Doxia Site Renderer 2.1.0 from src/site/markdown/release-notes/2.0.2.md at 2026-10-13
| Rendered using Apache Maven Fluido Skin 2.0.0-M11
-->
<html xmlns="http://www.w3.org/1999/xhtml" lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="generator" content="Apache Maven Doxia Site Renderer 2.1.0" />
<title>Apache Axis2 2.0.2 Release Notes – Apache Axis2</title>
<link rel="stylesheet" href="../css/apache-maven-fluido-2.0.0-M11.min.css" />
<link rel="stylesheet" href="../css/site.css" />
<link rel="stylesheet" href="../css/print.css" media="print" />
<script src="../js/apache-maven-fluido-2.0.0-M11.min.js"></script>
</head>
<body>
<div class="container-fluid container-fluid-top">
<header>
<div id="banner">
<div class="pull-left"><div id="bannerLeft"><h1><a href="https://www.apache.org/"><img class="class java.lang.Object" src="https://www.apache.org/images/asf_logo_wide.png" /> Apache Axis2</a></h1></div></div>
<div class="pull-right"><div id="bannerRight"><h1><a href="https://axis.apache.org/axis2/java/core/"><img class="class java.lang.Object" src="https://axis.apache.org/axis2/java/core/images/axis.jpg" /></a></h1></div></div>
<div class="clear"><hr/></div>
</div>
<div id="breadcrumbs">
<ul class="breadcrumb">
<li id="publishDate">Last Published: 2026-10-13<span class="divider">|</span>
</li>
<li id="projectVersion">Version: 2.0.2<span class="divider">|</span></li>
<li><a href="https://www.apache.org" class="externalLink">Apache</a><span class="divider">/</span></li>
<li><a href="../index.html">Axis2/Java</a><span class="divider">/</span></li>
<li class="active">Apache Axis2 2.0.2 Release Notes</li>
</ul>
</div>
</header>
<div class="row-fluid">
<header id="leftColumn" class="span2">
<nav class="well sidebar-nav">
<ul class="nav nav-list">
<li class="nav-header">Axis2/Java</li>
<li><a href="../index.html">Home</a></li>
<li><a href="../download.html">Downloads</a></li>
<li><a href="javascript:void(0)"><span class="icon-chevron-down"></span>Release Notes</a>
<ul class="nav nav-list">
<li><a href="../release-notes/1.6.1.html">1.6.1</a></li>
<li><a href="../release-notes/1.6.2.html">1.6.2</a></li>
<li><a href="../release-notes/1.6.3.html">1.6.3</a></li>
<li><a href="../release-notes/1.6.4.html">1.6.4</a></li>
<li><a href="../release-notes/1.7.0.html">1.7.0</a></li>
<li><a href="../release-notes/1.7.1.html">1.7.1</a></li>
<li><a href="../release-notes/1.7.2.html">1.7.2</a></li>
<li><a href="../release-notes/1.7.3.html">1.7.3</a></li>
<li><a href="../release-notes/1.7.4.html">1.7.4</a></li>
<li><a href="../release-notes/1.7.5.html">1.7.5</a></li>
<li><a href="../release-notes/1.7.6.html">1.7.6</a></li>
<li><a href="../release-notes/1.7.7.html">1.7.7</a></li>
<li><a href="../release-notes/1.7.8.html">1.7.8</a></li>
<li><a href="../release-notes/1.7.9.html">1.7.9</a></li>
<li><a href="../release-notes/1.7.10.html">1.7.10</a></li>
<li><a href="../release-notes/1.8.0.html">1.8.0</a></li>
<li><a href="../release-notes/1.8.1.html">1.8.1</a></li>
<li><a href="../release-notes/1.8.2.html">1.8.2</a></li>
<li><a href="../release-notes/2.0.0.html">2.0.0</a></li>
<li><a href="../release-notes/2.0.1.html">2.0.1</a></li>
<li class="active"><a>2.0.2</a></li>
</ul></li>
<li><a href="../modules/index.html">Modules</a></li>
<li><a href="../tools/index.html">Tools</a></li>
<li class="nav-header">Documentation</li>
<li><a href="../docs/toc.html">Table of Contents</a></li>
<li><a href="../docs/installationguide.html">Installation Guide</a></li>
<li><a href="../docs/quickstartguide.html">QuickStart Guide</a></li>
<li><a href="../docs/userguide.html">User Guide</a></li>
<li><a href="../docs/jaxws-guide.html">JAXWS Guide</a></li>
<li><a href="../docs/pojoguide.html">POJO Guide</a></li>
<li><a href="../docs/spring.html">Spring Guide</a></li>
<li><a href="../docs/webadminguide.html">Web Administrator&apos;s Guide</a></li>
<li><a href="../docs/migration.html">Migration Guide (from Axis1)</a></li>
<li class="nav-header">Resources</li>
<li><a href="../faq.html">FAQ</a></li>
<li><a href="https://github.com/apache/axis-axis2-java-core" class="externalLink">Source Code</a></li>
<li class="nav-header">Get Involved</li>
<li><a href="../overview.html">Overview</a></li>
<li><a href="../mailing-lists.html">Mailing Lists</a></li>
<li><a href="../release-process.html">Release Process</a></li>
<li><a href="../guidelines.html">Developer Guidelines</a></li>
<li><a href="../siteHowTo.html">Build the Site</a></li>
<li class="nav-header">Project Information</li>
<li><a href="https://github.com/apache/axis-axis2-java-core/graphs/contributors" class="externalLink">Contributors</a></li>
<li><a href="https://issues.apache.org/jira/projects/AXIS2/issues" class="externalLink">Issues</a></li>
<li class="nav-header">Apache</li>
<li><a href="https://www.apache.org/licenses/LICENSE-2.0.html" class="externalLink">License</a></li>
<li><a href="https://www.apache.org/foundation/sponsorship.html" class="externalLink">Sponsorship</a></li>
<li><a href="https://www.apache.org/foundation/thanks.html" class="externalLink">Thanks</a></li>
<li><a href="https://www.apache.org/security/" class="externalLink">Security</a></li>
</ul>
</nav>
<div class="well sidebar-nav">
<div id="poweredBy">
<div class="clear"></div>
<div class="clear"></div>
<a href="https://maven.apache.org/" class="builtBy" target="_blank"><img class="builtBy" alt="Built by Maven" src="../images/logos/maven-feather.png" /></a>
</div>
</div>
</header>
<main id="bodyColumn" class="span10">
<section><section><a id="Apache_Axis2_2.0.2_Release_Notes"></a>
<h2>Apache Axis2 2.0.2 Release Notes</h2></section><section><a id="Upgrading_from_2.0.1"></a>
<h2>Upgrading from 2.0.1</h2>
<p>Everything a working 2.0.1 deployment may have to change, in one place. The reasoning for each is further down; this is the checklist.</p>
<p><strong>Defaults that now refuse what they previously allowed.</strong> Each is a one-line opt-out in <code>axis2.xml</code> if a deployment genuinely needs the old behaviour.</p>
<table class="table table-striped">
<thead>
<tr class="a">
<th>Change</th>
<th>Restore the old behaviour with</th></tr></thead><tbody>
<tr class="b">
<td>Decoupled WS-Addressing responses are refused (AXIS2-6108)</td>
<td><code>&lt;parameter name=&quot;allowNonAnonymousResponseEndpoints&quot;&gt;true&lt;/parameter&gt;</code></td></tr>
<tr class="a">
<td>Service dispatch from the SOAP body namespace is off</td>
<td><code>&lt;parameter name=&quot;allowContentBasedServiceDispatch&quot;&gt;true&lt;/parameter&gt;</code></td></tr>
<tr class="b">
<td>Admin console ships with empty credentials, so it is disabled</td>
<td>set <code>userName</code> and <code>password</code> in your own <code>axis2.xml</code></td></tr></tbody>
</table>
<p>The WS-Addressing change is the one most likely to be felt: any client using a non-anonymous <code>ReplyTo</code> or <code>FaultTo</code> stops working until the parameter is set. Deployments that re-enable it should also set <code>httpFrontendHostUrl</code>, because the generated reply address otherwise defaults to the local machine's IP. In this project's own test suite the change touched 17 of 244 integration tests, all decoupled-response cases, and opting those in <em>was</em> the migration &#x2013; expect the same shape of work.</p>
<p><strong>New ceilings.</strong> Requests larger than these are now rejected rather than allocated. Raise them if a deployment legitimately handles bigger messages: <code>multipartMaxRequestSize</code>, <code>multipartMaxFileSize</code>, <code>formUrlEncodedMaxRequestSize</code>, <code>mtomMaxRequestSize</code>, <code>soapMaxRequestSize</code>, and for multiref <code>org.apache.axis2.databinding.multiref.maxDepth</code>.</p>
<p><strong>Classpath and packaging changes.</strong> These affect builds and WAR deployments rather than configuration:</p>
<ul>
<li><code>axis2-spring</code> no longer brings Spring with it. Applications that inherit <code>spring-boot-starter-parent</code> or import <code>spring-boot-dependencies</code> are unaffected &#x2013; their dependency management already decided the Spring version. Anyone depending on <code>axis2-spring</code> <strong>without</strong> Spring Boot's dependency management must now declare <code>spring-core</code>, <code>spring-beans</code>, <code>spring-context</code> and <code>spring-web</code> themselves.</li>
<li>The JMS and mail transports are no longer bundled in <code>axis2.war</code>. Both remain in <code>lib/</code> of the binary distribution, so a standalone server is unaffected; a WAR deployment that uses either now adds the transport jar to <code>WEB-INF/lib</code>.</li>
<li><code>jibx</code> is no longer a valid <code>-d</code> value for <code>wsdl2java</code>. JiBX was removed in 2.0.1; the option had survived in the tool's help text without a backing implementation.</li>
</ul>
<p><strong>Metadata exposure.</strong> <code>exposeServiceMetadata</code> is now honoured on every anonymous metadata route rather than only the <code>?wsdl</code>/<code>?xsd</code> queries, and a service with it disabled is answered as though it were not deployed. If you relied on WS-MEX, the <code>/services/</code> listing, the ping module or the <code>.xsd</code>/<code>.wsdl</code> file routes reaching a service that had metadata exposure turned off, they no longer will.</p></section><section><a id="Distribution_Changes"></a>
<h2>Distribution Changes</h2>
<ul>
<li>
<p><strong><code>axis2-spring</code> no longer exports Spring to its consumers.</strong> Its <code>spring-core</code>, <code>spring-beans</code>, <code>spring-context</code> and <code>spring-web</code> dependencies are now <code>provided</code> rather than <code>compile</code>. The module is an integration layer: the application already has Spring and decides its version. As compile-scope dependencies they were transitive, so a consumer running an older Spring who did not import the Spring Boot BOM silently got this build's Spring on the classpath beside their own. Applications that inherit <code>spring-boot-starter-parent</code> or import <code>spring-boot-dependencies</code> were never affected &#x2013; dependency management already overrode the transitive version &#x2013; and are unaffected now. Anyone depending on <code>axis2-spring</code> <strong>without</strong> Spring Boot's dependency management must declare their own Spring dependencies, which is the intent.</p></li>
<li>
<p><strong>Five stray Spring jars dropped from <code>axis2.war</code> and the binary distribution.</strong> <code>spring-beans</code>, <code>spring-context</code>, <code>spring-core</code> and <code>spring-web</code> have always been excluded on purpose &#x2013; a deployment using the Spring integration supplies its own Spring. Spring 7 moved <code>spring-aop</code>, <code>spring-expression</code>, <code>micrometer-observation</code>, <code>micrometer-commons</code> and <code>jspecify</code> behind <code>spring-context</code> and <code>spring-core</code>, and the exclusion lists were never updated, so ~870 KB of Spring fragments shipped that could not work without the four jars deliberately left out. Axis2's own <code>axis2-spring</code> is unchanged and still shipped.</p></li>
<li>
<p><strong>google-java-format replaced, dropping ~5.9 MB from the WAR.</strong> Codegen tidied its generated Java with google-java-format, a full parse-and-reflow formatter that brought guava and a shaded javac with it &#x2013; about 6 MB shipped in every <code>axis2.war</code> to format machine-generated code that a template had already laid out. <code>PrettyPrinter</code> now re-indents with no dependencies. It rewrites leading whitespace and nothing else: it does not reflow lines, reorder imports or alter a character the compiler can see, so the worst it can do is indent badly rather than change what generated code means. Braces inside string literals, character literals and comments are not counted, and text blocks are reproduced verbatim because their leading whitespace is part of the string. A formatting failure now leaves the generated file untouched &#x2013; the previous code deleted the source before renaming the formatted copy over it, so a failure destroyed it. <code>axis2.war</code> goes from 36 MB to 30 MB across this and the JMS, mail and Spring changes above. Guava is therefore no longer in <code>lib/</code> or <code>WEB-INF/lib</code>; modules that need it at runtime must ship their own &#x2013; Rampart 2.0.0 does, because OpenSAML and WSS4J require it.</p></li>
<li>
<p><strong>The mail transport is no longer bundled in <code>axis2.war</code> either.</strong> Same reasoning as JMS: no default <code>axis2.xml</code> enables a <code>mailto</code> listener or sender, and the module is deprecated for removal in 2.0.3. It remains in <code>lib/</code> of the binary distribution. Note that <code>angus-mail</code> and <code>jakarta.mail-api</code> stay in the WAR and are <strong>not</strong> mail transport baggage: <code>jakarta.mail-api</code> carries the <code>MimeBodyPart</code>, <code>MimePartDataSource</code>, <code>InternetHeaders</code> and <code>ByteArrayDataSource</code> classes that JAX-WS attachment handling uses, and <code>angus-mail</code> supplies the <code>META-INF/services/jakarta.mail.util.StreamProvider</code> implementation those classes need at runtime. Removing either would break MTOM and SwA, not the mail transport.</p></li>
<li>
<p><strong>The JMS transport is no longer bundled in <code>axis2.war</code>.</strong> <code>axis2-transport-jms</code> and <code>jakarta.jms-api</code> shipped in every WAR while no default <code>axis2.xml</code> enables a JMS listener or sender, so every deployment carried the transport &#x2013; and its JNDI lookup code &#x2013; without asking for it. It was never usable as shipped in any case: <code>jakarta.jms-api</code> is an API with no provider, so enabling JMS always required adding a broker client. The module is unchanged, remains a supported transport, and is still in <code>lib/</code> of the binary distribution, so a standalone server is unaffected. A WAR deployment that uses JMS now adds <code>axis2-transport-jms</code> to <code>WEB-INF/lib</code> alongside the broker client it already had to add.</p></li>
<li>
<p><strong>The <code>dynamicclient</code> sample is removed from the source distribution.</strong> It was never part of the build, and its modules declared a parent version that did not match their own aggregator, so it could not be built. Its WSDL 2.0 client also depended on WSDL 2.0 support that is no longer documented. <code>ServiceClient</code> can still be constructed from a WSDL URL; <code>modules/samples/jaxws-addressbook</code> covers the JAX-WS Dispatch client.</p></li>
<li>
<p><strong>More unrunnable samples are removed.</strong> <code>yahoojsonsearch</code> and <code>yahoorestsearch</code> called Yahoo search APIs that were shut down in 2011, and <code>googlespellcheck</code> called a Google SOAP API retired in 2009; the two Yahoo samples were still in the binary distribution. <code>jaxws-dynamic</code> was shipped with no build file and an empty README, and <code>book</code> depended on 1.8.0 snapshots and was never built. Three Maven samples whose run instructions could not work are removed as well: <code>transport/https-sample</code> ran on the Jetty 6 plugin, which cannot host a Jakarta webapp; <code>java_first_jaxws</code> was set up for a javax-based Cargo container; and <code>transport/jms-sample</code> had no client.</p></li>
<li>
<p><strong>The ant-built samples in the binary distribution build again.</strong> Since 2.0.1 the binary distribution has placed samples under <code>modules/samples/</code>, but most sample <code>build.xml</code> files still located <code>AXIS2_HOME</code> two directories up, so <code>ant</code> failed looking for <code>modules/lib</code>. They now resolve <code>AXIS2_HOME</code> correctly from <code>AXIS2_HOME/modules/samples/&lt;sample&gt;</code>, and <code>servicelifecycle</code>, which still used a builder class removed in Axiom 2.0, compiles again.</p></li>
</ul></section><section><a id="Deprecated_for_Removal"></a>
<h2>Deprecated for Removal</h2>
<ul>
<li>
<p><strong>The mail transport (<code>axis2-transport-mail</code>) is deprecated and is planned for removal in 2.0.3.</strong> SOAP over SMTP was specified and profiled, but a request/response exchange that blocks a caller thread on a mailbox poll saw very little use even when SOAP was at its most popular, and it shows: no functional change has been made to this module in over a decade, and every commit touching it since 2015 is either a project-wide sweep (the jakarta rename, the SecurityManager removal, a package move) or a test-dependency bump.</p>
<p>It is not enabled by any default <code>axis2.xml</code>, and as of this release it is no longer bundled in <code>axis2.war</code> either &#x2013; it remains in <code>lib/</code> of the binary distribution for anyone who configures it. Its correlation of responses to requests by <code>In-Reply-To</code> (<code>SynchronousCallback</code> and the callback table in <code>AbstractTransportListener</code>) is the only such mechanism in the tree and is used by nothing else; the module's own source carries long-standing <code>FIXME</code> comments saying that machinery does not belong where it sits.</p>
<p>If you use the mail transport, please say so on the dev list &#x2013; concrete usage is what would keep it. Otherwise plan to move to an HTTP transport before 2.0.3. Nothing is removed in 2.0.2 and the module continues to work in this release.</p></li>
</ul></section><section><a id="Security_Hardening"></a>
<h2>Security Hardening</h2>
<p>Several defaults changed in this release. Each one closes a surface an unauthenticated caller could reach, and each is listed here with what to set if a deployment genuinely needs the previous behaviour. The full reasoning for each is in <code>SECURITY.md</code>.</p>
<ul>
<li>
<p><strong>No default admin console credentials.</strong> The published <code>axis2-webapp</code> WAR and the <code>axis2_default.xml</code> inside <code>axis2-kernel.jar</code> shipped <code>admin</code>/<code>axis2</code> as the <code>/axis2-admin</code> login. That console can upload services, and so execute code. Both now ship empty, which leaves the console disabled: the login rejects empty credentials before comparing, so no request can authenticate until an operator sets both <code>userName</code> and <code>password</code> in their own <code>axis2.xml</code>. Deployments that relied on the default login must now set one explicitly.</p></li>
<li>
<p><strong>Service dispatch from the message body is opt-in.</strong> The inflow order is Transport, Addressing, <strong>Security</strong>, PreDispatch, <strong>Dispatch</strong>, so a service selected during Dispatch is selected after the Security phase has already run &#x2014; against no service, because none was bound yet &#x2014; and Security is not revisited. A request whose URI names no service could therefore pick the service from the namespace of the SOAP body's first element, reaching a service whose engaged security modules never ran. <code>allowContentBasedServiceDispatch</code> now defaults to <code>false</code>. Dispatch by request URI, SOAPAction and WS-Addressing is unaffected. Set it to <code>true</code> only if services are genuinely addressed by body namespace, and not alongside per-service security modules.</p></li>
<li>
<p><strong>Decoupled WS-Addressing responses are refused by default.</strong> A non-anonymous <code>wsa:ReplyTo</code> or <code>wsa:FaultTo</code> makes the server open a connection to an address the caller chose. <code>allowNonAnonymousResponseEndpoints</code> now defaults to <code>false</code>; replies and faults travel back down the inbound connection. Deployments that use decoupled responses &#x2014; separate-listener &#x201c;Dual&#x201d; clients, or a third-party callback endpoint &#x2014; set it to <code>true</code>, and should also set <code>httpFrontendHostUrl</code> so the generated reply address is the real external URL. With the feature enabled, <code>allowedResponseEndpointSchemes</code> permits HTTPS only, the destination is screened at both the header-parsing and transport-selection layers, and redirects are not followed over either the HTTP or the HTTP/2 sender. Where <code>jms</code> is among the permitted schemes, a reply endpoint may name a destination but no longer supply the JNDI environment used to resolve it: a <code>java.naming.*</code> parameter on a reply address is refused, since it would let the caller choose which broker the server connects to. Deployments replying through a particular provider name it in their own transport configuration.</p></li>
<li>
<p><strong>JMS target addresses are screened more precisely.</strong> A JMS address becomes JNDI lookups, and JNDI resolves a name carrying a remote naming scheme (<code>ldap:</code>, <code>rmi:</code>, <code>iiop:</code>, <code>corbaname:</code>, <code>dns:</code> and friends) through that scheme's URL context factory, which can fetch and deserialise a remote object. Those schemes are refused in the destination name, the reply destination and the JNDI provider URL. This replaces a guard that searched the whole address for those words as substrings and so refused ordinary destinations whose names contained one: a queue called <code>alarming</code> contains &#x201c;RMI&#x201d;, <code>dns-events</code> contains &#x201c;DNS&#x201d;. Such names now work again.</p></li>
<li>
<p><strong>Multiref resolution is bounded.</strong> SOAP multiref references were resolved with no cycle check and no expansion budget, on the anonymous RPC/POJO receiver path. A reference leading back on itself recursed until the stack ended, and a reference graph with no cycle at all could still double at every level &#x2013; an entity-expansion bomb built from well-formed XML that no parser limit objects to, ending in <code>OutOfMemoryError</code>. Cyclic <em>element</em> references are now refused, nesting depth and total work are bounded, and the cost of copying a referenced element is charged before the copy is made. A cyclic <em>object</em> graph, which SOAP encoding permits and Axis2 has always accepted, still deserializes. The limits are <code>org.apache.axis2.databinding.multiref.maxDepth</code> (64), <code>maxResolutions</code> (5000) and <code>maxExpandedNodes</code> (50000); <code>-1</code> for unbounded.</p></li>
<li>
<p><strong>Request bodies are bounded.</strong> The <code>multipart/form-data</code> and <code>application/x-www-form-urlencoded</code> builders read the transport stream directly, so a servlet container's post-size limit never saw the body. <code>multipartMaxRequestSize</code> and <code>multipartMaxFileSize</code> (100 MB), <code>formUrlEncodedMaxRequestSize</code> (2 MB), <code>mtomMaxRequestSize</code> (100 MB, covering the whole <code>multipart/related</code> body and so MTOM and SwA), <code>soapMaxRequestSize</code> (100 MB, a plain SOAP or POX body) and <code>jsonMaxRequestSize</code> (100 MB, every JSON builder including the Gson, Moshi and HTTP/2 variants) now bound them; <code>-1</code> restores the previous unbounded behaviour, and any may be set per service. All the stream-reading builders are covered, not only the form ones: the caller picks the builder by choosing the Content-Type, so bounding some of them bounds none. The ceilings are enforced against bytes actually read, so a chunked body is bounded on the same terms as a declared one. Multipart temporary files are deleted rather than accumulating.</p></li>
<li>
<p><strong><code>exposeServiceMetadata</code> is honoured uniformly.</strong> Every anonymous metadata route now respects it: the <code>?wsdl</code>, <code>?wsdl2</code> and <code>?xsd</code> queries as before, plus the <code>.xsd</code>/<code>.wsdl</code> file routes on both the servlet and standalone HTTP paths, the named-WSDL route, the OpenAPI/Swagger/MCP generators, the <code>/services/</code> listing on both render paths, WS-MEX <code>GetMetadata</code>, and the ping module's service-level ping. A service with exposure disabled is skipped rather than refused, so it stays indistinguishable from one that is not deployed &#x2013; the <code>?wsdl</code>, <code>?wsdl2</code>, <code>?xsd</code> and <code>?policy</code> routes used to answer 403 for a hidden service where an absent one gets 404, which told an anonymous caller which service names exist; both now answer 404 with the same body. If you relied on a hidden service still appearing in the listing, in a WS-MEX response or in a ping response, it no longer will; set <code>exposeServiceMetadata</code> to true on that service.</p></li>
<li>
<p><strong>The <code>?xsd=</code> route serves only schema and WSDL documents.</strong> It reached a service's packaged META-INF with the request's value, so <code>?xsd=services.xml</code> returned the service descriptor &#x2013; which names keystores and password-callback classes. Only <code>.xsd</code> and <code>.wsdl</code> names that stay inside META-INF are served now, enforced inside the shared helper so all three callers inherit it.</p></li>
<li>
<p><strong>Generated output cannot be written outside the output directory.</strong> Code generation derives file names from the document it was handed, and a <code>wsdl:service</code> name reached the shared file sink verbatim &#x2013; a QName localPart is not required to be an NCName, so separators and <code>..</code> survived. A WSDL naming its service <code>../../../src/main/resources/api</code> had the tool write its re-serialized WSDL over a project's real contract file. The sink now refuses a name that resolves outside the output root.</p></li>
<li>
<p><strong>Schema values are escaped before they reach generated source.</strong> Element and attribute default and fixed values, enumeration facets and the numeric range facets were copied out of the schema into generated Java and C <em>inside string literals</em> with no escaping, so a value carrying a quote closed its literal and the remainder became code in a class-level initializer &#x2013; which runs when the generated bean class loads, on the build machine and in the shipped application. All of these are escaped now, as the pattern facet already was. QName enumerations are unaffected: the argument split the compiler inserts deliberately is preserved.</p></li>
<li>
<p><strong>Every WSDL-loading path is screened, not just the client-side one.</strong> wsdl4j parses with its own unhardened parser and fetches imports itself, so a DOCTYPE in a WSDL &#x2013; or in anything it imports &#x2013; was an XXE in whichever JVM read it. Only the client-side path was screened. The JAX-WS loader, the runtime reload wrapper, the deployment builder's resolver path and the WSDL2Java entry point now screen too, via a locator that refuses a DOCTYPE without changing where documents may be loaded from: a delegate locator keeps its own catalog or archive resolution, and a bare relative path still works.</p></li>
<li>
<p><strong>The schema compiler no longer trusts the schema it is compiling.</strong> <code>XSD2Java</code> and the <code>axis2-xsd2java-maven-plugin</code> exist to consume contracts written elsewhere, but parsed them with no XXE hardening and dereferenced <code>xs:include</code>/<code>xs:import</code> locations with whatever scheme they named &#x2013; so a schema handed to a developer could read local files, exfiltrate them through an external entity, or make the build fetch internal URLs. DOCTYPE and external entities are now refused, and include/import locations resolve from the filesystem only. Sibling schema files, the ordinary case, are unaffected. A build that genuinely resolves schemas over the network passes <code>-asl</code> to the CLI or sets <code>&lt;allowAbsoluteSchemaLocations&gt;true&lt;/allowAbsoluteSchemaLocations&gt;</code> on the plugin.</p></li>
<li>
<p><strong>Context deserialization: a documented allowlist that never existed is now described accurately, and what can be enforced is.</strong> <code>SECURITY.md</code> claimed three times that <code>SafeObjectInputStream</code> restricts deserialization to known Axis2 context classes. It does not, and cannot: the feature exists to carry application objects &#x2013; <code>SelfManagedDataHolder</code> holds whatever a service put there, and a <code>Parameter</code> value may be any serializable object &#x2013; so such a list would refuse the data it is for. The streams Axis2 creates now refuse <strong>dynamic proxies</strong> (<code>org.apache.axis2.context.externalize.allowProxies=true</code> to override), and <code>org.apache.axis2.context.externalize.serialFilter</code> accepts a JEP 290 pattern for an integrator who does know their own types. No Axis2 path feeds these streams from the network; if you persist or replicate contexts, restrict the stream you own.</p></li>
<li>
<p><strong>Swagger UI scripts are integrity-pinned.</strong> The page loads swagger-ui from a CDN at a pinned version, which says which release to ask for but not that what came back is that release &#x2013; and the page is built to drive authenticated API calls. The script tags now carry Subresource Integrity hashes and <code>crossorigin=&quot;anonymous&quot;</code>. The hashes are version-specific, so a deployment pinning a different Swagger UI version supplies its own with <code>openapi.swaggerUi.integrity.bundle</code> and <code>openapi.swaggerUi.integrity.standalonePreset</code>; without them the page still renders and a warning says integrity is not being enforced.</p></li>
<li>
<p><strong>Unexpected-error faults no longer name the exception class.</strong> An otherwise unhandled error produced a fault reason of <code>fully.qualified.Class: message</code> whatever <code>sendStacktraceDetailsWithFaults</code> was set to, and since that catch-all serves every request the servlet handles, it applied to JSON and REST responses as much as to SOAP faults. The reason is now generic unless details are enabled. The error is logged with its stack as before.</p></li>
<li>
<p><strong>WSDL2Java no longer lets a remote server retarget its own WSDL fetch.</strong> The tool probes an http location for a redirect before parsing, and took the <code>Location</code> header from any response, unresolved and unconstrained: a stray header on a <code>200</code> redirected it, a relative target was used as given, and <code>Location: file:///etc/passwd</code> pointed the parse at the developer's filesystem. A redirect is now followed only from a 3xx status, only to http or https, and a relative target resolves against the document requested; anything else stops code generation instead of silently parsing something else. Connect and read timeouts are applied and configurable.</p></li>
<li>
<p><strong>Packaged schema and WSDL documents are served only from the requesting service's own archive.</strong> <code>AxisService.printXSD</code> and <code>printWSDL2</code> &#x2013; the <code>?xsd=</code> and <code>?wsdl2=</code> queries &#x2013; looked a requested name up with <code>getResourceAsStream</code>, which delegates parent-first, so an anonymous caller could read any <code>META-INF/*.xsd</code> or <code>*.wsdl</code> from jars anywhere on the webapp or container classpath and fingerprint what was deployed. The file routes had been fixed for this once (AXIS2-5846); the query routes had not. Both rules &#x2013; schemas and WSDLs only, own archive only &#x2013; now live in one kernel helper, <code>MetaInfResources</code>. A service whose classloader is not a <code>URLClassLoader</code> cannot serve this route at all; deployed archives are unaffected.</p></li>
<li>
<p><strong>The absolute-<code>schemaLocation</code> guard no longer fails open on malformed input.</strong> <code>WSDLToAxisServiceBuilder</code>'s default schema resolver classified locations with <code>java.net.URI</code> and ignored <code>URISyntaxException</code>. A location <code>URI</code> rejects but <code>java.net.URL</code> accepts &#x2013; one containing a space, <code>|</code>, <code>{</code>, <code>}</code>, <code>^</code> or a backslash &#x2013; was therefore never classified and was resolved as though relative, fetching the remote schema the guard exists to refuse. Classification is textual now. Relative names that <code>URI</code> also rejects still resolve.</p></li>
<li>
<p><strong><code>httpFrontendHostUrl</code> is documented as a requirement, not a convenience.</strong> Without it (or an explicit servlet-transport <code>port</code>), the port advertised in generated WSDL comes from the first request's <code>Host</code> header after startup and is kept for the life of the process. See item 14 of <code>SECURITY.md</code>; this is a configuration note, not a code change.</p></li>
<li>
<p><strong>Two threat-model claims made true, and their limits stated.</strong> The document said every parser factory the framework creates disables DTDs and external entities, and that the AAR/WAR resolvers block <code>file:</code> resolution. Neither held. The SAAJ and JAX-WS conversions now use the hardened factory (<code>XMLUtils.toDOM</code>, <code>SAAJUtil.toDOM</code>, <code>SOAPBodyImpl</code>, <code>LogicalMessageImpl</code>, <code>JAXWSRIWSDLGenerator</code>), and <code>file:</code> is refused by the deployment resolvers &#x2013; which mattered in one of the four, where an absolute <code>file:</code> import had been reaching the filesystem. <code>SECURITY.md</code> now also names what is <em>not</em> covered: the build-time codegen factories, the deliberate hbm.xml DTD exception, and the <code>TransformerFactory</code> instances.</p></li>
<li>
<p><strong>OpenAPI and Swagger UI output.</strong> Request-controlled values are validated and encoded for the context they are written into, the served page carries a Content-Security-Policy with a per-response script nonce, and the published <code>servers[].url</code> is relative rather than derived from the request Host. <code>openapi.serverBaseUrl</code> pins an absolute URL where a deployment needs one.</p></li>
<li>
<p><strong>JSON field filtering only narrows a response.</strong> The <code>?fields=</code> selector read fields by reflection, so it could name one the serializer never writes: the synthetic <code>this$0</code> of a non-static inner class, which returned the enclosing object, or with Moshi a field marked <code>@Json(ignore = true)</code>. Those fields are now skipped at the top level and in dot paths alike, so a filtered response holds only fields the unfiltered one already contains.</p>
<pre class="prettyprint"><code class="nohighlight nocode"> Release Notes - Axis2 - Version 2.0.2
</code></pre></li>
</ul>
</section><section><a id="Task"></a>
<h2>Task </h2>
<ul>
<li>[<a href="https://issues.apache.org/jira/browse/AXIS2-6107" class="externalLink">AXIS2-6107</a>] - Remove vestigial context externalization code (SafeObjectInputStream and readExternal) </li>
<li>[<a href="https://issues.apache.org/jira/browse/AXIS2-6108" class="externalLink">AXIS2-6108</a>] - WS-Addressing decoupled responses are refused by default from 2.0.2 </li>
</ul>
</section></section> </main>
</div>
</div>
<hr/>
<footer>
<div class="container-fluid">
<div class="row-fluid">
<p>© 2004–2026
<a href="https://www.apache.org/">The Apache Software Foundation</a>
</p>
</div>
</div>
</footer>
</body>
</html>