Subject: | dt_array not properly handled by _denastify() |
Date: | Tue, 30 Jul 2013 18:44:38 +0200 |
To: | <bug-Net-OpenSRS [...] rt.cpan.org> |
From: | "Andreas Horvath" <andreas.horvath [...] iway.ch> |
Hi
Consider the following response part:
<item key="attributes">
<dt_assoc>
<item key="allowed_contacts">
<dt_array>
<item key="0">owner</item>
<item key="1">admin</item>
<item key="2">billing</item>
<item key="3">tech</item>
</dt_array>
</item>
<item key="domain_tld_data_fields">
<dt_array>
</dt_array>
</item>
</dt_assoc>
</item>
Using the current 0.06 or 0.07 modules, this turns into this:
attributes => {
'allowed_contacts' => [
{},
{},
{},
{}
],
'domain_tld_data_fields' => [
undef
],
}
using the attached patch turns the result into this:
attributes => {
'allowed_contacts' => [
'owner',
'admin',
'billing',
'tech'
],
'domain_tld_data_fields' => [],
}
Please test it to check for side effects I did'nt consider and hopefully
include it into distribution.
Andy
Message body is not shown because sender requested not to inline it.