It is a small environment with 4 user, so I might start from scratch with NC11.0.3. Card- and Caldav is crucial to me.
Maybe there is a workaround to get it working even with NC12, that would be nice, to safe me the effort.
I’m not 100% sure it works, but maybe this small hack can get it working again.
But you should only do this when absolutely necessary, since it breaks OAuth2 and some other things.
So don’t complain when those things don’t work then anymore.
And also I just tested and can confirm, that Lightning 5.4 works against Nextcloud 12 without this.
apps/dav/appinfo/v1/webdav.php
Replace:
$authPlugin->addBackend($bearerAuthPlugin);
with:
// FIXME I disabled this myself following https://help.nextcloud.com/t/nc12-authentication-issue-with-cardav-caldav-and-sogo-connector/12924 $authPlugin->addBackend($bearerAuthPlugin);
apps/dav/lib/Server.php
Replace:
$authPlugin->addBackend($bearerAuthBackend);
with:
// FIXME I disabled this myself following https://help.nextcloud.com/t/nc12-authentication-issue-with-cardav-caldav-and-sogo-connector/12924 $authPlugin->addBackend($bearerAuthBackend);
After updating two Nextcloud instances, both have problems with Thunderbird Sync
(Lightning - Calendar 5.4.1.1 “CALDAV” & SOGo Connector 31.0.4 “CARDDAV”).
Calendars are no longer displayed (disabled) and reactivate fails without error!
After creating a new app-pin in Nextcloud and deleting the saved password in Thunderbird, you will not be prompted for a new one?! It seems as no connection could be established.
Little note on the edge if it’s related
When I call the calendar URL in Firefox, I get the following text: This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client. CLEAR!
When I call the calendar URL in IE, I get the following text: Unauthorized ?
There are no entries in the Bruteforce block list!
Maybe Thunderbird requests also receive this message?!
The sync on the mobile phone (Windows Mobile 10) works without problems!
@nickvergessen
Unfortunately, the comment out solution did not work for me, same problem
Does anyone else have an idea?
I suspect the constellation Thunderbird Lightning & SOGo should be quite common.
The problem we fixed with 1.4.3 is only if you login on the very first time. It was a problem during initial server connection.
So if you experince problems with an existing user after the upgrade it is not the same cause.
@nickvergessen thanks for your help. Unfortunately it does not help to comment it out. Not with the carddav- caldav-sync apps neither Thunderbird.
If I open Thunderbird with Lightning already open I see for a split second that the calendars get fetched but then they get greyed out and the check disappears. Even tried it with a new calendar. No luck.
DavDroid (Android paid app) works flawlessy, instead Evolution mail client does not, it complains about “Data source ‘mycal’ does not support OAuth 2.0 authentication”…
Well my hack above removes it and it still doesn’t work, so a bit odd…
People with the problem, can you post the URLs you are connecting to? Something like:
example.tld/remote.php/dav/calendars/…
example.tld/remote.php/caldav/…
example.tld/subfolder/remote.php/dav/calendars/…
example.tld/subfolder/remote.php/caldav/…