Evolution and the X-NC-CalDAV-Webcal-Caching header

classic Classic list List threaded Threaded
13 messages Options
Reply | Threaded
Open this post in threaded view
|

Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
Hi

My setup is a Nextcloud (18.0.4) server and Evolution (3.36.2) running
on my desktop and laptop. The Evolution are CalDav clients to the NC. I
've set up a public holiday subscription calendar in NC and the problem
is that it doesn't show up in Evolution. I asked about this on NC forum

https://help.nextcloud.com/t/propagation-of-a-subscription-calendar/82539

and it seems that Evolution doesn't support the X-NC-CalDAV-Webcal-
Caching header.

Is there a reason why it is not supported?

I could of course solve this by setting up the public holiday
subscriptions in Evolution on both my desktop and laptop, but I think
it would be more elegant to just have it in one place.

Cheers
Robin

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Mon, 2020-05-25 at 14:02 +0200, Robin Lee via evolution-list wrote:
> and it seems that Evolution doesn't support the X-NC-CalDAV-Webcal-
> Caching header.
>
> Is there a reason why it is not supported?

        Hi,
if I understand it properly, then you created a calendar in the
Nextcloud web interface, which points to some on-the-web calendar file
(an .ics file). Is that correct?

How did you configure the Nextcloud account, directly in Evolution, or
through GNOME Online Accounts, please?

As far as I know, Evolution can read subscribed .ics files from the
Nextcloud server, it did work with Nextcloud 16.0.1 at least, but only
for (collection) accounts configured directly in the Evolution.

Related reports:
https://gitlab.gnome.org/GNOME/evolution-data-server/issues/121
https://gitlab.gnome.org/GNOME/gnome-online-accounts/-/issues/67

        Bye,
        Milan

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Mon, 2020-05-25 at 14:28 +0200, Milan Crha via evolution-list wrote:

> On Mon, 2020-05-25 at 14:02 +0200, Robin Lee via evolution-list
> wrote:
> > and it seems that Evolution doesn't support the X-NC-CalDAV-Webcal-
> > Caching header.
> >
> > Is there a reason why it is not supported?
>
> Hi,
> if I understand it properly, then you created a calendar in the
> Nextcloud web interface, which points to some on-the-web calendar
> file
> (an .ics file). Is that correct?
>
> How did you configure the Nextcloud account, directly in Evolution,
> or
> through GNOME Online Accounts, please?
>
> As far as I know, Evolution can read subscribed .ics files from the
> Nextcloud server, it did work with Nextcloud 16.0.1 at least, but
> only
> for (collection) accounts configured directly in the Evolution.

I did the Nextcloud account setup in GNOME Online Accounts. So if I
would set it up directly in Evolution then it might work?



_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Mon, 2020-05-25 at 14:33 +0200, Robin Lee via evolution-list wrote:
> I did the Nextcloud account setup in GNOME Online Accounts. So if I
> would set it up directly in Evolution then it might work?

        Hi,
yes, it might. Use Edit->Accounts->Add->Collection Account->.....
        Bye,
        Milan

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Mon, 2020-05-25 at 14:39 +0200, Milan Crha via evolution-list wrote:
> On Mon, 2020-05-25 at 14:33 +0200, Robin Lee via evolution-list
> wrote:
> > I did the Nextcloud account setup in GNOME Online Accounts. So if I
> > would set it up directly in Evolution then it might work?
>
> Hi,
> yes, it might.

So it did, thanks!

Although I don't see why it shouldn't also work when setting it up in
GOA.

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Mon, 2020-05-25 at 14:50 +0200, Robin Lee via evolution-list wrote:
> Although I don't see why it shouldn't also work when setting it up in
> GOA.

        Hi,
that explains the GOA bug I gave a link to earlier in this thread.
        Bye,
        Milan

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
In reply to this post by Gnome Evolution - General mailing list
On Mon, 2020-05-25 at 14:50 +0200, Robin Lee via evolution-list wrote:

