Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-2412

WSDL schema imports do not published successfully

    XMLWordPrintable

Details

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              darran.lofthouse@redhat.com Darran Lofthouse
              almarro1_jira Alvaro (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: