Skip to content

[Bug]: (apps/dav) oc_cards_properties value is too short for contact categories #55143

@p5n

Description

@p5n

⚠️ This issue respects the following points: ⚠️

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

  1. add contact to a quite big number of groups with long names, so CATEGORIES field exceed 254 chars
  2. try to add group attendee from calendar app
  3. 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:

$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

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions