(axis-axis2-java-core) 01/02: AXIS2-5948 Add org.apache.axis2.transport.http.HTTPProxyConfiguratorTest

2025-02-14 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

commit 2741a1497be2a666da9ac5d781bfebdb3053e971
Author: Robert Lazarski 
AuthorDate: Fri Feb 14 05:50:58 2025 -1000

AXIS2-5948 Add org.apache.axis2.transport.http.HTTPProxyConfiguratorTest
---
 .../transport/http/impl/httpclient5/HTTPProxyConfigurator.java  | 6 --
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git 
a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/impl/httpclient5/HTTPProxyConfigurator.java
 
b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/impl/httpclient5/HTTPProxyConfigurator.java
index f8cf1ef64b..149cf0b74c 100644
--- 
a/modules/transport/http/src/main/java/org/apache/axis2/transport/http/impl/httpclient5/HTTPProxyConfigurator.java
+++ 
b/modules/transport/http/src/main/java/org/apache/axis2/transport/http/impl/httpclient5/HTTPProxyConfigurator.java
@@ -152,8 +152,10 @@ public class HTTPProxyConfigurator {
 clientContext.setCredentialsProvider(credsProvider);
 credsProvider.setCredentials(new AuthScope(null, -1), 
proxyCredentials);
}
-HttpHost proxy = new HttpHost(proxyHost, proxyPort);
-requestConfig.setProxy(proxy);
+   if (proxyHost != null && proxyPort > 0) {
+HttpHost proxy = new HttpHost(proxyHost, proxyPort);
+requestConfig.setProxy(proxy);
+}
 }
 
 private static OMElement getProxyConfigurationElement(Parameter 
proxySettingsFromAxisConfig)



(axis-axis2-java-core) branch master updated (e33ddfdd9d -> 07ff56ff1b)

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

robertlazarski pushed a change to branch master
in repository https://gitbox.apache.org/repos/asf/axis-axis2-java-core.git


from e33ddfdd9d AXIS2-6045 NPE after upgrade to 1.8.2
 new 2741a1497b AXIS2-5948 Add 
org.apache.axis2.transport.http.HTTPProxyConfiguratorTest
 new 07ff56ff1b AXIS2-5948 Add 
org.apache.axis2.transport.http.HTTPProxyConfiguratorTest

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 .../transport/http/HTTPProxyConfiguratorTest.java  | 140 +
 .../impl/httpclient5/HTTPProxyConfigurator.java|   6 +-
 2 files changed, 144 insertions(+), 2 deletions(-)
 create mode 100644 
modules/integration/test/org/apache/axis2/transport/http/HTTPProxyConfiguratorTest.java



(axis-axis2-java-core) 02/02: AXIS2-5948 Add org.apache.axis2.transport.http.HTTPProxyConfiguratorTest

2025-02-14 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

commit 07ff56ff1b1ca06e9fbeeb988092a2eab62839e7
Author: Robert Lazarski 
AuthorDate: Fri Feb 14 05:51:34 2025 -1000

AXIS2-5948 Add org.apache.axis2.transport.http.HTTPProxyConfiguratorTest
---
 .../transport/http/HTTPProxyConfiguratorTest.java  | 140 +
 1 file changed, 140 insertions(+)

diff --git 
a/modules/integration/test/org/apache/axis2/transport/http/HTTPProxyConfiguratorTest.java
 
