Bug 45255 - UnboundLocalError: local variable 'ur' referenced before assignment
UnboundLocalError: local variable 'ur' referenced before assignment
Product: UCS@school
Classification: Unclassified
Component: UMC - Password reset
UCS@school 4.2
Other Linux
: P5 normal (vote)
: UCS@school 4.2 v4
Assigned To: Florian Best
Johannes Keiser
Depends on:
  Show dependency treegraph
Reported: 2017-08-24 19:07 CEST by Florian Best
Modified: 2017-10-16 21:33 CEST (History)
2 users (show)

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?: 1: Will affect a very 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.034
Enterprise Customer affected?:
School Customer affected?: Yes
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number: 2017081521000315
Bug group (optional): Error handling, External feedback
Max CVSS v3 score:

Screenshot (35.54 KB, image/jpeg)
2017-08-24 19:07 CEST, Florian Best

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Best univentionstaff 2017-08-24 19:07:48 CEST
Created attachment 9143 [details]

UnboundLocalError: local variable 'ur' referenced before assignment

111 »   »   except udm_exceptions.permissionDenied as e:
112 »   »   »   MODULE.process('dn=%r' % ur.dn)

The full traceback is available in the screenshot.
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2017-09-04 12:49:38 CEST
The traceback happens if the UMC user is not allowed to reset the password of another user.
Comment 2 Florian Best univentionstaff 2017-09-18 11:48:04 CEST
1e4e39f3f4ece9beb26bdd1c6fea2055ec304059 | YAML Bug #45255
4d35997575fb3eb36856962f0373f6e1c2c8af26 | Merge branch 'fbest/45255-unbound-local-ur' into 4.2
bea5bf7b99244f1ea629080a7e065c0dfc238b6a | YAML Bug #45255

ucs-school-umc-users (13.0.0-3):
4d35997575fb3eb36856962f0373f6e1c2c8af26 | Merge branch 'fbest/45255-unbound-local-ur' into 4.2
5de16cbcafdcda2146ef39de4e876e54ce9d32f0 | Bug #45255: fix UnboundLocalError in case of permission problems
Comment 3 Johannes Keiser univentionstaff 2017-09-22 18:13:10 CEST
OK A normal human readable error message is shown instead of traceback
OK YAML (6463241211991cf8a028ca743b297c2974ed28f6 - fix typo and slight reword)
-> verified
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2017-10-16 21:32:06 CEST
UCS@school 4.2 v4 has been released.


If this error occurs again, please clone this bug.