Skip Menu |

This queue is for tickets about the Catalyst-Model-SOAP CPAN distribution.

Report information
The Basics
Id: 36621
Status: resolved
Priority: 0/
Queue: Catalyst-Model-SOAP

People
Owner: Nobody in particular
Requestors: asjo [...] koldfront.dk
Cc:
AdminCc:

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



Subject: If array-refs are passed to register_wsdl(), they are modified
If I go like this in my Catalyst::Model::SOAP-based model: __PACKAGE__->register_wsdl({ wsdl => $config->{wsdl}, # array-ref schema => $config->{xsd}, # array-ref }, 'Something'); $config->{wsdl} and $config->{xsd} are changed afterwards. Now, if I had just said: __PACKAGE__->register_wsdl({ wsdl => [ 'something.wsdl', 'other.wsdl' ], schema => [ 'something.xsd', 'else.xsd' ], }, 'Something'); It wouldn't matter much, but in the first case, I am surprised when looking in $config later. It this by design or accident? I can work around it by doing: __PACKAGE__->register_wsdl({ wsdl => [ @{$config->{wsdl}} ], schema => [ @{$config->{xsd}} ], }, 'Something'); But perhaps that doesn't feel so nice? Best regards, Adam.
No, this is not the expected behavior, it's indeed a bug. I'll take a look into it.
I've finally fixed that in SVN, will proceed to release soon.
Just uploaded 1.3 to CPAN with the fix.