b/modules/integration/test/org/apache/axis2/transport/http/HTTPProxyConfiguratorTest.java
new file mode 100644
index 00..f870ff316e
--- /dev/null
+++ 
b/modules/integration/test/org/apache/axis2/transport/http/HTTPProxyConfiguratorTest.java
@@ -0,0 +1,140 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+package org.apache.axis2.transport.http;
+
+import org.apache.axiom.om.OMElement;
+import org.apache.axiom.om.impl.llom.AxiomElementImpl;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.description.Parameter;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.transport.http.HTTPTransportConstants;
+import org.apache.hc.core5.http.HttpHost;
+import org.apache.hc.client5.http.auth.AuthScope;
+import org.apache.hc.client5.http.auth.Credentials;
+import org.apache.hc.client5.http.auth.CredentialsProvider;
+import org.apache.hc.client5.http.config.RequestConfig;
+import org.apache.hc.client5.http.protocol.HttpClientContext;
+import org.junit.Test;
+
+import static org.junit.Assert.assertEquals;
+import static org.junit.Assert.assertNotNull;
+
+import org.apache.axis2.transport.http.impl.httpclient5.HTTPProxyConfigurator;
+
+// See AXIS2-5948: Proxy settings ignored if username not specified
+public class HTTPProxyConfiguratorTest {
+
+@Test
+public void testProxyWithCredentials() throws AxisFault {
+final OMElement configurationElement = new AxiomElementImpl();
+
+final String hostname = "http://host";;
+final OMElement host = new AxiomElementImpl();
+host.setText(hostname);
+host.setLocalName(HTTPTransportConstants.PROXY_HOST_ELEMENT);
+configurationElement.addChild(host);
+
+final int portNumber = 8080;
+final OMElement port = new AxiomElementImpl();
+port.setText(String.valueOf(portNumber));
+port.setLocalName(HTTPTransportConstants.PROXY_PORT_ELEMENT);
+configurationElement.addChild(port);
+
+final String user = "user";
+final OMElement username = new AxiomElementImpl();
+username.setText(user);
+username.setLocalName(HTTPTransportConstants.PROXY_USER_ELEMENT);
+configurationElement.addChild(username);
+
+final String pass = "password";
+final OMElement password = new AxiomElementImpl();
+password.setText(pass);
+password.setLocalName(HTTPTransportConstants.PROXY_PASSWORD_ELEMENT);
+configurationElement.addChild(password);
+
+final OMElement element = new AxiomElementImpl();
+element.addChild(configurationElement);
+final Parameter param = new Parameter();
+param.setParameterElement(element);
+param.setName(HTTPTransportConstants.ATTR_PROXY);
+final AxisConfiguration configuration = new AxisConfiguration();
+configuration.addParameter(param);
+final MessageContext messageContext = new MessageContext();
+final ConfigurationContext configurationContext = new 
ConfigurationContext(configuration);
+messageContext.setConfigurationContext(configurationContext);
+final RequestConfig.Builder builder = RequestConfig.custom();
+
+final HttpClientContext clientContext = new HttpClientContext();
+HTTPProxyConfigurator.configure(messageContext, builder, 
clientContext);
+final RequestConfig config = builder.build();
+final HttpHost proxyHost = config.getProxy();
+assertNotNull(proxyHost);
+assertEquals(host

(axis-axis2-java-core) branch master updated: Update docs and release notes to indicate that the Eclipse codegen plugin is broken

2025-02-14 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 5302038e7b Update docs and release notes to indicate that the Eclipse 
codegen plugin is broken
5302038e7b is described below

commit 5302038e7b3eb1e4c6863b40ffaf0b7dcee847fd
Author: Robert Lazarski 
AuthorDate: Fri Feb 14 08:34:56 2025 -1000

Update docs and release notes to indicate that the Eclipse codegen plugin 
is broken
---
 src/site/markdown/release-notes/2.0.0.md | 7 ---
 src/site/xdoc/tools/eclipse/wsdl2java-plugin.xml | 3 +++
 2 files changed, 7 insertions(+), 3 deletions(-)

diff --git a/src/site/markdown/release-notes/2.0.0.md 
b/src/site/markdown/release-notes/2.0.0.md
index abae1cb21f..1513baeaa0 100644
--- a/src/site/markdown/release-notes/2.0.0.md
+++ b/src/site/markdown/release-notes/2.0.0.md
@@ -29,7 +29,8 @@ These missing features include preemptive basic 
authentication, though there is
 
 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. Mostly that Rampart 2.0.0 release 
will upgrade OpenSAML to 5.x that supports jakarta, while the remaining deps 
that need updates are few.
+The Code generator plugin for Eclipse is broken. The docs as well as the code 
are outdated. If interested in contributing a fix, see Jira issue AXIS2-5955.
 
-Axis2 added two committers recently and after this big jakarta update, the 
community
-can once again expect releases several times a year to fix bugs and resolve 
deps with CVE's.
+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 - a release 
that is based on the previous Axis2 version, 1.8.2. Mostly that Rampart 2.0.0 
release will upgrade OpenSAML to 5.x so that it supports jakarta, while the 
remaining deps that need updates are few.
+
+Axis2 added two committers recently and after this big jakarta update that 
changed nearly every file and dependency of the project, the community can once 
again expect releases several times a year to fix bugs and update dependencies 
with CVE's.
diff --git a/src/site/xdoc/tools/eclipse/wsdl2java-plugin.xml 
b/src/site/xdoc/tools/eclipse/wsdl2java-plugin.xml
index a5d0f58a07..009635c87a 100644
--- a/src/site/xdoc/tools/eclipse/wsdl2java-plugin.xml
+++ b/src/site/xdoc/tools/eclipse/wsdl2java-plugin.xml
@@ -24,7 +24,10 @@
 Code Generator Wizard Guide for Eclipse Plug-in
 
 
+   
+Update: The Code generator plugin for Eclipse is broken. The docs 
as well as the code are outdated. If interested in contributing a fix, see Jira 
issue AXIS2-5955.
 This document explains the usage of this code generator plug-in
 for Eclipse. In other words, this document will guide you through
 the operations of generating a WSDL file from a Java class and/or



(axis-axis2-java-core) branch master updated: More release notes for 2.0.0

2025-02-14 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 9d08cc4563 More release notes for 2.0.0
9d08cc4563 is described below

commit 9d08cc4563ef31e6ab87cac779f5274a0caa6c84
Author: Robert Lazarski 
AuthorDate: Fri Feb 14 09:46:02 2025 -1000

More release notes for 2.0.0
---
 src/site/markdown/release-notes/2.0.0.md | 97 +++-
 1 file changed, 95 insertions(+), 2 deletions(-)

diff --git a/src/site/markdown/release-notes/2.0.0.md 
b/src/site/markdown/release-notes/2.0.0.md
index 1513baeaa0..e2c9dd1e50 100644
--- a/src/site/markdown/release-notes/2.0.0.md
+++ b/src/site/markdown/release-notes/2.0.0.md
@@ -6,6 +6,8 @@ and Wildfly 32 and above, and is expected to support EE 10 and 
Spring 6 / Spring
 
 The Axis2 project transition to jakarta depends partly on Axiom, which has 
also been updated to 2.0.0.
 
+Axis2 added two committers recently and after this big jakarta update that 
changed nearly every file and dependency of the project, the community can once 
again expect releases several times a year to fix bugs and update dependencies 
with CVE's.
+
 The JSON support has been updated with many bugs fixed, while the examples have
 been updated to use Spring Boot 3. Axis2 isn't just for SOAP anymore, as some 
committers currently only use JSON in their own projects and not SOAP at all.
 
@@ -31,6 +33,97 @@ OSGI support is also missing. The state of its dependency 
Felix and jakarta is u
 
 The Code generator plugin for Eclipse is broken. The docs as well as the code 
are outdated. If interested in contributing a fix, see Jira issue AXIS2-5955.
 
-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 - a release 
that is based on the previous Axis2 version, 1.8.2. Mostly that Rampart 2.0.0 
release will upgrade OpenSAML to 5.x so that it supports jakarta, while the 
remaining deps that need updates are few.
+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, a release 
that is based on the previous Axis2 version 1.8.2. Mostly, the upcoming Rampart 
2.0.0 release will upgrade OpenSAML to 5.x so that it supports jakarta, while 
the remaining deps that need updates are few.
 
-Axis2 added two committers recently and after this big jakarta update that 
changed nearly every file and dependency of the project, the community can once 
again expect releases several times a year to fix bugs and update dependencies 
with CVE's.
+Apache Axis2 2.0.0 Jira issues fixed
+
+
+Bug
+
+
+[AXIS2-5689] -   
  A Veracode security scan reports multiple severity 4 security flaws in 
axis2.jar
+
+[AXIS2-5900] -   
  If and else branches has the same condition
+
+[AXIS2-5901] -   
  Redundant conditions in an if statement
+
+[AXIS2-5948] -   
  Proxy settings ignored if username not specified
+
+[AXIS2-5964] -   
  AbstractJSONMessageFormatter NOT using CharSetEncoding when reding Json 
string Bytes
+
+[AXIS2-5971] -   
  AxisServlet.processURLRequest use content-type header instead of accept
+
+[AXIS2-6030] -   
  Axis2 connections are not returned to connection pool on 1.8.0 with JAXWS
+
+[AXIS2-6035] -   
  Axis2 libraries not compatible with Tomcat 10
+
+[AXIS2-6037] -   
  Install axis2-plugin-intelliJ error
+
+[AXIS2-6041] -   
  totalDigits Facet of XSD type short incorrectly treated in databinding
+
+[AXIS2-6042] -   
  Eclipse Plugin Downloads
+
+[AXIS2-6043] -   
  StackOverflowError in  org.apache.axis2.client.Options.getSoapVersionURI()
+
+[AXIS2-6044] -   
  HTTPProxyConfigurator system property takes precedence over axis 
configuration and message context proxy properties
+
+[AXIS2-6045] -   
  NPE after upgrade to 1.8.2
+
+[AXIS2-6046] -   
  AxisFault after upgrade to 1.8.0
+
+[AXIS2-6050] -   
  Latest Axis2 1.8.2 release not compatible with Glassfish6/J2EE9
+
+[AXIS2-6057] -   
  Special characters are not allowed in password after upgrade( from 1.7.9 to 
1.8.2)
+
+[AXIS2-6062] -   
  Is such a flexibility necessary allowing LDAP (and RMI, JRMP, etc.) protocol 
in `JMSSender`?
+
+[AXIS2-6063] -   
  Add enableJSONOnly parameter to axis2.xml
+
+[AXIS2-6064] -   
  CVE associtate with dependency jars of axis2
+
+[AXIS2-6065] -   
  Small problem with incorrect log output in AxisServlet#processAxisFault
+
+[AXIS2-6066] -   
  Site generation/deployment is broken
+
+[AXIS2-6067] -   
  CVE with dependency