Lists don't react on xsi:nil="true"

Bug #926445 reported by jsgaarde
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ladon
Fix Committed
High
jsgaarde

Bug Description

I have another problem, but I believe that it is related to this problem.
Take a look at this SOAP request: http://pastebin.com/aw2kDHtd.
This request is for the same complex type which I reported before (http://pastebin.com/50mgbKGm)

Please notice this line: <contacts xsi:nil="true"/>. I left contacts attribute empty.

And I got this error in response:
"Traceback (most recent call last):
File "/python3/lib/python3.2/site-packages/ladon-0.6.7-py3.2.egg/ladon/server/dispatcher.py", line 142, in dispatch_request result = self.call_method(method,req_dict,tc,export_dict)
File "/python3/lib/python3.2/site-packages/ladon-0.6.7-py3.2.egg/ladon/server/dispatcher.py", line 69, in call_method args += [arg['type'](prime_dict=val,tc=tc,export_dict=export_dict)]
File "/python3/lib/python3.2/site-packages/ladon-0.6.7-py3.2.egg/ladon/types/ladontype.py", line 52, in __init__ attr_name) ladon.exceptions.types.ListAttributeMismatch: classname: attribute: contacts Expected list type for attribute "contacts" got "" " } MESSAE: classname: attribute: contacts Expected list type for attribute "contacts" got ""

Changed in ladon:
assignee: nobody → jsgaarde (jakob-simon-gaarde)
importance: Undecided → High
Revision history for this message
jsgaarde (jakob-simon-gaarde) wrote :

Empty lists will have the attribute xsi:nil set to true:

?field.comment=Empty lists will have the attribute xsi:nil set to true:

Changed in ladon:
status: New → Fix Committed
Revision history for this message
jsgaarde (jakob-simon-gaarde) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.