Bug 18332 - Sonderzeichen im username
Sonderzeichen im username
Status: RESOLVED DUPLICATE of bug 54589
Product: UCS
Classification: Unclassified
Component: UDM (Generic)
UCS 2.3
Other Linux
: P5 normal (vote)
: ---
Assigned To: UMC maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-06 13:37 CEST by Felix Botner
Modified: 2022-04-05 16:48 CEST (History)
2 users (show)

See Also:
What kind of report is it?: ---
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 Felix Botner univentionstaff 2010-05-06 13:37:29 CEST
laut Beschreibung aus uid_umlauts_lower_except_first_letter (syntax.py) sind in Benutzernamen nur Zahlen, Buchstaben und Punkte erlaubt.

"Username must only contain numbers, letters and dots, and may not be 'admin'"

Jedoch matcht der reguläre Ausdruck auch auf andere Zeichen:

import re

text = "foo+bar"
unicode_text=text.decode("utf-8")
_re = re.compile('(?u)(^\w[\w -.]*\w$)|\w*$')
print _re.match(unicode_text)

Hier sollte also entweder die Fehlermeldung oder der reguläre Ausdruck angepasst werden.
Comment 1 Felix Botner univentionstaff 2010-05-06 13:43:19 CEST
Bei den Gruppennamen gibt es das gleiche Problem:

_re = re.compile('(?u)^\w([\w -.]*\w)?$')
text = "foo,bar"
unicode_text=text.decode("utf-8")
print _re.match(unicode_text)
Comment 2 Philipp Hahn univentionstaff 2012-10-01 16:56:19 CEST
*** Bug 24137 has been marked as a duplicate of this bug. ***
Comment 3 Stefan Gohmann univentionstaff 2014-02-18 21:38:04 CET
This issue has been filed against UCS 2.3.

UCS 2.3 is out of maintenance and many UCS components have vastly changed in
later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug".
In this case please provide detailed information on how this issue is affecting
you.
Comment 4 Florian Best univentionstaff 2022-04-05 16:48:47 CEST

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