Skip Menu |

This queue is for tickets about the Net-OpenSRS CPAN distribution.

Report information
The Basics
Id: 58498
Status: resolved
Priority: 0/
Queue: Net-OpenSRS

People
Owner: Nobody in particular
Requestors: jason [...] ukfsn.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.04
Fixed in: (no value)



Subject: XML parsing error on numerically keyed lists
Where the result from make_request contains a numerically keyed list, as is the case when using the "get" action on a "domain" object with a type that returns a list of name servers, an XML parsing error occurs. This is on the second call to XMLin when "de-nastying" the returned data. The problem is that XML::Simple folds away the "item" key when it is first called and then folds away the "key" key. Nameserver lists are all keyed numerically so the transformation is from: <item key="nameserver_list"> <dt_array> <item key="0"> <dt_assoc> <item key="name">ns0.domain.tld</item> <item key="sortorder">1</item> <item key="ipaddress"></item> </dt_assoc> </item> <item key="1"> <dt_assoc> <item key="name">ns1.domain.tld</item> <item key="sortorder">2</item> <item key="ipaddress"></item> </dt_assoc> </item> </dt_array> </item> to: <item name="nameserver_list"> <dt_array name="item"> <0 name="dt_assoc"> <item name="ipaddress" /> <item name="name">ns0.ukpost.com</item> <item name="sortorder">1</item> </0> <1 name="dt_assoc"> <item name="ipaddress" /> <item name="name">ns1.ukpost.com</item> <item name="sortorder">2</item> </1> </dt_array> </item> which fails on the final call to XMLin as it is not valid to have an XML element with a numeric name or a name that starts with a number.
I was mistaken. The local version here was a slightly hacked 0.03. Having corrected it to 0.04 I see that the problem has already been properly fixed. Sorry for wasting your time.
On Fri Jun 18 04:54:06 2010, CLIFFORDJ wrote: Show quoted text
> I was mistaken. The local version here was a slightly hacked 0.03. > > Having corrected it to 0.04 I see that the problem has already been > properly fixed. > > Sorry for wasting your time.
You might like to take a look at 0.05 as it improves on 0.04. 0.04 had issues in denastify with certain responses (those with a single item element inside a dt_assoc).