(axis-axis2-java-core) branch dependabot/maven/org.junit.jupiter-junit-jupiter-5.12.0 deleted (was af2ce007f0)

2025-02-22 Thread github-bot
This is an automated email from the ASF dual-hosted git repository.

github-bot pushed a change to branch 
dependabot/maven/org.junit.jupiter-junit-jupiter-5.12.0
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git


 was af2ce007f0 Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.0

The revisions that were on this branch are still contained in
other references; therefore, this change does not discard any commits
from the repository.



(axis-axis2-java-core) branch master updated: Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.0

2025-02-22 Thread veithen
This is an automated email from the ASF dual-hosted git repository.

veithen 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 468c17817c Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.0
468c17817c is described below

commit 468c17817c2724d91c020ccaa7156c563f4deeb9
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Fri Feb 21 13:55:44 2025 +

Bump org.junit.jupiter:junit-jupiter from 5.11.4 to 5.12.0

Bumps 
[org.junit.jupiter:junit-jupiter](https://github.com/junit-team/junit5) from 
5.11.4 to 5.12.0.
- [Release notes](https://github.com/junit-team/junit5/releases)
- [Commits](https://github.com/junit-team/junit5/compare/r5.11.4...r5.12.0)

---
updated-dependencies:
- dependency-name: org.junit.jupiter:junit-jupiter
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] 
---
 pom.xml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pom.xml b/pom.xml
index 967b75a368..1f6eaa02b7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -831,7 +831,7 @@
 
 org.junit.jupiter
 junit-jupiter
-5.11.4
+5.12.0
 
 
 org.apache.xmlbeans



(axis-axis2-java-core) branch master updated: Better fix for AXIS2-5971 AxisServlet.processURLRequest uses content-type header instead of accept

2025-02-22 Thread robertlazarski
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 d35bec08f3 Better fix for AXIS2-5971 AxisServlet.processURLRequest 
uses content-type header instead of accept
d35bec08f3 is described below

commit d35bec08f3a09c50535d976be1f93d9fae44374f
Author: Robert Lazarski 
AuthorDate: Sat Feb 22 14:51:34 2025 -1000

Better fix for AXIS2-5971 AxisServlet.processURLRequest uses content-type 
header instead of accept
---
 .../apache/axis2/transport/http/AxisServlet.java| 21 +
 1 file changed, 17 insertions(+), 4 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 503e43ec7c..5d4191802d 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
@@ -900,13 +900,26 @@ public class AxisServlet extends HttpServlet {
 try {
// 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
+   // those cases use the 'accept' header if defined.
+   // On a null content-type it will default to 
application/x-www-form-urlencoded.
final String accept = request.getHeader(HttpHeaders.ACCEPT);
final String contentType = request.getContentType();
-   if (contentType == null && accept != null) {
-RESTUtil.processURLRequest(messageContext, 
response.getOutputStream(), accept);
-   } else {
+   if (contentType != null) {
 RESTUtil.processURLRequest(messageContext, 
response.getOutputStream(), contentType);
+   } else if (accept != null && !accept.isEmpty()) {
+   // TODO: not easy to parse without adding code or libs, and 
needs to match
+   // a MessageFormatter we support. Curl by default sends */* 
. Example from FireFox:
+   // text/html, application/xhtml+xml, application/xml;q=0.9, 
*/*;q=0.8
+   if 
(accept.indexOf(HTTPConstants.MEDIA_TYPE_APPLICATION_XML) != -1) {
+log.debug("processURLRequest() will default to this 
content type found as one of the values in accept header: " + 
HTTPConstants.MEDIA_TYPE_APPLICATION_XML);
+RESTUtil.processURLRequest(messageContext, 
response.getOutputStream(), HTTPConstants.MEDIA_TYPE_APPLICATION_XML);
+   } else {
+log.debug("AxisServlet.processURLRequest() found null 
contentType with an Accept header: "+accept+" , that we could not match a 
content-type, will use default contentType: application/x-www-form-urlencoded");
+RESTUtil.processURLRequest(messageContext, 
response.getOutputStream(), null);
+   }
+   } else {
+log.debug("AxisServlet.processURLRequest() found null 
contentType and null Accept header, will use default contentType: 
application/x-www-form-urlencoded");
+RESTUtil.processURLRequest(messageContext, 
response.getOutputStream(), null);
}
 this.checkResponseWritten();
 } catch (AxisFault e) {