Univention Bugzilla – Bug 50026
[UDM HTTP API] sambaName is in template string, but is not accepted when used
Last modified: 2019-10-02 16:06:36 CEST
The add forms template object for shares/share contains { .. "sambaName": "", .. } When the template is used with this, an error is returned: Request argument "sambaName" The property Windows name has an invalid value: Value must not contain anything other than digits, letters, dots or spaces, must be at least 2 characters long, and start and end with a digit or letter! Returning { .. "sambaName": none, .. } works though. Either the template should also send "none" or the server accept "" (empty string) as is indicated in the template. The current state is inconsistent.
This is a bit tricky, as the property has, default='<name>' and is a string with syntax string_numbers_letters_dots_spaces. The create-form fills in all default values, which is in that case an empty string. I think we should accept empty strings and treat them as equal to None. Not sure how to fix it currently, I might have to change the syntax class.
Fixed by don't evaluating defaults containig patterns. univention-directory-manager-rest (9.0.15-6) 4f5fc4638b5c | Bug #27816: Bug #50026: fix default values of properties with replacements
UCS 4.4-2 has been released: https://docs.software-univention.de/release-notes-4.4-2-en.html https://docs.software-univention.de/release-notes-4.4-2-de.html If this error occurs again, please use "Clone This Bug".