Skip Menu |

This queue is for tickets about the HTTP-DAV CPAN distribution.

Report information
The Basics
Id: 44409
Status: resolved
Worked: 1.5 hours (90 min)
Priority: 0/
Queue: HTTP-DAV

People
Owner: OPERA [...] cpan.org
Requestors: Oliver.Hoos [...] imperia.net
Cc:
AdminCc:

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



Subject: Little bug and solution in the put method
Date: Wed, 18 Mar 2009 19:06:46 +0100
To: bug-HTTP-DAV [...] rt.cpan.org
From: Oliver.Hoos [...] imperia.net
Hi in the current version of HTTP::DAV is a little bug in the put method. ###################################################################### sub put { my ( $self, @p ) = @_; my ( $local, $url, $callback ) = HTTP::DAV::Utils::rearrange( [ 'LOCAL', 'URL', 'CALLBACK' ], @p ); $self->_start_multi_op( "put $local", $callback ); if ( ref($local) eq "SCALAR" ) { $self->_put(@p); } else { $local =~ s/\ /\\ /g; my @globs = glob("$local"); If the $local is realy a SCALAR ref then the _start_multi_op output returns a scalar ref in the error message. I changed my version into: ###################################################################### sub put { my ( $self, @p ) = @_; my ( $local, $url, $callback ) = HTTP::DAV::Utils::rearrange( [ 'LOCAL', 'URL', 'CALLBACK' ], @p ); if ( ref($local) eq "SCALAR" ) { $self->_start_multi_op( "put ".$$local, $callback ); $self->_put(@p); } else { $self->_start_multi_op( "put $local", $callback ); $local =~ s/\ /\\ /g; my @globs = glob("$local"); greetings Oliver
On Gio. 19 Mar. 2009 02:14:25, Oliver.Hoos@imperia.net wrote: Show quoted text
> > in the current version of HTTP::DAV is a little bug in the put method. > > If the $local is realy a SCALAR ref then the _start_multi_op output > returns a scalar ref in the error message.
Yes, of course. Thanks Oliver, your change will be added to the next release of HTTP::DAV, marked 0.37. Will probably be released during the weekend.
Should be fixed in v0.37, just uploaded to CPAN.