# \[webdav\] Gnome gvfs/goa DAV mount and final slash

**URL:** <https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125>\
**Category:** Pydio Cells\
**Created:** [March 3, 2020, 8:24pm UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125 "2020-03-03T20:24:22Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![drzraf](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/drzraf/32/1207_2.png) [@drzraf](https://forum.pydio.com/u/drzraf)\
**Post date:** [March 3, 2020, 8:24pm UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125/1 "2020-03-03T20:24:22Z")

</div>

When it comes to mounting on a recent Gnome Linux desktop, two components are involved.

One is Gnome Online Account, which currently does not support Pydio (which is entirely their fault):

> **[UI locks webdav (open protocol) to specific vendor brands (#105) · Issues ·...](https://gitlab.gnome.org/GNOME/gnome-online-accounts/issues/105)**
>
> \*\*webdav\*\* is a protocol implemented in a variety of libraries. \[SabreDav\](https://sabre.io/) is a popular PHP implementation used by NextCloud and ownCloud. Contrary to Nautilus, GOA does not advert vendor-neutral "webdav"...

The other is gvfs/gio, here the issue is more subtle.  
When running:

`GVFS_HTTP_DEBUG=all /usr/lib/gvfs/gvfsd-dav ssl=true user=<user> host=my-domain prefix=/dav/`

the first request is:

`OPTIONS /dav`

Pydio replies:

```auto
 HTTP/1.1 200 OK

<!DOCTYPE html>
<html xmlns:ajxp>
<head>
<title>Pydio Cells</title>
...

```

This is obviously not expected.

Three possibility.

- Either `golang.org/x/net/webdav` is wrong in the webdav implementation regarding `/`. I doubt it given results from [https://github.com/golang/go/issues/10506](https://github.com/golang/go/issues/10506)
- Either gvfs is wrong to strip final slash. It’s a possibility given [https://gitlab.gnome.org/GNOME/gvfs/issues/168](https://gitlab.gnome.org/GNOME/gvfs/issues/168). But still feels that it’s not exactly the problem.
- Either Pydio cells is doing final `/` handling wrong.

Related routing code:

> <https://github.com/pydio/cells/blob/77d577068b5edb7aa7ec7b0508cd6c5a56332a6e/gateway/proxy/plugins.go#L102-L106>

Related code of the handler:

> <https://github.com/pydio/cells/blob/baa81c31568854436c164eaba98d8ba4e210eef5/gateway/dav/handler.go#L70-L74>

Related implementation: [https://github.com/pydio/cells/blob/master/gateway/dav/filesystem.go](https://github.com/pydio/cells/blob/master/gateway/dav/filesystem.go)

---

<div class="post-metadata">

**Author:** ![drzraf](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/drzraf/32/1207_2.png) [@drzraf](https://forum.pydio.com/u/drzraf)\
**Post date:** [March 16, 2020, 12:22pm UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125/2 "2020-03-16T12:22:49Z")

</div>

Ping & up & help | support 🙂 ?

---

<div class="post-metadata">

**Author:** ![bsinou](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/bsinou/32/476_2.png) [@bsinou](https://forum.pydio.com/u/bsinou)\
**Post date:** [March 27, 2020, 11:33am UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125/3 "2020-03-27T11:33:09Z")

</div>

Hello,

I had a quick look at this using the latest dev version (that will be published as 2.0.5 very soon) and that you can retrieve here for Ubuntu: [https://download.pydio.com/pub/cells/dev/linux-amd64/cells](https://download.pydio.com/pub/cells/dev/linux-amd64/cells)

I could mount a given workspace on nautilus with no issue, using for instance:  
`davs://localhost:8080/dav/common-files`

After login, I can browse the server tree. Furthermore, all the workspaces that can be accessed by the current logged-in user are also listed in the mounted network location.

Yet, I could not achieve to directly mount the drive by using neither `davs://localhost:8080/dav/` nor `davs://localhost:8080/dav`

So could you please:

- Try with the latest binary to see if it can yet address your use case (we have fixed quite a few glitch in these layers during the last few weeks)  
and, you want us to further dig into it
- Be more explicit in the debugging process you use so that we can reproduce your issue and dig further to address it.

Thanks.

---

<div class="post-metadata">

**Author:** ![drzraf](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/drzraf/32/1207_2.png) [@drzraf](https://forum.pydio.com/u/drzraf)\
**Post date:** [March 27, 2020, 9:12pm UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125/4 "2020-03-27T21:12:39Z")

</div>

Very interesting feedback. Thank you!  
I’ll try 2.0.5 as soon as it’s released.  
In the meantime I made an attempt with “common-files”.

Here’s the log (Tried with the latest release of gvfsd):

`$ GVFS_DEBUG=1 GVFS_HTTP_DEBUG=all /usr/lib/gvfs/gvfsd-dav ssl=true user=username host=my-domain prefix=/dav/common-files`

```auto
dav: setting 'ssl' to 'true'
dav: setting 'user' to 'username'
dav: setting 'host' to 'my-domain'
dav: setting 'prefix' to '/dav/common-files'
dav: Added new job source 0x563b5bff51a0 (GVfsBackendDav)
dav: Queued new job 0x563b5bff13e0 (GVfsJobMount)
dav: + mount
> OPTIONS /dav/common-files HTTP/1.1
> Soup-Debug-Timestamp: 1585341980
> Soup-Debug: SoupSession 1 (0x563b5bff5100), SoupMessage 1 (0x7f73780070d0), SoupSocket 1 (0x7f73783498c0)
> Host: my-domain
> Accept-Encoding: gzip, deflate
> User-Agent: gvfs/1.44.0
> Accept-Language: en-us, en;q=0.9
> Connection: Keep-Alive
  
dav: + soup_authenticate_interactive (first auth) 
dav: - soup_authenticate 
< HTTP/1.1 1 Cancelled
< Soup-Debug-Timestamp: 1585341982
< Soup-Debug: SoupMessage 1 (0x7f73780070d0)
< Date: Fri, 27 Mar 2020 20:46:22 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 14
< Connection: keep-alive
< Set-Cookie: __cfduid=d43461785d4f052083007e89e638ffee31585341980; expires=Sun, 26-Apr-20 20:46:20 GMT; path=/; domain=.animalequality.org; HttpOnly; SameSite=Lax
< Www-Authenticate: Basic realm=""
< CF-Cache-Status: DYNAMIC
< Expect-CT: max-age=604800, report-uri="https://report-uri.cloudflare.com/cdn-cgi/beacon/expect-ct"
< Server: cloudflare
< CF-RAY: 57abf5d11d33d2dc-EZE
< 
< Unauthorized.
  
dav: send_reply(0x563b5bff13e0), failed=1 (HTTP Error: Cancelled)
dav: Mount failed: HTTP Error: Cancelled

```

I wonder if it could not be a bug in gvfsd [itself](https://gitlab.gnome.org/GNOME/gvfs/-/blob/master/daemon/gvfsbackenddav.c#L1518).

I also tried Nautilus (against 2.0.4), but without much more success _“Can’t parse the response”_ (but I could not find a way to obtain debug messages from it).

---

<div class="post-metadata">

**Author:** ![bsinou](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/bsinou/32/476_2.png) [@bsinou](https://forum.pydio.com/u/bsinou)\
**Post date:** [March 30, 2020, 7:21am UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125/5 "2020-03-30T07:21:59Z")

</div>

> [@drzraf](#):
>
> I also tried Nautilus (against 2.0.4), but without much more success _“Can’t parse the response”_  
> …  
> I’ll try 2.0.5 as soon as it’s released.

Your call, but if you could try with the snapshot before we release it, it would help to insure your problem is solved. If you confirm the problem is still there and give moe hints to reproduce, we are testing and fixing glitches this week.  
Otherwise, you might have to wait longer (a.k.a until next release): as it is working for me on Ubuntu18 with nautilus, we won’t do further digging.

---

<div class="post-metadata">

**Author:** ![drzraf](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/drzraf/32/1207_2.png) [@drzraf](https://forum.pydio.com/u/drzraf)\
**Post date:** [March 30, 2020, 5:56pm UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125/6 "2020-03-30T17:56:44Z")

</div>

I tried again with just release 2.0.5:

Lower-level:

**Testcase 0** :  
`cadaver https://$U:$P@$HOST/dav/`  
=\> **works**

**Testcase 1** : I created `test-dir`  
`curl -sX PROPFIND https://$U:$P@$HOST/dav/common-files/test-dir`  
=\> **works**

**Testcase 2** :  
`curl -sX PROPFIND https://$U:$P@$HOST/dav/common-files`  
=\> Does **not work**  
=\> **Response** : `<?xml version="1.0" encoding="UTF-8"?><D:multistatus xmlns:D="DAV:"><D:response><D:href>/dav/common-files/</D:href><D:propstat><D:prop><D:supportedlock><D:lockentry xmlns:D="DAV:"><D:lockscope><D:exclusive/></D:lockscope><D:locktype><D:write/></D:locktype></D:lockentry></D:supportedlock><D:getlastmodified>Tue, 25 Feb 2020 22:23:36 GMT</D:getlastmodified><D:resourcetype><D:collection xmlns:D="DAV:"/></D:resourcetype><D:displayname>common-files</D:displayname></D:prop><D:status>HTTP/1.1 200 OK</D:status></D:propstat></D:response></D:multistatus>Internal Server Error`  
=\> **Server logs** : `{"level":"error","ts":"2020-03-30T17:44:45Z","logger":"pydio.gateway.dav","msg":"|- DAV END","method":"PROPFIND","path":"/dav/common-files","error":"{\"id\":\"views.handler.encryption.GetObject\",\"code\":404,\"detail\":\"node Uuid and size are both required\",\"status\":\"Not Found\"}"}`

**Testcase 3** :  
`Using Nautilus`  
=\> Does **not work**.  
=\> I see the `common-files` directory, but can’t list its content because of a `parse-error`  
=\> **Server logs** : Identical to above `testcase 2`.

My guess is:

- That `Internal Server Error` string breaks XML
- Since logs mention `views.handler.encryption.GetObject` let me precise that my instance is using an [encrypted] [S3] datasource, in case it helps.

---

<div class="post-metadata">

**Author:** ![bsinou](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/bsinou/32/476_2.png) [@bsinou](https://forum.pydio.com/u/bsinou)\
**Post date:** [April 2, 2020, 8:38am UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125/7 "2020-04-02T08:38:26Z")

</div>

We quickly spoke about this during stand up meeting this morning and we might have a trail that could explain the issue you have spotted.  
We have to do some further testing and we will let you know. (But please be patient, we have heavy load and are a little bit less efficient than usual these days).

---

<div class="post-metadata">

**Author:** ![drzraf](https://yyz2.discourse-cdn.com/flex032/user_avatar/forum.pydio.com/drzraf/32/1207_2.png) [@drzraf](https://forum.pydio.com/u/drzraf)\
**Post date:** [April 13, 2022, 7:12pm UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125/8 "2022-04-13T19:12:33Z")

</div>

Tested Nautilus (Ubuntu 20.04) today on Pydio `3.0.6` : **It works!**

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex032/uploads/pydio/original/2X/6/61f19fa52ec15fd4250db51aea351adba0e831fd.png) [@system](https://forum.pydio.com/u/system)\
**Post date:** [April 25, 2022, 1:12am UTC](https://forum.pydio.com/t/webdav-gnome-gvfs-goa-dav-mount-and-final-slash/3125/9 "2022-04-25T01:12:45Z")

</div>

Closed on April 25, 2022, 1:12am UTC

This topic was automatically closed 11 days after the last reply. New replies are no longer allowed.
