GNOME Bugzilla – Bug 706798
webdavs files not acccessible to POSIX apps
Last modified: 2013-11-22 18:31:20 UTC
Mounting webdavs share via GVFS (in my case using gigolo), remote file system should be accessible via gvfs-fuse at /run/user/<username>/gvfs/. Instead just get input/output errors when listing and reading files. Steps to reproduce: Use gigolo to connect to remote DAVS file storage using Actions -> Connect, Actions-> Open Check connectivity via gvfs: gvfs-ls davs://remoteuser@www.somesite.com/somepath gvfs-cat davs://remoteuser@www.somesite.com/somepath/somefile.txt In my case, these work fine. Now try: ls -l /run/user/localuser/gvfs/dav\:host\=www.somesite.com\,ssl\=true\,user\=remoteuser/somepath cat /run/user/localuser/gvfs/dav\:host\=www.somesite.com\,ssl\=true\,user\=remoteuser/somepath/somefile.txt Get these errors: ls: cannot access /run/user/parrysg/gvfs/dav:host=www.mainscreen.com,ssl=true,user=parry2sg/files/test.txt: Input/output error : : cat: /run/user/parrysg/gvfs/dav:host=www.mainscreen.com,ssl=true,user=parry2sg/files/test.txt: Input/output error This bug is present 1.16.1 (Ubuntu 13.04) but not 1.12.1 (Ubuntu 12.04) This bug has been reported downstream.
Created attachment 257055 [details] [review] dav: Don't ignore all XML nodes with no contents An empty resourcetype node is sent back by the server for normal files. Don't ignore these nodes otherwise the stat information for normal files is not set correctly.
This patch fixes the problem.
Created attachment 257058 [details] [review] dav: Set file type to regular by default Some servers send empty resourcetype nodes or don't send the node at all for regular files (the spec says that it defaults to empty). Set the file type to regular by default.
Ignore my earlier comment... the new patch fixes the problem, both for Apache (which sends empty resourcetype nodes for regular files) and lighttpd (which doesn't send any resourcetype nodes for regular files.
Review of attachment 257058 [details] [review]: It looks good.
Pushed to master as 2b251d6 and gnome-3-10 as f95829e.