sabre-io / Baikal

Baïkal is a Calendar+Contacts server
https://sabre.io/baikal/
GNU General Public License v3.0
2.42k stars 281 forks source link

No 'Authorization: Digest' header found. Either the client didn't send one, or the server is misconfigured. Login was needed for privilege: {DAV:}read #1232

Open ecxod opened 5 months ago

ecxod commented 5 months ago

Baikal version: 0.9.4

Expected behaviour: Sync

Current behaviour: No Sync

Steps to reproduce: After Upgrade to php8.2.7 and baikal-0.9.4, I can still log in the web interface and I see there all calendars and all address books there, but I can't sync any more. I get this failure:

[Mon Jan 29 04:41:36.498478 2024] [proxy_fcgi:error] [pid 324052:tid 140268498040512]  AH01071: Got error
'PHP message: Sabre\\Xml\\LibXMLException: Validation failed: no DTD found ! on line 2, column 108 in
/var/Baikal-0.9.4/vendor/sabre/xml/lib/Reader.php:81
Stack trace:
#0 /var/Baikal-0.9.4/vendor/sabre/xml/lib/Service.php(181): Sabre\\Xml\\Reader->parse()
#1 /var/Baikal-0.9.4/vendor/sabre/dav/lib/DAV/CorePlugin.php(311): Sabre\\Xml\\Service->expect()
#2 [internal function]: Sabre\\DAV\\CorePlugin->httpPropFind()
#3 /var/Baikal-0.9.4/vendor/sabre/event/lib/WildcardEmitterTrait.php(89): call_user_func_array()
#4 /var/Baikal-0.9.4/vendor/sabre/dav/lib/DAV/Server.php(472): Sabre\\DAV\\Server->emit()
#5 /var/Baikal-0.9.4/vendor/sabre/dav/lib/DAV/Server.php(253): Sabre\\DAV\\Server->invokeMethod()
#6 /var/Baikal-0.9.4/vendor/sabre/dav/lib/DAV/Server.php(321): Sabre\\DAV\\Server->start()
#7 /var/Baikal-0.9.4/Core/Frameworks/Baikal/Core/Server.php(119): Sabre\\DAV\\Server->exec()
#8 /var/Baikal-0.9.4/html/dav.php(69): Baikal\\Core\\Server->start()
#9 {main}

Next Sabre\\DAV\\Exception\\BadRequest: Validation failed: no DTD fou...'
lllluke commented 5 months ago

Guess I have the same problem. Didn't see anything was going wrong until I changed my smartphone and couldn't get the phone to sync via DAVx5.

So I tried to login via firefox on my pc. Not possible either.

This only happens with existing users. When I create a new user, login is possible via webbrowser and also via DAVx5.

Seems like this issue was reported in 2015 for owncloud calender, too. But couldn't find a solution yet.