https://bugs.kde.org/show_bug.cgi?id=436372

            Bug ID: 436372
           Summary: Cannot synchronize with my Nextcloud carddav/caldav
           Product: frameworks-kdav
           Version: 5.81.0
          Platform: Archlinux Packages
                OS: Linux
            Status: REPORTED
          Severity: major
          Priority: NOR
         Component: general
          Assignee: kdelibs-b...@kde.org
          Reporter: oliv...@churlaud.com
  Target Milestone: ---

SUMMARY
I set the URI of the instance, with my login and password (it works on my
smartphone with DAVx5, I tried with Evolution and it works as well).

When I try to synchronize the caldav or carddav it korganizer tells me either:

org.kde.pim.davresource: Unable to fetch collections 300 "There was a problem
with the request.\nHTTP error (0)."

or 

org.kde.pim.davresource: Unable to fetch collections 300 "There was a problem
with the request.\nInvalid username/password (401)."

On nextcloud side I get this (the userAgent is strange, the user as well : as
if kdav was not sending the correct headers.

{"reqId":"YIsN2nk4gdZ-H3aSmnRSNwAAADQ","level":0,"time":"2021-04-29T21:49:46+02:00","remoteAddr":"2001:861:4000:870:6dee:25e:5bf0:f774","user":"--","app":"contacts","method":"PROPFIND","url":"/remote.php/dav/","message":"/appinfo/app.php
is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the
application class instead.","userAgent":"--","version":"21.0.1.1"}
{"reqId":"YIsN2nk4gdZ-H3aSmnRSNwAAADQ","level":0,"time":"2021-04-29T21:49:47+02:00","remoteAddr":"2001:861:4000:870:6dee:25e:5bf0:f774","user":"--","app":"encryption","method":"PROPFIND","url":"/remote.php/dav/","message":"/appinfo/app.php
is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the
application class instead.","userAgent":"--","version":"21.0.1.1"}
{"reqId":"YIsN2nk4gdZ-H3aSmnRSNwAAADQ","level":0,"time":"2021-04-29T21:49:47+02:00","remoteAddr":"2001:861:4000:870:6dee:25e:5bf0:f774","user":"--","app":"files_sharing","method":"PROPFIND","url":"/remote.php/dav/","message":"/appinfo/app.php
is deprecated, use \\OCP\\AppFramework\\Bootstrap\\IBootstrap on the
application class instead.","userAgent":"--","version":"21.0.1.1"}
{"reqId":"YIsN2nk4gdZ-H3aSmnRSNwAAADQ","level":0,"time":"2021-04-29T21:49:47+02:00","remoteAddr":"2001:861:4000:870:6dee:25e:5bf0:f774","user":"--","app":"webdav","method":"PROPFIND","url":"/remote.php/dav/","message":{"Exception":"Sabre\\DAV\\Exception\\NotAuthenticated","Message":"No
public access to this resource., No 'Authorization: Basic' header found. Either
the client didn't send one, or the server is misconfigured, No 'Authorization:
Bearer' header found. Either the client didn't send one, or the server is
mis-configured, No 'Authorization: Basic' header found. Either the client
didn't send one, or the server is
misconfigured","Code":0,"Trace":[{"file":"/home/churlaud/cloud/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"beforeMethod","class":"Sabre\\DAV\\Auth\\Plugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/churlaud/cloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":456,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["beforeMethod:PROPFIND",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/home/churlaud/cloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":253,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/home/churlaud/cloud/3rdparty/sabre/dav/lib/DAV/Server.php","line":321,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/home/churlaud/cloud/apps/dav/lib/Server.php","line":332,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/home/churlaud/cloud/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/home/churlaud/cloud/remote.php","line":167,"args":["/home/churlaud/cloud/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/home/churlaud/cloud/3rdparty/sabre/dav/lib/DAV/Auth/Plugin.php","Line":154,"CustomMessage":"--"},"userAgent":"--","version":"21.0.1.1"}

STEPS TO REPRODUCE
1. Setup your nexcloud carddav credentials
2. Try to fetch the data

OBSERVED RESULT
It fails

EXPECTED RESULT
The data is fetched

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to