tchapi / davis

🗓 A simple, fully translatable admin interface for sabre/dav based on Symfony 5 and Bootstrap 5, initially inspired by Baïkal.

Home Page:https://github.com/users/tchapi/projects/1/views/1

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deprecation error

opened this issue · comments

I was testing your project as a replacement for a home-brew system.

I set up the site just fine and was able to create a user, address book and calendar. However, when trying to connect to the CalDAV/CardDAV server using Contacts v14.0 (2570)/Calendar v14.0 (2964.2.2) on my Mac (Sonoma v14.3.1), I kept getting authentication errors.

I saw this entry in the davis log:

[2024-02-28T17:13:02.160846-08:00] php.INFO: User Deprecated: Since symfony/security-guard 5.3: The "Symfony\Component\Security\Guard\Authenticator\GuardBridgeAuthenticator" class is deprecated, use the new authenticator system instead. {"exception":"[object] (ErrorException(code: 0): User Deprecated: Since symfony/security-guard 5.3: The "Symfony\Component\Security\Guard\Authenticator\GuardBridgeAuthenticator" class is deprecated, use the new authenticator system instead. at /srv/davis/vendor/symfony/security-guard/Authenticator/GuardBridgeAuthenticator.php:35)"}

Changing these two lines in composer.json

   "symfony/security-bundle": "^5.4.21",
   "symfony/security-guard": "^5.4.21",

to

   "symfony/security-bundle": "~5.4.21",
   "symfony/security-guard": "~5.4.21",

solved the problem. This allowed symfony/security-bundle v5.4.35 and symfony/security-guard v5.4.35 to be installed instead of the default 5.4.21.

The server is a FreeBSD 14.0-p5 system with

Apache/2.4.58 (FreeBSD)

and

PHP 8.3.3 (cli) (built: Feb 18 2024 04:50:20) (NTS)
Zend Engine v4.3.3, Copyright (c) Zend Technologies

My FreeBSD system uses OpenSSL v3.0.13.

The error was due to the fact that I had not enabled SSL on the test site. SSL is required by macOS/iOS Calendar/Contacts.