> On Mon, 2020-05-25 at 14:39 +0200, Milan Crha via evolution-list
> wrote:
> > On Mon, 2020-05-25 at 14:33 +0200, Robin Lee via evolution-list
> > wrote:
> > > I did the Nextcloud account setup in GNOME Online Accounts. So if
> > > I
> > > would set it up directly in Evolution then it might work?
> >
> > Hi,
> > yes, it might.
>
> So it did, thanks!

Ah, it seems I traded one problem for an other.

When the Nextcloud account setup was through Gnome online accounts the
problem was that subscribed holiday calendars didn't show up in
Evolution. But personal calendars and address books worked fine.

When I switched to do the account setup in Evolution with a Collection
account, then the holiday calendars became visible. But an other
problem appeared, I could no longer access the personal calendars. I
got the following error message.

Failed to connect calendar “Nextcloud : Personal”
Failed with HTTP error 404: Not Found

Although the address book part works just fine. I can view and edit the
contacts. And I can view the holiday calendar.

Same thing if I do the setup with New Calendar instead of Collection
Account.


_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Tue, 2020-05-26 at 14:02 +0200, Robin Lee via evolution-list wrote:
> Failed to connect calendar “Nextcloud : Personal”
> Failed with HTTP error 404: Not Found

        Hi,
this will be harder to debug. You can check in the Properties of the
calendar what URL had been discovered (as advertised by the server).

You can also see what the discovery does with:

   $ WEBDAV_DEBUG=1 /usr/libexec/evolution-source-registry

Finally, you can see what the calendar does with:

   $ CALDAV_DEBUG=1 /usr/libexec/evolution-calendar-factory -w

The actual path can differ in your distribution. There's nothing to be
shared in public from those two logs, it contains a lot of private
information, some even encoded (in base64 or similar encoding), thus
unreadable on the first look. You can see from it what the server
returns.

It feels surprising to see the server returning an invalid Personal
calendar URL. Might there be double-encoding involved or something,
what would Evolution(-data-server) code decipher incorrectly? Just
check what the calendar has set (it can be copied out of the
Properties, even when it shows ellipsized), maybe it'll help to narrow
things.
        Bye,
        Milan

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Wed, 2020-05-27 at 07:03 +0200, Milan Crha via evolution-list wrote:
>
> It feels surprising to see the server returning an invalid Personal
> calendar URL. Might there be double-encoding involved or something,
> what would Evolution(-data-server) code decipher incorrectly? Just
> check what the calendar has set (it can be copied out of the
> Properties, even when it shows ellipsized), maybe it'll help to
> narrow things.

Ok, when setup through GOA the calendar URL is
http://server/nextcloud/remote.php/caldav/calendars/robin/personal-1/

and through a Collection account
http://server/nextcloud/remote.php/dav/calendars/robin/personal-1/

So the difference is between caldav and dav

As a comparison the same thing for contacts through GOA
http://server/nextcloud/remote.php/carddav/addressbooks/robin/contacts/
and through Collection account
http://server/nextcloud/remote.php/dav/addressbooks/users/robin/contacts/

And it was the calendar Collection account that's not working.

But if I insert calendar Collection account URL into Firefox I get
"This is the WebDAV interface. It can only be accessed by WebDAV
clients such as the Nextcloud desktop sync client."

And if I insert the calendar GOA URL into Firefox I get an xml-file
<d:error>
<s:exception>Sabre\DAV\Exception\NotImplemented</s:exception>
<s:message>
There was no plugin in the system that was willing to handle this GET
method. Enable the Browser plugin to get a better result here.
</s:message>
</d:error>

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Wed, 2020-05-27 at 08:52 +0200, Robin Lee via evolution-list wrote:
> Ok, when setup through GOA the calendar URL is
> http://server/nextcloud/remote.php/caldav/calendars/robin/personal-1/
>
> and through a Collection account
> http://server/nextcloud/remote.php/dav/calendars/robin/personal-1/

        Hi,
I'm pretty sure when you run Evolution as this:

   $ WEBDAV_DEBUG=1 evolution &>log.txt

then open menu File->New->Calendar, set there the address:

 http://server/nextcloud/remote.php/dav/

and click "Find Calendar", then you'll see the server returned one of
the addresses as:

   remote.php/dav/calendars/robin/personal-1/

