SOAP servlet generating invalid XML, breaks Python clients

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 3.3.1
    • Affects Version/s: None
    • Component/s: None
    • None
    • Environment:

      Python SOAPPy 0.11.3

      The attached Python SOAP client essentially does:

      token = soap.login(jirauser, passwd)
      soap.getAllPermissions(token)

      This breaks with a cryptic XML parse error:

      unknown>:1:497: duplicate attribute

      Further investigation reveals that JIRA is generating invalid XML in response to the SOAP query (see attached response.xml). The problem is the duplicated xsi:type attribute, which is duplicated (not allowed in XML):

      <getAllPermissionsReturn soapenc:arrayType="ns2:RemotePermission[20]" xsi:type="soapenc:Array" xsi:type="soapenc:Array" ...

        1. axis-snapshot-26Aug05.zip
          1.48 MB
        2. getperms.py
          0.4 kB
        3. response.xml
          12 kB

              Assignee:
              Jeff Turner
              Reporter:
              Jeff Turner
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: