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-axis1-java.git
The following commit(s) were added to refs/heads/master by this push:
new 7e6675342 Filter out unsupported protocols in the client class
ServiceFactory
7e6675342 is described below
commit 7e66753427466590d6def0125e448d2791723210
Author: Robert Lazarski <[email protected]>
AuthorDate: Tue Aug 1 15:40:18 2023 -0400
Filter out unsupported protocols in the client class ServiceFactory
---
.../src/main/java/org/apache/axis/client/ServiceFactory.java | 5 +++++
1 file changed, 5 insertions(+)
diff --git
a/axis-rt-core/src/main/java/org/apache/axis/client/ServiceFactory.java
b/axis-rt-core/src/main/java/org/apache/axis/client/ServiceFactory.java
index 33054a557..73e89ee1b 100644
--- a/axis-rt-core/src/main/java/org/apache/axis/client/ServiceFactory.java
+++ b/axis-rt-core/src/main/java/org/apache/axis/client/ServiceFactory.java
@@ -106,6 +106,10 @@ public class ServiceFactory extends
javax.xml.rpc.ServiceFactory
if (context != null) {
String name = (String)environment.get("jndiName");
+
+ if(name!=null && (name.toUpperCase().indexOf("LDAP")!=-1 ||
name.toUpperCase().indexOf("RMI")!=-1 || name.toUpperCase().indexOf("JMS")!=-1
|| name.toUpperCase().indexOf("JMX")!=-1) ||
name.toUpperCase().indexOf("JRMP")!=-1 ||
name.toUpperCase().indexOf("JAVA")!=-1 ||
name.toUpperCase().indexOf("DNS")!=-1) {
+ return null;
+ }
if (name == null) {
name = "axisServiceName";
}
@@ -120,6 +124,7 @@ public class ServiceFactory extends
javax.xml.rpc.ServiceFactory
context.bind(name, service);
} catch (NamingException e1) {
// !!! Couldn't do it, what should we do here?
+ return null;
}
}
} else {