Sequence of returned values doesn't match WSDL for getIssue SOAP request

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: Medium
    • Bugfix Release
    • Affects Version/s: 3.13.3
    • Component/s: None
    • Environment:

      Recreated in Windows, Linux, and OSX

    • 3.13

      The WSDL describes a type of AbstractRemoteObject which is the base type of RemoteIssue. In the SOAP response the id value from AbstractRemoteObject is incorrectly placed in the middle of values represented by the <sequence> block in RemoteIssue. This breaks the sequence and causes the SOAP response to be incorrectly/incompletely processed by clients with a strict interpretation of the <sequence> block.

      SOAP Request:
      <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://soap.rpc.jira.atlassian.com">
      <soapenv:Header/>
      <soapenv:Body>
      <soap:getIssue soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
      <in0 xsi:type="xsd:string">eFor7al09k</in0>
      <in1 xsi:type="xsd:string">LD-7</in1>
      </soap:getIssue>
      </soapenv:Body>
      </soapenv:Envelope>

      Response:
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
      <soapenv:Body>
      <ns1:getIssueResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://soap.rpc.jira.atlassian.com">
      <getIssueReturn href="#id0"/>
      </ns1:getIssueResponse>
      <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns2:RemoteIssue" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns2="http://beans.soap.rpc.jira.atlassian.com">
      <affectsVersions soapenc:arrayType="ns2:RemoteVersion[1]" xsi:type="soapenc:Array">
      <affectsVersions href="#id1"/>
      </affectsVersions>
      <assignee xsi:type="xsd:string">rtls071</assignee>
      <attachmentNames soapenc:arrayType="xsd:string[0]" xsi:type="soapenc:Array"/>
      <components soapenc:arrayType="ns2:RemoteComponent[0]" xsi:type="soapenc:Array"/>
      <created xsi:type="xsd:dateTime">2008-11-12T13:59:20.163Z</created>
      <customFieldValues soapenc:arrayType="ns2:RemoteCustomFieldValue[0]" xsi:type="soapenc:Array"/>
      <description xsi:type="xsd:string">This describes the issue</description>
      <duedate xsi:type="xsd:dateTime">2009-04-29T04:00:00.000Z</duedate>
      <environment xsi:type="xsd:string">OS-X</environment>
      <fixVersions soapenc:arrayType="ns2:RemoteVersion[2]" xsi:type="soapenc:Array">
      <fixVersions href="#id2"/>
      <fixVersions href="#id3"/>
      </fixVersions>
      <id xsi:type="xsd:string">10073</id>
      <key xsi:type="xsd:string">LD-7</key>
      <priority xsi:type="xsd:string">3</priority>
      <project xsi:type="xsd:string">AB</project>
      <reporter xsi:type="xsd:string">rpyt021</reporter>
      <resolution xsi:type="xsd:string" xsi:nil="true"/>
      <status xsi:type="xsd:string">3</status>
      <summary xsi:type="xsd:string">Edit Module Dep</summary>
      <type xsi:type="xsd:string">6</type>
      <updated xsi:type="xsd:dateTime">2009-04-20T21:03:06.174Z</updated>
      <votes xsi:type="xsd:long">0</votes>
      </multiRef>
      <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns3:RemoteVersion" xmlns:ns3="http://beans.soap.rpc.jira.atlassian.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
      <archived xsi:type="xsd:boolean">false</archived>
      <id xsi:type="xsd:string">10031</id>
      <name xsi:type="xsd:string">Iteration 0.2</name>
      <releaseDate xsi:type="xsd:dateTime">2009-02-02T05:00:00.000Z</releaseDate>
      <released xsi:type="xsd:boolean">false</released>
      <sequence xsi:type="xsd:long">3</sequence>
      </multiRef>
      <multiRef id="id3" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns4:RemoteVersion" xmlns:ns4="http://beans.soap.rpc.jira.atlassian.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
      <archived xsi:type="xsd:boolean">false</archived>
      <id xsi:type="xsd:string">10053</id>
      <name xsi:type="xsd:string">Iteration R1</name>
      <releaseDate xsi:type="xsd:dateTime" xsi:nil="true"/>
      <released xsi:type="xsd:boolean">false</released>
      <sequence xsi:type="xsd:long">25</sequence>
      </multiRef>
      <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="ns5:RemoteVersion" xmlns:ns5="http://beans.soap.rpc.jira.atlassian.com" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
      <archived xsi:type="xsd:boolean">false</archived>
      <id xsi:type="xsd:string">10056</id>
      <name xsi:type="xsd:string">Pre-work</name>
      <releaseDate xsi:type="xsd:dateTime">2008-12-31T05:00:00.000Z</releaseDate>
      <released xsi:type="xsd:boolean">false</released>
      <sequence xsi:type="xsd:long">1</sequence>
      </multiRef>
      </soapenv:Body>
      </soapenv:Envelope>

            Assignee:
            Unassigned
            Reporter:
            C. Groves
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: