Nautilus takes two actions when creating directories on WebDAV share

Bug #483454 reported by LtWorf
10
This bug affects 1 person
Affects Status Importance Assigned to Milestone
nautilus (Ubuntu)
Confirmed
Low
Ubuntu Desktop Bugs

Bug Description

Binary package hint: nautilus

I created a directory on a webdav server. The log shows a MKCOL (webdav way to say mkdir) request for a "cartella senza nome" (i don't know the original english string for that, could be nameless directory?) and then a MOVE request to the name i gave to the directory.

Now, i think that it would be much better if the MKCOL request would be issued directly for the name i want to give to the directory.
Probably this bug occurs also on local disk, i didn't check it out.

ProblemType: Bug
Architecture: amd64
DistroRelease: Ubuntu 9.04
ExecutablePath: /usr/bin/nautilus
Package: nautilus 1:2.26.2-0ubuntu2
ProcEnviron:
 PATH=(custom, user)
 LANG=it_IT.UTF-8
 SHELL=/bin/bash
SourcePackage: nautilus
Uname: Linux 2.6.28-16-generic x86_64

Revision history for this message
LtWorf (tiposchi) wrote :
Revision history for this message
Pedro Villavicencio (pedro) wrote :

do you get the same using karmic there? could you try to recreate the same locally ? thanks in advance.

Changed in nautilus (Ubuntu):
assignee: nobody → Ubuntu Desktop Bugs (desktop-bugs)
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
LtWorf (tiposchi) wrote :
Download full text (4.6 KiB)

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-Redi...

Read more...

LtWorf (tiposchi)
Changed in nautilus (Ubuntu):
status: Incomplete → New
Revision history for this message
Sense Egbert Hofstede (sense) wrote :

I'm sorry, but this is the way Nautilus creates directory. When you press "New directory" a directory is created with "No name" and your keyboard focused on the name editing. After the directory has been created you change the name, which equals MOVE on WebDAV.
This bug is therefore a "Won't Fix". However, if you can prove that this behaviour is bad for WebDAV servers, please feel free to reopen the bug.

Changed in nautilus (Ubuntu):
status: New → Won't Fix
Revision history for this message
LtWorf (tiposchi) wrote :

It really depends on the authentication policies of the DAV server.
One administrator could wish to allow directory creation but not moving. In this case using gnome also directory creation would fail, even if it is allowed by the server.

The other problem is the amount of PROPFIND requests between MKCOL and MOVE. They are all the same and 2 of them would be more than enough. One would be much better (could issue the request directly with the / in the end (since it already expects it to be a directory).

Maybe those should be two different bugs on DAV then?

Changed in nautilus (Ubuntu):
status: Won't Fix → New
summary: - redoundant directory creation
+ Nautilus takes two actions when creating directories on WebDAV share
Revision history for this message
Pedro Villavicencio (pedro) wrote :

Thank you for taking the time to report this bug and helping to make Ubuntu better. A new version of Nautilus is available on Maverick and we are wondering if this bug is still an issue for you with that version? Could you please test and comment back? Thanks in advance.

Changed in nautilus (Ubuntu):
status: New → Incomplete
Revision history for this message
LtWorf (tiposchi) wrote :

bug is still there

Changed in nautilus (Ubuntu):
status: Incomplete → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.