(axis-axis2-java-core) branch master updated: AXIS2-5971 AxisServlet.processURLRequest uses content-type header instead of accept
This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git The following commit(s) were added to refs/heads/master by this push: new 8d62eb4119 AXIS2-5971 AxisServlet.processURLRequest uses content-type header instead of accept 8d62eb4119 is described below commit 8d62eb4119a1a06385f5e2a606156e30df2f5b75 Author: Robert Lazarski AuthorDate: Wed Feb 12 07:32:14 2025 -1000 AXIS2-5971 AxisServlet.processURLRequest uses content-type header instead of accept --- .../java/org/apache/axis2/transport/http/AxisServlet.java | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java index 46cc407cc3..7158c1b49d 100644 --- a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java +++ b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java @@ -62,6 +62,7 @@ import jakarta.servlet.ServletException; import jakarta.servlet.http.HttpServlet; import jakarta.servlet.http.HttpServletRequest; import jakarta.servlet.http.HttpServletResponse; +import jakarta.ws.rs.core.HttpHeaders; import javax.xml.namespace.QName; import java.io.BufferedInputStream; import java.io.BufferedOutputStream; @@ -897,8 +898,16 @@ public class AxisServlet extends HttpServlet { public void processURLRequest() throws IOException, ServletException { try { -RESTUtil.processURLRequest(messageContext, response.getOutputStream(), -request.getContentType()); + // AXIS2-5971, content-type is not present on some + // types of REST requests that have no body and in + // those cases use the 'accept' header if defined + final String accept = request.getHeader(HttpHeaders.ACCEPT); + final String contentType = request.getContentType(); + if (contentType == null && accept != null) { +RESTUtil.processURLRequest(messageContext, response.getOutputStream(), accept); + } else { +RESTUtil.processURLRequest(messageContext, response.getOutputStream(), contentType); + } this.checkResponseWritten(); } catch (AxisFault e) { setResponseState(messageContext, response);
(axis-axis2-java-core) branch master updated: AXIS2-5975 More specific Runtime Exceptions instead of just 'Input values do not follow defined XSD restrictions'
This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git The following commit(s) were added to refs/heads/master by this push: new 88b56cd364 AXIS2-5975 More specific Runtime Exceptions instead of just 'Input values do not follow defined XSD restrictions' 88b56cd364 is described below commit 88b56cd36469ea0bddb2ce725ca29ff0f6bb7312 Author: Robert Lazarski AuthorDate: Wed Feb 12 06:37:51 2025 -1000 AXIS2-5975 More specific Runtime Exceptions instead of just 'Input values do not follow defined XSD restrictions' --- .../axis2/schema/template/ADBBeanTemplate-bean.xsl | 26 +++--- .../schema/restriction/SchemaRestrictionTest.java | 20 - 2 files changed, 23 insertions(+), 23 deletions(-) diff --git a/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl b/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl index 2260cc25e7..f60d7c22df 100644 --- a/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl +++ b/modules/adb-codegen/src/org/apache/axis2/schema/template/ADBBeanTemplate-bean.xsl @@ -162,12 +162,12 @@ protected void validate( param){ if ((param != null) && (param.length > )){ -throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); +throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, not unbound and array found XSL condition 'param != null' and param.length greater than maxOccurs"); } if ((param != null) && (param.length < )){ -throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); +throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, min!=0 and array found XSL condition 'param != null' and param.length less than min"); } } @@ -334,12 +334,12 @@ protected void validate( param){ if ((param != null) && (param.length > )){ -throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); +throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, not unbound found XSL condition 'param != null' and param.length greater than maxOccurs"); } if ((param != null) && (param.length < )){ -throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); +throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, min!=0 found XSL condition 'param != null' and param.length less than min"); } } @@ -463,7 +463,7 @@ } else { -throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); +throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with maxLenFacet and minLenFacet and patternFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches()'"); } @@ -471,7 +471,7 @@ this.=param; } else { -throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions"); +throw new java.lang.RuntimeException("Input values do not follow defined XSD restrictions, on restrictionBaseType with patternFacet failed XSL 'if' condition 'org.apache.axis2.databinding.utils.ConverterUtil.convertToString(param).matches(patternFacet)'"); }
(axis-axis2-java-core) branch master updated: AXIS2-6059 Improve logging by default in AxisConfigBuilder
This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git The following commit(s) were added to refs/heads/master by this push: new 44ab9d80a0 AXIS2-6059 Improve logging by default in AxisConfigBuilder 44ab9d80a0 is described below commit 44ab9d80a0909f7a531e7ee6a62fa7e4a41e13e4 Author: Robert Lazarski AuthorDate: Wed Feb 12 12:12:10 2025 -1000 AXIS2-6059 Improve logging by default in AxisConfigBuilder --- .../kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java| 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java b/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java index 367ad3ac03..2d4d316b21 100644 --- a/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java +++ b/modules/kernel/src/org/apache/axis2/deployment/AxisConfigBuilder.java @@ -439,9 +439,8 @@ public class AxisConfigBuilder extends DescriptionBuilder { log.info("Disabled - " + deployerClassName + " - " + ex.getMessage()); continue; } catch (Throwable e) { -log.warn("Unable to instantiate deployer " + deployerClassName -+ "; see debug logs for more details"); -log.debug(e.getMessage(), e); +log.warn("Unable to instantiate serviceBuilderClass " + serviceBuilderClass + " , error: " + e.getMessage(), e); +log.warn("This error could mean the server was able to instantiate the deployer, however was unable to load an extension for it. This class will continue processing the next extension..."); continue; } if (deployer instanceof AbstractDeployer) {
(axis-axis2-java-core) branch master updated: AXIS2-6065 Small problem with incorrect log output in AxisServlet#processAxisFault
This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git The following commit(s) were added to refs/heads/master by this push: new aa44850c03 AXIS2-6065 Small problem with incorrect log output in AxisServlet#processAxisFault aa44850c03 is described below commit aa44850c0398dd510371a9126ff700050e70b8b8 Author: Robert Lazarski AuthorDate: Wed Feb 12 08:45:37 2025 -1000 AXIS2-6065 Small problem with incorrect log output in AxisServlet#processAxisFault --- .../http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java index 7158c1b49d..68c4a374d7 100644 --- a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java +++ b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java @@ -418,7 +418,7 @@ public class AxisServlet extends HttpServlet { String status = (String) msgContext.getProperty(Constants.HTTP_RESPONSE_STATE); if (status == null) { -log.error("processAxisFault() on error message: " + e.getMessage() + " , found a null HTTP status from the MessageContext instance, setting HttpServletResponse status to HttpServletResponse.SC_INTERNAL_SERVER_ERROR"); +log.info("processAxisFault() on error message: " + e.getMessage() + " , found a null HTTP status from the MessageContext instance, setting HttpServletResponse status to HttpServletResponse.SC_INTERNAL_SERVER_ERROR"); res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } else { log.error("processAxisFault() found an HTTP status from the MessageContext instance, setting HttpServletResponse status to: " + status);
(axis-axis2-java-core) branch master updated: AXIS2-6065 Small problem with incorrect log output in AxisServlet#processAxisFault
This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git The following commit(s) were added to refs/heads/master by this push: new 64fcb8b157 AXIS2-6065 Small problem with incorrect log output in AxisServlet#processAxisFault 64fcb8b157 is described below commit 64fcb8b157cd95fd5ba9df32fef0a6e2b1bd8f07 Author: Robert Lazarski AuthorDate: Wed Feb 12 08:49:34 2025 -1000 AXIS2-6065 Small problem with incorrect log output in AxisServlet#processAxisFault --- .../http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java index 68c4a374d7..503e43ec7c 100644 --- a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java +++ b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/AxisServlet.java @@ -418,7 +418,7 @@ public class AxisServlet extends HttpServlet { String status = (String) msgContext.getProperty(Constants.HTTP_RESPONSE_STATE); if (status == null) { -log.info("processAxisFault() on error message: " + e.getMessage() + " , found a null HTTP status from the MessageContext instance, setting HttpServletResponse status to HttpServletResponse.SC_INTERNAL_SERVER_ERROR"); +log.debug("processAxisFault() on error message: " + e.getMessage() + " , found a null HTTP status from the MessageContext instance, setting HttpServletResponse status to HttpServletResponse.SC_INTERNAL_SERVER_ERROR"); res.setStatus(HttpServletResponse.SC_INTERNAL_SERVER_ERROR); } else { log.error("processAxisFault() found an HTTP status from the MessageContext instance, setting HttpServletResponse status to: " + status);
(axis-axis2-java-core) branch master updated: Start updating release notes for 2.0.0
This is an automated email from the ASF dual-hosted git repository. robertlazarski pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git The following commit(s) were added to refs/heads/master by this push: new 8601a9cbab Start updating release notes for 2.0.0 8601a9cbab is described below commit 8601a9cbabc47ffd9d93261c1b43fc7c97992b6c Author: Robert Lazarski AuthorDate: Wed Feb 12 11:52:26 2025 -1000 Start updating release notes for 2.0.0 --- src/site/markdown/release-notes/2.0.0.md | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/site/markdown/release-notes/2.0.0.md b/src/site/markdown/release-notes/2.0.0.md index 780c1d4472..5456e954ff 100644 --- a/src/site/markdown/release-notes/2.0.0.md +++ b/src/site/markdown/release-notes/2.0.0.md @@ -1,2 +1,24 @@ Apache Axis2 2.0.0 Release Notes + +This release marks the transition to jakarta that has been tested with Tomcat 11 +and Wildfly 32, and is expected to support EE 10 and Spring 6 / Spring Boot 3. + +The Axis2 project transition to jakarta depends partly on Axiom, which has also been updated to 2.0.0. + +The main purpose of the release is to upgrade everything possible to the latest, +and have our Jira issues cleaned up. + +The most likely way to get a Jira issue fixed is with a GitHub PR, due to +the large amount of Axis2 features that are unused by the committers and therefore +difficult to test a fix. + +The 2.0.0 release lacks a few features in previous releases because of a lack of +adequate GitHub PR's. + +These missing features include preemptive basic authentication, though there is a work around explained in the Jira issue https://issues.apache.org/jira/browse/AXIS2-6055 . + +OSGI support is also missing. The state of its dependency Felix and jakarta is unclear. This feature has code that is difficult to support and lacks GitHub PR's after several attempts +to gain volunteers. We hope to support oSGI again in 2.0.1. + +For those interested in Rampart - an optional implementation of WS-Sec* standards that depends on Axis2 - they can expect a Rampart 2.0.0 soon that isn't expected to add much to the recently released Rampart 1.8.0 which is based on the previous Axis2 version, 1.8.2.