Subject: | progress_workflow_action_safely gives SAX error in JIRA 3.13.2 |
JIRA 3.13.2-#335 doesn't seem to like the progress_workflow_action_safely method. Example:
$jira->progress_workflow_action_safely($key, 'Resolve', {resolution => 1});
Sends this XML:
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:namesp1="http://namespaces.soaplite.com/perl" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
soap:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<progressWorkflowAction>
<c-gensym32 xsi:type="xsd:string">XXXXXXX</c-gensym32>
<c-gensym34 xsi:type="xsd:string">RND-1186</c-gensym34>
<c-gensym36 xsi:type="xsd:string">31</c-gensym36>
<soapenc:Array soapenc:arrayType="namesp1:RemoteFieldValue[5]" xsi:type="soapenc:Array">
<item xsi:type="namesp1:RemoteFieldValue">
<values soapenc:arrayType="xsd:string[1]" xsi:type="soapenc:Array">
<item xsi:type="xsd:string">nmurray</item>
</values>
<id xsi:type="xsd:string">assignee</id>
</item>
<item xsi:type="namesp1:RemoteFieldValue">
<values soapenc:arrayType="namesp1:RemoteComponent[1]" xsi:type="soapenc:Array">
<item xsi:type="namesp1:RemoteComponent">
<name xsi:type="xsd:string">Cloud Projects</name>
<id xsi:type="xsd:string">10993</id>
</item>
</values>
<id xsi:type="xsd:string">components</id>
</item>
<item xsi:type="namesp1:RemoteFieldValue">
<values soapenc:arrayType="xsd:string[1]" xsi:type="soapenc:Array">
<item xsi:type="xsd:string">1</item>
</values>
<id xsi:type="xsd:string">resolution</id>
</item>
<item xsi:type="namesp1:RemoteFieldValue">
<values soapenc:arrayType="xsd:anyType[0]" xsi:type="soapenc:Array" />
<id xsi:type="xsd:string">fixVersions</id>
</item>
<item xsi:type="namesp1:RemoteFieldValue">
<values soapenc:arrayType="xsd:string[1]" xsi:type="soapenc:Array">
<item xsi:type="xsd:string">test 3</item>
</values>
<id xsi:type="xsd:string">description</id>
</item>
</soapenc:Array>
</progressWorkflowAction>
</soap:Body>
</soap:Envelope>
Response is:
<?xml version="1.0" encoding="utf-8"?>
<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>
<soapenv:Fault>
<faultcode>soapenv:Server.userException</faultcode>
<faultstring>org.xml.sax.SAXException: SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to
deserialize.</faultstring>
<detail>
<faultData xsi:type="ns1:SAXException" xmlns:ns1="http://sax.xml.org">
<exception xsi:type="ns2:Exception" xsi:nil="true" xmlns:ns2="http://lang.java" />
<message xsi:type="xsd:string">SimpleDeserializer encountered a child element, which is NOT expected, in something it was trying to
deserialize.</message>
</faultData>
<ns3:hostname xmlns:ns3="http://xml.apache.org/axis/">jira-web3.wc1.yellowpages.com</ns3:hostname>
</detail>
</soapenv:Fault>
</soapenv:Body>
</soapenv:Envelope>