Issue Details (XML | Word | Printable)

Key: JRA-7321
Type: Bug Bug
Status: Resolved Resolved
Resolution: Fixed
Priority: Minor Minor
Assignee: Jeff Turner [Atlassian]
Reporter: Jeff Turner [Atlassian]
Votes: 2
Watchers: 1
Operations

Add/Edit UI Mockup to this issue
If you were logged in you would be able to see more operations.
JIRA

SOAP servlet generating invalid XML, breaks Python clients

Created: 14/Jul/05 12:50 AM   Updated: 30/Jul/06 07:37 PM
Component/s: Remote API (SOAP & XML-RPC)
Affects Version/s: None
Fix Version/s: 3.3.1

Time Tracking:
Not Specified

File Attachments: 1. Zip Archive axis-snapshot-26Aug05.zip (1.48 MB)
2. File getperms.py (0.4 kB)
3. XML File response.xml (12 kB)

Environment: Python SOAPPy 0.11.3

Participants: Jeff Turner [Atlassian], Mark Chaimungkalanont [Atlassian], Robert Sander, Scott Farquhar [Atlassian] and Ubisoft MTL Jira Administrators
Since last comment: 3 years, 11 weeks, 4 days ago
Resolution Date: 02/Sep/05 02:07 AM
Labels:


 Description  « Hide
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" ...



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
Robert Sander added a comment - 14/Jul/05 01:05 AM
BTW: I also get the error when trying to view the response.xml attachment of this ticket in Mozilla Firefox...

Ubisoft MTL Jira Administrators added a comment - 26/Jul/05 09:15 AM
I've observe that this bug didn't occur in 3.2.0 but is present in 3.2.2 and 3.2.3.
I tried to mix the plugin of 3.2.0 (rpc-1.5.3) into deployment of 3.2.3 and the bug was still there.
Is there someone who narrow the bug to a specific lib, since it doesn't seems to be inside the plugin ?

Scott Farquhar [Atlassian] added a comment - 27/Jul/05 09:25 PM
We moved from Glue to Axis for the provision of SOAP, which is where it looks like this bug was introduced.

I haven't any further information at this stage.


Ubisoft MTL Jira Administrators added a comment - 28/Jul/05 10:36 AM
I've look in the different version of sources, I saw that glue-5.0b2.tar was present in Jira-3.1, but not in Jira-3.2 and above.
So, it is probably more than the switch to axis, since SOAP was working fine in Jira-3.2 but not in 3.2.2 (I didn't tried 3.2.1).

Mark Chaimungkalanont [Atlassian] added a comment - 29/Jul/05 02:42 AM
Guys,

This seems to be an Axis bug:

http://issues.apache.org/jira/browse/AXIS-2100

and seems to be fixed by

http://issues.apache.org/jira/browse/AXIS-2127

We need to see what version of Axis this has been fixed for and go from there.

Cheers,

Mark C


Mark Chaimungkalanont [Atlassian] added a comment - 31/Jul/05 09:05 PM
Guys,

We'll try to get this issue resolved as soon as the next version of Axis comes out that have this fix in it. From the mailing list, it appears that Axis 1.3 will be coming out in early August.

I suspect this will be part of a point release for 3.3

Cheers

Mark C


Jeff Turner [Atlassian] added a comment - 28/Aug/05 06:26 PM
Attached is a snapshot build of Axis to replace the jars bundled with JIRA. With these, Python clients should work.

Jeff Turner [Atlassian] added a comment - 02/Sep/05 02:07 AM
Fixed for JIRA 3.3.1. The SOAP client (http://confluence.atlassian.com/display/JIRA/Creating+a+SOAP+Client) now has a src/python directory with sample SOAP and XML-RPC Python clients.