Something went wrong while setting issue due date.
Name field for countries should be limited to two characters
Closed
Name field for countries should be limited to two characters
Description
The name field for countries, stored in "c", only accepts 2-letter long values, but FD accepts any value, leading to LDAP errors. (invalid dn)
Steps to Reproduce
- Create a country
- Give it a name longer than 2 characters
- Try to save it
Expected behavior:
The country is saved or we get a clear error.
Actual behavior:
LDAP error about invalid dn syntax.
Reproduces how often:
100%
Additional Information
Found in https://gitlab.fusiondirectory.org/fusiondirectory/fd/issues/5861#note_50686