Admin UI: enabling a birthday calendar for address book returns 500
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
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ả
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
- Create a user with an address book containing at least one card (might need the BDAY property)
- Admin -> Address books -> Edit -> set "Include in birthday calendar" to Yes -> Save
- -> 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tchapi/davis
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Run Doctrine migrations automatically on container startCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mởfeature request
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
-
Public birthday calendarsĐang mởfeature request
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
-
native installationĐang mởfeature request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 42/100
-
feature request
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 48/100
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Adyen/adyen-magento2#3453 ·
Maintainer thường phản hồi trong vòng 8 ngày
-
component/media domain/discovery
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 79/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug docker
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement priority: low
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
magicsunday/webtrees-statistics#664 ·
Maintainer thường phản hồi trong vòng 1 ngày