Skip Menu |

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

Maintainer(s)' notes

Please don't use rt.cpan.org to submit bug reports! Please email any bug reports to epp@centralnic.com instead. Thanks.

Report information
The Basics
Id: 133124
Status: resolved
Priority: 0/
Queue: Net-EPP

People
Owner: gbrown [...] cpan.org
Requestors: hsalgado [...] vulcano.cl
Cc:
AdminCc:

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



Subject: Wrong key name in hostAttr model for domain_info
There's a problem with the example for "Domain Information" section, under " If the server uses the "hostAttr" model instead of "hostObj", then the "ns" member will look like this:". The key name for IP version it's "version", not "type". Also the addrs array elements must be a hash, otherwise there's a compilation error "Can't use string ("version") as a HASH ref while "strict refs" in use at .../Net/EPP/Frame/Command/Create/Domain.pm" Diff attached for more clarity, over centralnic's gitlab version :) Thanks!
Subject: Net-EPP_lib_Net_EPP_Simple.patch
--- Net-EPP_lib_Net_EPP_Simple.pm.orig 2020-08-06 11:43:32.479478577 -0400 +++ Net-EPP_lib_Net_EPP_Simple.pm 2020-08-06 11:44:45.923996561 -0400 @@ -769,17 +769,17 @@ $info->{ns} = [ { name => 'ns0.example.com', - addrs => [ - type => 'v4', + addrs => [ { + version => 'v4', addr => '10.0.0.1', - ], + } ], }, { name => 'ns1.example.com', - addrs => [ - type => 'v4', + addrs => [ { + version => 'v4', addr => '10.0.0.2', - ], + } ], }, ];
Thanks for reporting this, I've fixed the documentation in git. I am not sure if a new release is justified since this is only a documentation change.