Contact information max length [varchar(255)] #2924
Labels
1. to develop
Accepted and waiting to be taken care of
bug
Something isn't working
feature: contacts
Describe the bug
Coming from nextcloud/server#31207
The table structure for
oc_cards_properties
currently limits the length of the properties to 255 characters. In most cases this isn't a problem but it shows on quite a fewNOTE
fields. Most of them include something normally present in the footer of a mail. They sometimes include addresses, websites, emails, phone numbers and opening hours.One might think that all of them should be stored in the respective field but having a quick glance at them they look like from the teem/department and not the individual person. This does not look like humanly generated and more like something a mail attached v-card would have.
Now with postgres enforcing the length limits stricter this becomes a Problem.
The current table structure from an sqldump:
Steps to reproduce
NA
Expected behavior
The app should somehow warn me/limit the maximum allowed length.
The limit could also be changed on server side if 255 is not preferred.
Sadly I couldn't find any specified limit in RFC2426 and my AOSP Android contacts app happily accepts whatever I throw at it.
Actual behavior
The server/UI will happily accepts a 3.5k lorem ipsum
Contact version
4.2.0
Operating system
No response
PHP engine version
PHP 8.1
Web server
Nginx
Database
PostgreSQL
Additional info
No response
The text was updated successfully, but these errors were encountered: