Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-7321

SOAP servlet generating invalid XML, breaks Python clients

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 3.3.1
    • None
    • None
    • None
    • Python SOAPPy 0.11.3

    Description

      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" ...

      Attachments

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

        Activity

          People

            7ee5c68a815f Jeff Turner
            7ee5c68a815f Jeff Turner
            Votes:
            2 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: