trailing slash and webdav again

Reto Bachmann-Gmür reto at gmuer.ch
Wed Jan 25 09:36:06 GMT 2006


Hello

I'm experimenting around implementing the server side of webdav, I 
quickly had some success interacting with konqueror, however its 
trailing slash beviour puzzles me.

Situation 1:
1. webdav://localhost:8585/bla/ is open
2. the user clicks on the folder "folder1"
3. webdav://localhost:8585/bla/folder1/ is opened, but 
webdav://localhost:8585/bla/folder1 is shown as address
4. the user presses the reload button: 
webdav://localhost:8585/bla/folder1 is opened

Situation 2:
4. the user drops a file into the window as seen in step 3, no move/copy 
menu appears, nothing visible happened (a request to the resource 
without trailing slash is made to the server, but this URI does not 
identify a collection)

(tcpflow trace below)

Allowedly, rfc2518 mentions a "standing convention" that "when a 
collection is referred to by its name without a trailing slash, the 
trailing slash is automatically appended", however as I read this RFC a 
server is free to locate to entirely different resources at 
http://foo.bar/blah/ and http://foo.bar/blah, actually this is what I'm 
doing [why? see 1].

reto

1. http://wymiwyg.org/2006/01/25/uri-conventions

tcpflow situation 1:

127.000.000.001.36450-127.000.000.001.08585: PROPFIND /bla/ HTTP/1.1
127.000.000.001.36451-127.000.000.001.08585: PROPFIND /bla/ HTTP/1.1
<href>/bla/folder1/</href>
127.000.000.001.36452-127.000.000.001.08585: PROPFIND /bla/folder1/ HTTP/1.1
<href>/bla/folder1/</href>
<href>/bla/folder1/test</href>
<href>/bla/folder1/test.txt</href>
127.000.000.001.36453-127.000.000.001.08585: PROPFIND /bla/folder1 HTTP/1.1
<href>/bla/folder1</href>
127.000.000.001.36454-127.000.000.001.08585: GET /bla/folder1 HTTP/1.1
....


tcpflow situation 2:
127.000.000.001.36450-127.000.000.001.08585: PROPFIND /bla/ HTTP/1.1
127.000.000.001.36451-127.000.000.001.08585: PROPFIND /bla/ HTTP/1.1
<href>/bla/folder1/</href>
127.000.000.001.36452-127.000.000.001.08585: PROPFIND /bla/folder1/ HTTP/1.1
<href>/bla/folder1/</href>
<href>/bla/folder1/test</href>
<href>/bla/folder1/test.txt</href>
127.000.000.001.36453-127.000.000.001.08585: PROPFIND /bla/folder1 HTTP/1.1
<href>/bla/folder1</href>




More information about the kfm-devel mailing list