Bug 55100 - Creating a School with "_" or "-" via UMC not possible due to wrong regex check
Creating a School with "_" or "-" via UMC not possible due to wrong regex check
Status: NEW
Product: UCS@school
Classification: Unclassified
Component: UMC
UCS@school 5.0
Other Linux
: P5 normal (vote)
: ---
Assigned To: UCS@school maintainers
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2022-08-15 16:48 CEST by Daniel Duchon
Modified: 2022-08-15 16:48 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 2: Will only affect a few installed domains
How will those affected feel about the bug?: 2: A Pain – users won’t like this once they notice it
User Pain: 0.069
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2022081121000321
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 Daniel Duchon univentionstaff 2022-08-15 16:48:51 CEST
Reason:
/usr/lib/python2.7/dist-packages/ucsschool/lib/models/attributes.py
/usr/lib/python3/dist-packages/ucsschool/lib/models/attributes.py
/kelvin/ucs-school-lib/modules/ucsschool/lib/models/attributes.py

Checks for "-" not "_":
 regex = re.compile("^[a-zA-Z0-9](([a-zA-Z0-9-]*)([a-zA-Z0-9]$))?$")

But Javascript checks for "_" instead of "-"