Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-257

Infinite loop in XsdBasedSoap11Wsdl4jDefinitionBuilder#buildMessages method

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 1.0.2
    • Fix Version/s: 1.0.3, 1.5 M2
    • Component/s: Core
    • Labels:
      None

      Description

      When creating a WSDL based on XSD, the method XsdBasedSoap11Wsdl4jDefinitionBuilder#buildMessages goes in infinite loop trying to generate a new prefix for each namespace found in the XSD. It uses a very ugly while(true)/break implementation, forgetting to increment the counter i, so if you have more than one namespace it never reaches the break statement and loop indefinitely.

      Very nasty bug with obvious fix.

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              romaz Davide Romanini
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: