Comment 3 for bug 483454

Revision history for this message
LtWorf (tiposchi) wrote : Re: redoundant directory creation

I did try to check the behavior in the latest ubuntu, using a livecd and with strace -f i was unable to get any useful informations.

So i tried with webdav, to be able to access server's log.

This is the generated log for a "create folder" click and then for giving the directory a name. The previous log entries aren't here, so yes, it did list the directory while it was already listed.

['/tmp', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'User-Agent: gvfs/1.4.1', 'Content-Length: 235', '', '']
['/tmp/', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'Content-Length: 235', 'User-Agent: gvfs/1.4.1', '', '']
['/tmp/untitled folder/', '::ffff:127.0.0.1', 'MKCOL', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'User-Agent: gvfs/1.4.1', '', '']
['/tmp/untitled folder', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'User-Agent: gvfs/1.4.1', 'Content-Length: 235', '', '']
['/tmp/untitled folder/', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'Content-Length: 235', 'User-Agent: gvfs/1.4.1', '', '']
['/tmp/untitled folder', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'User-Agent: gvfs/1.4.1', 'Content-Length: 235', '', '']
['/tmp/untitled folder/', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'Content-Length: 235', 'User-Agent: gvfs/1.4.1', '', '']
['/tmp/untitled folder', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'User-Agent: gvfs/1.4.1', 'Content-Length: 235', '', '']
['/tmp/untitled folder/', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'Content-Length: 235', 'User-Agent: gvfs/1.4.1', '', '']
['/tmp/untitled folder', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'User-Agent: gvfs/1.4.1', 'Content-Length: 235', '', '']
['/tmp/untitled folder/', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'Content-Length: 235', 'User-Agent: gvfs/1.4.1', '', '']
['/tmp/untitled folder', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'User-Agent: gvfs/1.4.1', 'Content-Length: 235', '', '']
['/tmp/untitled folder/', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'Content-Length: 235', 'User-Agent: gvfs/1.4.1', '', '']
['/tmp/untitled folder', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'User-Agent: gvfs/1.4.1', 'Content-Length: 235', '', '']
['/tmp/untitled folder/', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'Content-Length: 235', 'User-Agent: gvfs/1.4.1', '', '']
['/tmp/untitled folder', '::ffff:127.0.0.1', 'MOVE', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Destination: http://asdq@localhost:8080/tmp/aaaa', 'Overwrite: F', 'User-Agent: gvfs/1.4.1', '', '']
['/tmp/aaaa', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'User-Agent: gvfs/1.4.1', 'Content-Length: 235', '', '']
['/tmp/aaaa/', '::ffff:127.0.0.1', 'PROPFIND', '', '', 'HTTP/1.1', 'Host: localhost:8080', 'Depth: 0', 'Content-Type: application/xml', 'Apply-To-Redirect-Ref: T', 'Content-Length: 235', 'User-Agent: gvfs/1.4.1', '', '']

As you can see, directory is 1st created and then moved, and between those requests, lot of redoundant PROPFIND requests are issued. Generating futile load to both server and client. I remind that PROPFIND is an heavy request, since the server has to generate the XML response every time.
For the record, the same operation on kde does one MKCOL and one PROPFIND.