Summary: | Cannot synchronize with my Nextcloud carddav/caldav | ||
---|---|---|---|
Product: | [Applications] korganizer | Reporter: | Olivier Churlaud <olivier> |
Component: | general | Assignee: | kdepim bugs <kdepim-bugs> |
Status: | RESOLVED UNMAINTAINED | ||
Severity: | major | CC: | 4wy78uwh, kdelibs-bugs, nate, sephiroth_pk |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Arch Linux | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: |
Description
Olivier Churlaud
2021-04-29 20:03:30 UTC
I tested manually with this command: curl -v -X PROPFIND -H "Content-Type: application/xml" -u $USER https://$HOSTNAME/remote.php/dav/principals/users/$USER/ (password being given with the prompt) and it returns an 200 status, not an 401, so I think the issue is somewhere in the korganizer -> kdav stack, during the query. I tracked the issue to the DavCollectionsFetchJobPrivate::doCollectionsFetch method, and everything seemed fine. I wonder if the queries are correct (headers etc) but cannot find how to debug further. Debugging let me know that no authentication header is sent. With debugging qDebug() I found that my login and password are correct. I don't understand the logic to the authenticationHeader() method to debug further yet. Request to nextcloud after which there is no authent HTTP/1.1 401 Unauthorized Date: Sun, 09 May 2021 19:14:27 GMT Content-Type: application/xml; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Server: Apache X-Powered-By: PHP/7.3 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache Referrer-Policy: no-referrer X-Content-Type-Options: nosniff X-Download-Options: noopen X-Frame-Options: SAMEORIGIN X-Permitted-Cross-Domain-Policies: none X-Robots-Tag: none X-XSS-Protection: 1; mode=block Content-Security-Policy: default-src none; WWW-Authenticate: Basic realm=\"Nextcloud\", charset=\"UTF-8\" Set-Cookie: oc_sessionPassphrase=8gUy4Ito5NUrvFD6li5%2BI%2Bt7APjHejTGdg3jj3UVwya2x%2FHCQc4g1hB8%2Bukb2po7SlTff03IY%2FWHY4VpXKJNtQAEmJmHw5i4F7NAFtfUNKnPc8E3aN%2FxVO1qqBeHpimE; path=/; secure; HttpOnly; SameSite=Lax Set-Cookie: oc9yvoa3r8f0=c492aa6aa18a95b08c9ce9ef57b2ed4a; path=/; secure; HttpOnly; SameSite=Lax Set-Cookie: __Host-nc_sameSiteCookielax=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=lax Set-Cookie: __Host-nc_sameSiteCookiestrict=true; path=/; httponly;secure; expires=Fri, 31-Dec-2100 23:59:59 GMT; SameSite=strict Request to baikal after which there is an authentication HTTP/1.1 401 Unauthorized Date: Sun, 09 May 2021 19:13:28 GMT Content-Type: application/xml; charset=utf-8 Transfer-Encoding: chunked Connection: keep-alive Server: Apache X-Powered-By: PHP/7.3 Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache, must-revalidate Pragma: no-cache X-Sabre-Version: 4.1.4 Vary: Brief,Prefer DAV: 1, 3, extended-mkcol, access-control, calendarserver-principal-property-search, calendar-access, calendar-proxy, calendar-auto-schedule, calendar-availability, resource-sharing, calendarserver-sharing, addressbook WWW-Authenticate: Basic realm=\"sabre/dav\", charset=\"UTF-8\" Set-Cookie: PHPSESSID=1978132ff2ee1d55a485fd552e3653d7; path=/; HttpOnly Something else that might be useful: while connecting to nextcloud it fails to retrieve the Chunk: kf.kio.slaves.http: isError= false needCredentials= true forceKeepAlive= false forceDisconnect= false kf.kio.slaves.http: before fixup "application/xml" kf.kio.slaves.http: after fixup "application/xml" kf.kio.slaves.http: "-1" bytes left. kf.kio.slaves.http: Chunk size = 557 bytes kf.kio.slaves.http: bytesReceived: 557 m_iSize: -1 Chunked: true BytesLeft: -1 kf.kio.slaves.http: Failed to read chunk header. kf.kio.slaves.http: bytesReceived: -1 m_iSize: -1 Chunked: true BytesLeft: -1 kf.kio.slaves.http: bytesReceived==-1 sz= 557 Connection broken ! How can I help you to help me? What app are you using? KMail? Something else? I'm using KOrganizer, Evolution, DAVx5. Only KOrganiser is failing to retrieve my contacts and agendas. Thanks. Seems like I have the same or at least a very similar problem, as trying to set up a new calendar on Nextcloud fails with an HTTP 401 error. It works perfectly well with my phone with DAVx5 on my install as well. I'm marking this as confirmed. This persists even with the latest version of KDE Gear (21.08) and KDE Frameworks (5.85.0). I just found out that the issue in my case was that I was using the two factor authentication and that's not supported by KOrganizer, so I had to create an app-specific password. Once I used that I had no problem whatsoever. Olivier, are you by any chance using 2FA? I'm changing this back to "reported". No, I don't use 2FA It's still not working. In undestand it's a strange behavior on my provider side, but i'd like to fix it (and to help doing so). Can someone give me some pointers? Thx A possibly relevant merge request was started @ https://invent.kde.org/frameworks/kio/-/merge_requests/784 I ditched nextcloud, now with baikal everything works fine. I canceled my Mr as well |