-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

First, let me thank you for implementing WebDAV support in lftp. It used
to be the one and only feature I missed in this nice piece of software.

However, I've got a small problem with MOVE requests, it complains about
it beeing bad formated :


lftp [EMAIL PROTECTED]:/extended/upload> mv Escargot.mp3 testdav/Escargot.mp3 - ---- Connecting to 192.168.0.5 (192.168.0.5) port 443 - ---> MOVE /extended/upload/Escargot.mp3 HTTP/1.1 - ---> Host: 192.168.0.5 - ---> User-Agent: lftp/3.1.0 - ---> Accept: */* - ---> Destination: /extended/upload/testdav/Escargot.mp3 - ---> Authorization: Basic bGludXhtb3ZpZXotZXh0ZW5kZWQ6ZS1qYWhzdXh4IQ== - ---> Connection: keep-alive - ---> Certificate depth: 0; subject: /C=FR/ST=''/L=Grenoble/O=nodens.org/OU=Repository/CN=plop.nodens.org/[EMAIL PROTECTED]; issuer: /C=FR/ST=''/L=Grenoble/O=nodens.org/OU=Certificate Authority/CN=nodens.org CA/[EMAIL PROTECTED] WARNING: Certificate verification: unable to get local issuer certificate WARNING: Certificate verification: certificate not trusted WARNING: Certificate verification: unable to verify the first certificate <--- HTTP/1.1 400 Bad Request <--- Date: Tue, 01 Mar 2005 14:59:16 GMT <--- Server: Apache/1.3.33 (Debian GNU/Linux) PHP/4.3.10-7 mod_ssl/2.8.22 OpenSSL/0.9.7d mod_perl/1.29 DAV/1.0.3 <--- Connection: close <--- Transfer-Encoding: chunked <--- Content-Type: text/html; charset=iso-8859-1 <--- Operation not supported: 400 Bad Request (MOVE)

On the webserver (Apache 1.3.33 with mod_dav 1.0.3) :

[Tue Mar  1 15:56:01 2005] [error] [client 192.168.0.2] Destination URI
must be an absolute URI.

IIRC, the Destination: header must be an absolute URI (i.e with
https://host/path/to/collection), not an absolute path
(/path/to/collection).

the Destination could even be another server. This is not handled by
lftp ATM :
lftp [EMAIL PROTECTED]:/extended/upload> mv Escargot.mp3
http://test.example.com/testdav/Escargot.mp3
- ---- Connecting to 192.168.0.5 (192.168.0.5) port 443
- ---> MOVE /extended/upload/Escargot.mp3 HTTP/1.1
- ---> Host: 192.168.0.5
- ---> User-Agent: lftp/3.1.0
- ---> Accept: */*
- ---> Destination:
/extended/upload/http://test.example.com/testdav/Escargot.mp3
- ---> Authorization: Basic bGludXhtb3ZpZXotZXh0ZW5kZWQ6ZS1qYWhzdXh4IQ==
- ---> Connection: keep-alive
- --->



lftp [EMAIL PROTECTED]:/extended/upload> mv Escargot.mp3
http://tesT.example.com/testdav/Escargot.mp3
- ---- Connecting to 192.168.0.5 (192.168.0.5) port 443
- ---> MOVE /extended/upload/Escargot.mp3 HTTP/1.1
- ---> Host: 192.168.0.5
- ---> User-Agent: lftp/3.1.0
- ---> Accept: */*
- ---> Destination:
/extended/upload/http://tesT.example.com/testdav/Escargot.mp3
- ---> Authorization: Basic bGludXhtb3ZpZXotZXh0ZW5kZWQ6ZS1qYWhzdXh4IQ==
- ---> Connection: keep-alive
- --->

This feature is on the server side, but lftp should not rewrite the
destination in that particular case.

Also, COPY support would be great (but far less important than MOVE,
IMHO, on the other hand I think it would'nt be too difficult to
implement once we have MOVE has this is almost the same request) :)

Thanks again and best regards,

- --
Clément 'nodens' Hermann <[EMAIL PROTECTED]>
- - L'air pur ? c'est pas en RL, ça ? c'est pas hors charte ?
- -- Jean in "l'Histoire des Pingouins" -
http://tnemeth.free.fr/fmbl/linuxsf

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Debian - http://enigmail.mozdev.org

iD8DBQFCJIYg0yQ2guvROZ0RAst7AJ9oqSsKFZIQ1M8WadkiRwHQO8y7AACffGy0
m1efAMubevWwSXIW23M/mnY=
=PAVX
-----END PGP SIGNATURE-----



--
Clément 'nodens' Hermann
- "L'air pur ? c'est pas en RL, ça ? c'est pas hors charte ?"
Jean in L'Histoire des Pingouins, http://tnemeth.free.fr/fmbl/linuxsf/




Reply via email to