[
https://jira.jboss.org/jira/browse/JBWS-2248?page=com.atlassian.jira.plug...
]
Amancio Díaz commented on JBWS-2248:
------------------------------------
I have been watching the code and have found a problem with the fix
http://fisheye.jboss.org/browse/JBossWS/stack/native/trunk/modules/core/s...
38 String targetAddress = epInfo.getTargetAddress().toLowerCase();
39 if (targetAddress == null)
40 throw new IllegalArgumentException("Cannot obtain target address from:
" + epInfo);
The IllegalArgumentException will never be thrown because a NPE will be thrown in the 38
line if epInfo.getTargetAddress is null.
RemoteConnectionFactory rejects uppercased protocol identifiers
---------------------------------------------------------------
Key: JBWS-2248
URL:
https://jira.jboss.org/jira/browse/JBWS-2248
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.0.2
Environment: Making a client to a external WS defined like:
<soap:address location="HTTP://URL_TO_THE_SERVICE"/>
Reporter: Amancio Díaz
Assignee: Richard Opalka
Fix For: jbossws-native-3.1.1
org.jboss.ws.core.client.RemoteConnectionFactory makes the comparation:
String targetAddress = epInfo.getTargetAddress();
if (targetAddress == null)
throw new IllegalArgumentException("Cannot obtain target address from:
" + epInfo);
String key = null;
if (targetAddress.startsWith("http"))
key = RemoteConnection.class.getName() + ".http";
else if (targetAddress.startsWith("jms"))
key = RemoteConnection.class.getName() + ".jms";
if (key == null)
throw new IllegalArgumentException("Cannot obtain remote connetion for:
" + targetAddress);
if targetAddress is uppercase (
HTTP://SOMETHING) this throws an exception. External
client will not change the WSDL.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira