# \[SOLVED\] On my Gnome desktop I cannot integrate opendesktop's Nextcloud system

**URL:** <https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680>\
**Category:** Nextcloud\
**Created:** [April 5, 2021, 1:19am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680 "2021-04-05T01:19:56Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![megukk](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/megukk/32/69515_2.png) [@megukk](https://forum.opendesktop.org/u/megukk)\
**Post date:** [April 5, 2021, 1:19am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/1 "2021-04-05T01:19:56Z")

</div>

I’ve tried using [https://my.opendesktop.org](https://my.opendesktop.org) and [https://cloud.opendesktop.org](https://cloud.opendesktop.org).  
When opening through gnome files (or nautilus) it sends error “HTTP error: address moved permanently”  
And then for evolution in the calendar integration it is said cannot connect to said link not a caldav.

---

<div class="post-metadata">

**Author:** ![cuki](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/cuki/32/67008_2.png) [@cuki](https://forum.opendesktop.org/u/cuki)\
**Post date:** [April 23, 2021, 6:22pm UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/2 "2021-04-23T18:22:51Z")

</div>

## EVOLUTION

Currently, summoning `OPTIONS /remote.php/webdav/<resource-path>` doesn’t reply with the right DAV headers.

### WebDAV RFC:

> All DAV-compliant resources _MUST_ return the DAV header with compliance-class “1” on all OPTIONS responses. In cases where WebDAV is only supported in part of the server namespace, an OPTIONS request to non-WebDAV resources (including “/”) _SHOULD NOT_ advertise WebDAV support.
> 
> > - [HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)](http://www.webdav.org/specs/rfc4918.html#rfc.section.10.1)

And:

> Class 1 compliant resources _MUST_ return, at minimum, the value “1” in the DAV header on all responses to the OPTIONS method.
> 
> > - [HTTP Extensions for Web Distributed Authoring and Versioning (WebDAV)](http://www.webdav.org/specs/rfc4918.html#rfc.section.18.1)

I’ve filed a bug, but it got rejected due to the code being compliant to the RFC spec:

> **[WebDav: Code duplication and function misuse (#327) · Issues · GNOME /...](https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/327)**
>
> There's duplicated code on this files at the highlighted lines: e-book-backend-carddav.c:128-204 + :241-258 e-cal-backend-caldav.c:165-192...

I hope it can be fixed server-side, however, GNOME is the only set of apps that doesn’t want to connect to this cloud, KDE and Etar+Opentasks+DAVx5+NextcloudNotes+Nextcloud(Android) works fine for me.

* * *

## GNOME Files

The thing is broken, probably due to the same thing as Evolution.  
You can use the NextCloud desktop app until it gets fixed, it makes a folder on your home directory and synchronizes it. I don’t know if it mounts it or only synchronizes it 😕

---

<div class="post-metadata">

**Author:** ![opendesktop](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/opendesktop/32/72966_2.png) [@opendesktop](https://forum.opendesktop.org/u/opendesktop)\
**Post date:** [May 11, 2021, 7:48am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/3 "2021-05-11T07:48:34Z")

</div>

Thanks for reporting. We’re putting this in the development pipeline and trying to fix it.

---

<div class="post-metadata">

**Author:** ![justinz](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/justinz/32/118829_2.png) [@justinz](https://forum.opendesktop.org/u/justinz)\
**Post date:** [May 21, 2021, 6:34am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/4 "2021-05-21T06:34:27Z")

</div>

Can you please try this again. Nextcloud has been updated recently.

---

<div class="post-metadata">

**Author:** ![justinz](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/justinz/32/118829_2.png) [@justinz](https://forum.opendesktop.org/u/justinz)\
**Post date:** [May 21, 2021, 7:32am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/5 "2021-05-21T07:32:34Z")

</div>

I’ve just tested this. In Evolution I get errors but in Kontact (KDE) I get the calendar and contacts showing.

In Nautilus I have my Nextcloud files showing as I’ve added it in Online Accounts. I’m not sure you can browse them “normally” via a URL.

---

<div class="post-metadata">

**Author:** ![cuki](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/cuki/32/67008_2.png) [@cuki](https://forum.opendesktop.org/u/cuki)\
**Post date:** [May 23, 2021, 9:18am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/6 "2021-05-23T09:18:42Z")

</div>

> [@justinz](#):
>
> Nextcloud has been updated recently.

The latest update bumped the Nextcloud version, but the problem seams to be on nginx.

A quick test can be done typing the following on a term:  
`$ curl -X OPTIONS https://my.opendesktop.org/remote.php/webdav/ -v 2>&1 | grep "< dav:"`  
It should show `< dav: 1, 3, extended-mkcol` on a DAV-compliant server.

> [@justinz](#):
>
> In Evolution I get errors but in Kontact (KDE) I get the calendar and contacts showing.

KDE’s dav implementation does not stick so strictly to the specs, and thus gets the DAV header along with other requests.

---

<div class="post-metadata">

**Author:** ![justinz](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/justinz/32/118829_2.png) [@justinz](https://forum.opendesktop.org/u/justinz)\
**Post date:** [May 24, 2021, 1:10am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/7 "2021-05-24T01:10:25Z")

</div>

Thanks for the info, I’m looking into it now.

---

<div class="post-metadata">

**Author:** ![justinz](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/justinz/32/118829_2.png) [@justinz](https://forum.opendesktop.org/u/justinz)\
**Post date:** [June 16, 2021, 1:07am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/8 "2021-06-16T01:07:52Z")

</div>

Cuki can you please try now. I’ve made a change and now get:

```auto
< allow: OPTIONS, GET, HEAD, DELETE, PROPFIND, PUT, PROPPATCH, COPY, MOVE, REPORT, SEARCH
< dav: 1, 3, extended-mkcol, access-control, calendarserver-principal-property-search, nc-calendar-search, nc-enable-birthday-calendar

```

---

<div class="post-metadata">

**Author:** ![justinz](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/justinz/32/118829_2.png) [@justinz](https://forum.opendesktop.org/u/justinz)\
**Post date:** [June 16, 2021, 1:11am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/9 "2021-06-16T01:11:09Z")

</div>

I’ve also tested Evolution and Nautilus and both now work.

---

<div class="post-metadata">

**Author:** ![cuki](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/cuki/32/67008_2.png) [@cuki](https://forum.opendesktop.org/u/cuki)\
**Post date:** [July 24, 2021, 12:31pm UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/10 "2021-07-24T12:31:09Z")

</div>

Working flawless 😄

---

<div class="post-metadata">

**Author:** ![megukk](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/megukk/32/69515_2.png) [@megukk](https://forum.opendesktop.org/u/megukk)\
**Post date:** [November 7, 2021, 7:25am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/11 "2021-11-07T07:25:32Z")

</div>

It works now, thanks 😃

---

<div class="post-metadata">

**Author:** ![cuki](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/cuki/32/67008_2.png) [@cuki](https://forum.opendesktop.org/u/cuki)\
**Post date:** [August 22, 2022, 8:48am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/12 "2022-08-22T08:48:04Z")

</div>

Issue is back, DAVx5 and Evolution can’t detect carddav nor caldav resources as they use OPTIONS to get the DAV server capabilities.

I think a test should be added to the routine maintenance or cron like:  
`curl -X OPTIONS https://cloud.opendesktop.org/remote.php/dav/ -v 2>&1 | grep "< dav:" >/dev/null || echo FAIL`

---

<div class="post-metadata">

**Author:** ![justinz](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/justinz/32/118829_2.png) [@justinz](https://forum.opendesktop.org/u/justinz)\
**Post date:** [August 22, 2022, 1:50pm UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/14 "2022-08-22T13:50:37Z")

</div>

Interesting, maybe an update of Nextcloud wiped out the fix. I’ll look to see if I documented it from last time.

---

<div class="post-metadata">

**Author:** ![justinz](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/justinz/32/118829_2.png) [@justinz](https://forum.opendesktop.org/u/justinz)\
**Post date:** [September 10, 2022, 12:26pm UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/15 "2022-09-10T12:26:10Z")

</div>

I haven’t been able to find the solution from last time but I am continuing to search.

In the interim @enygmator has found a workaround that I have confirmed works.

```auto
In the field of the base URL, use https://my.opendesktop.org/remote.php/dav/principals/users/<username>/

```

I’ve been able to sync my calendars as a test.

---

<div class="post-metadata">

**Author:** ![cuki](https://forum.opendesktop.org/user_avatar/forum.opendesktop.org/cuki/32/67008_2.png) [@cuki](https://forum.opendesktop.org/u/cuki)\
**Post date:** [September 11, 2022, 2:07am UTC](https://forum.opendesktop.org/t/solved-on-my-gnome-desktop-i-cannot-integrate-opendesktops-nextcloud-system/19680/16 "2022-09-11T02:07:12Z")

</div>

Is the OPTIONS method passed down to proxy\_pass on the nginx config? The OPTIONS on `https://cloud.opendesktop.org/remote.php/dav/` and `https://cloud.opendesktop.org/apps/` appears identical to me: [Diff Online - An online diff tool can compare and find the difference between two text files](https://diffonline.net/eBUwvVMJCC)
