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

Đang mở
#328 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
65/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
nginx, php, postgresql, symfony
Lĩnh vực
backend, databases

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
PHP
Star
769
Fork
45
Merge trung bình
2 ngày 9 giờ
Pull request đã merge (30 ngày)
4

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của tchapi/davis

Tất cả issue của tchapi/davis

Issue tương tự

Thêm issue về PHP

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.