[JBoss JIRA] Created: (JBWS-2412) WSDL schema imports do not published successfully
by Alvaro (JIRA)
WSDL schema imports do not published successfully
-------------------------------------------------
Key: JBWS-2412
URL: https://jira.jboss.org/jira/browse/JBWS-2412
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.0.4
Environment: OS: Windows Vista Business SP1
Java: 1.5 build 16
JBossWS: 3.0.4
JBossAS: 4.2.3
Reporter: Alvaro
When JBossWS is publishing the schema imports from a WSDL file and it tries to published an already published schema, the rest of schemas are not published.
The bug is in the class WSDLFilePublisher, in the method publishSchemaImports. There's a piece of code that says:
while (it.hasNext())
{
.......
if (schemaLocation.startsWith("http://") == false)
{
// infinity loops prevention
if (published.contains(schemaLocation))
{
return;
}
else
{
published.add(schemaLocation);
}
....
Obviously, if the published.contains(schemaLocation) condition is true, the return clause will finish the execution of the method before processing the remaining items in the while loop.
If we replace the "return" with a "continue", everything works fine
--
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
15 years, 11 months