Admin UI: enabling a birthday calendar for address book returns 500

Offen
#328 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Bewertung

Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Anfängerfreundlichkeit
65/100
Issue-Typ
Bug
Klarheit
Größtenteils klar
Aktivitätsstatus
Aktiv
Tech-Stack
nginx, php, postgresql, symfony
Bereich
backend, databases

Rechercherichtung

Start with src/Services/BirthdayService.php around line 348, where createCalendarObject() is called, and trace how birthday entries from an address book are handled during the admin save. Reproduce with a card that has a BDAY property and compare with an empty address book; done when enabling the birthday calendar succeeds and includes the card's birthday without returning a 500.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

bug
Davis version

v5.6.3

Installation method

NixOS module

PHP version (bare metal only)

8.5.12

Database

PostgreSQL

Reverse proxy

Nginx

Authentication method

Internal (ADMIN_LOGIN / ADMIN_PASSWORD)

Affected protocol(s)
  • CalDAV
  • CardDAV
  • WebDAV
  • Admin dashboard
  • API
Client(s) exhibiting the issue
  • Admin UI
Relevant environment variables
APP_ENV=prod
CALDAV_ENABLED=true
CARDDAV_ENABLED=true
WEBDAV_ENABLED=false
PUBLIC_CALENDARS_ENABLED=false
DATABASE_DRIVER=postgresql
DATABASE_URL=postgres://davis@localhost/davis?host=/run/postgresql
APP_TIMEZONE=Europe/Berlin

AUTH_METHOD unset
BIRTHDAY_REMINDER_OFFSET unset
Steps to reproduce
  1. Create a user with an address book containing at least one card (might need the BDAY property)
  2. Admin -> Address books -> Edit -> set "Include in birthday calendar" to Yes -> Save
  3. -> 500
Expected behaviour

Should create a shared birthday calendar containing the birthdays from the selected address book.

Actual behaviour

Creates an empty shared birthday calendar and fails with 500.
Running bin/console dav:sync-birthday-calendar <user> worked/fixed it correctly.

Logs
request.CRITICAL: Uncaught PHP Exception Error: "Call to a member function createCalendarObject() on null" at src/Services/BirthdayService.php line 348
Additional context

Creating a shared birthday calendar for a user with an empty address book showed no problems.

Possibly the same as #251, which couldn't be reproduced. Possible because it ran on an address book without (BDAY) entries.

Vorherrschende Sprache
PHP
Sterne
769
Forks
45
Ø Merge
2 T. 9 Std.
Gemergte PRs (30 T.)
4

Entwicklungsumgebung

Dieses Projekt bietet weder Dev-Container noch Dockerfile noch Beitragsleitfaden – die Einrichtung liegt bei Ihnen. Beginnen Sie mit der README; die allgemeinen Schritte stehen in unserem Leitfaden für den ersten Beitrag.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus tchapi/davis

Alle Issues in tchapi/davis

Ähnliche Issues

Weitere Issues zu PHP

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.