(the one with 'dav', not 'caldav'). I guess it's the server fault that
it rejects CalDAV requests on an address it claimed as a user's
calendar (or that it returns dav/ address for CalDAV, when it
cannot/doesn't want to operate on that address).

Evolution relies on what the server returns. If it returns incorrect
data, then Evolution uses incorrect data.

I just tested this with a Nextcloud 16.0.1 and I can add a calendar
using this method with no problem, it is referenced with the 'dav'
address. Could they change anything intentionally between mine and your
version? That might be a question for them, I'm afraid.

You can run the calendar factory with CalDAV debugging on, as mentioned
in my previous mail, to see what the server returns for that /dav/
address, which may help to diagnose the problem.

        Bye,
        Milan

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
In reply to this post by Gnome Evolution - General mailing list
On Tue, 2020-05-26 at 14:02 +0200, Robin Lee via evolution-list wrote:

> Ah, it seems I traded one problem for an other.
>
> When the Nextcloud account setup was through Gnome online accounts
> the
> problem was that subscribed holiday calendars didn't show up in
> Evolution. But personal calendars and address books worked fine.
>
> When I switched to do the account setup in Evolution with a
> Collection
> account, then the holiday calendars became visible. But an other
> problem appeared, I could no longer access the personal calendars. I
> got the following error message.
>
> Failed to connect calendar “Nextcloud : Personal”
> Failed with HTTP error 404: Not Found

Just a short follow-up. Today I updated to Gnome 3.36.2 and Nextcloud
18.0.6 and after that I thought I would test this again and magically
it just worked. I defined a new collection account and everything just
showed up. Although I don't know at which end the problem was.

Cheers
Robin

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Tue, 2020-06-09 at 21:26 +0200, Robin Lee via evolution-list wrote:
> Just a short follow-up. Today I updated to Gnome 3.36.2 and Nextcloud
> 18.0.6 and after that I thought I would test this again and magically
> it just worked. I defined a new collection account and everything
> just showed up. Although I don't know at which end the problem was.

        Hi,
thanks for the followup. It's hard to guess which exact change made it
work, because Nextcloud 18.0.5 had a lot of changes and few more had
been added in 18.0.6 as well [1], but as you had Evolution 3.36.2
already (which may mean also evolution-data-server 3.36.2), then I
suppose the change was on the Nextcloud side.

In any case, good you have it working.
        Bye,
        Milan

[1] https://nextcloud.com/changelog/#latest18

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list
Reply | Threaded
Open this post in threaded view
|

Re: Evolution and the X-NC-CalDAV-Webcal-Caching header

Gnome Evolution - General mailing list
On Wed, 2020-06-10 at 07:52 +0200, Milan Crha via evolution-list wrote:

> On Tue, 2020-06-09 at 21:26 +0200, Robin Lee via evolution-list
> wrote:
> > Just a short follow-up. Today I updated to Gnome 3.36.2 and
> > Nextcloud
> > 18.0.6 and after that I thought I would test this again and
> > magically
> > it just worked. I defined a new collection account and everything
> > just showed up. Although I don't know at which end the problem was.
>
> Hi,
> thanks for the followup. It's hard to guess which exact change made
> it
> work, because Nextcloud 18.0.5 had a lot of changes and few more had
> been added in 18.0.6 as well [1], but as you had Evolution 3.36.2
> already (which may mean also evolution-data-server 3.36.2), then I
> suppose the change was on the Nextcloud side.

Ah sorry, what I should have written was that on the client side, on my
Fedora 32 desktop the following packages were updated yesterday

evolution-data-server-langpacks-3.36.3-1.fc32
evolution-data-server-3.36.3-1.fc32
evolution-langpacks-3.36.3-1.fc32
evolution-3.36.3-1.fc32
evolution-ews-langpacks-3.36.3-1.fc32
evolution-ews-3.36.3-1.fc32

Any way, thanks for all the help
Robin

_______________________________________________
evolution-list mailing list
[hidden email]
To change your list options or unsubscribe, visit ...
https://mail.gnome.org/mailman/listinfo/evolution-list