Bug 41629 - Umlauts in ucr keys are valid
Umlauts in ucr keys are valid
Status: REOPENED
Product: UCS
Classification: Unclassified
Component: UCR
UCS 4.4
Other Linux
: P5 minor (vote)
: ---
Assigned To: UCS maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-06-21 14:28 CEST by Jürn Brodersen
Modified: 2020-04-16 18:48 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Development Internal
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jürn Brodersen univentionstaff 2016-06-21 14:28:52 CEST
In univention-config-registry/python/univention/config_registry/misc.py is the function validate_key() which is used when an ucr variable is set.
One part of that function should check if there are umlauts in the key but that doesn't work. It seems a byte encoded string is compared to an unicode encoded string.
I don't see a problem with umlauts in ucr keys?
My suggestion would be to either remove that check from validate_key() or check not only for umlauts but for non ascii characters.

As of now
'''
ucr set ümlaut=foo
ucr set ☃=snowman
'''
works without a warning.
Comment 1 Jürn Brodersen univentionstaff 2016-10-17 16:41:19 CEST

*** This bug has been marked as a duplicate of bug 25095 ***