-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Open
Open
Copy link
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care of31-feedbackbugfeature: carddavRelated to CardDAV internalsRelated to CardDAV internals
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
Cards property value is limited to 255 chars, it is too short for contact categories field.
Categories truncated so searching attendees in calendar for example returns random results depending on which groups truncated
Steps to reproduce
- add contact to a quite big number of groups with long names, so CATEGORIES field exceed 254 chars
- try to add group attendee from calendar app
- there is probability that required group was truncated and it fails to find all group members
Expected behavior
It adds all group members as attendee
Nextcloud Server version
31
Operating system
Other
PHP engine version
PHP 8.4
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
I was able to work it around by altering table to 4095 chars and modifying restriction in this line:
server/apps/dav/lib/CardDAV/CardDavBackend.php
Line 1399 in ddc2724
$query->setParameter('value', mb_strcut($property->getValue(), 0, 254)); |
Maybe it needs more proper solution because of number of groups can be big enough.
Metadata
Metadata
Assignees
Labels
1. to developAccepted and waiting to be taken care ofAccepted and waiting to be taken care of31-feedbackbugfeature: carddavRelated to CardDAV internalsRelated to CardDAV internals