Skip Menu |

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

Report information
The Basics
Id: 71328
Status: open
Worked: 30 min
Priority: 0/
Queue: HTTP-DAV

People
Owner: cosimo [...] cpan.org
Requestors: arnaud.tiret [...] gmail.com
Cc:
AdminCc:

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



Subject: recursive get issue
Using HTTP::DAV in a perl script on Ubuntu 11.04 The recursive get of a folder with all subfolders and files is not fully working if the callback is not set and used as option for get. The problem only comes from the get command: for a get call without callback, only the folders and subfolders are copied recursively (no file is copied locally) $d->get(-url => $url, -to => $checkoutpath); There is no warning message or error given. ---------------------- in order to have everything copied recursively(folders and files) with success, the callback is needed (even if with an empty callback function): sub cb { } $d->get(-url => $url, -to => $checkoutpath, -callback=>\&cb); ----------------------- Arnaud Tiret
Hi Arnaudt, can you test this for me? In this code, in lib/HTTP/DAV.pm: else { $local_name = URI::Escape::uri_unescape($local_name); $response = $resource->get( -save_to => $local_name); } can you modify it like this? else { $local_name = URI::Escape::uri_unescape($local_name); warn "Saving file to '$local_name'\n"; $response = $resource->get( -save_to => $local_name); use Data::Dumper; warn " Response is ".Dumper($response)."\n"; } and report back the results? That would help me debug what's happening... -- Cosimo