Bug 41629

Summary: Umlauts in ucr keys are valid
Product: UCS Reporter: Jürn Brodersen <brodersen>
Component: UCRAssignee: UCS maintainers <ucs-maintainers>
Status: REOPENED --- QA Contact:
Severity: minor    
Priority: P5 CC: gohmann
Version: UCS 4.4   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
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:

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 ***