Bug 40433 - self-service passwordreset crashes on udm_errors.pwQuality
self-service passwordreset crashes on udm_errors.pwQuality
Product: UCS
Classification: Unclassified
Component: Self Service
UCS 4.1
Other Linux
: P5 normal (vote)
: UCS 4.1-0-errata
Assigned To: Daniel Tröder
Florian Best
Depends on:
  Show dependency treegraph
Reported: 2016-01-14 19:28 CET by Daniel Tröder
Modified: 2016-01-20 13:22 CET (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:


Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Tröder univentionstaff 2016-01-14 19:28:35 CET
/home/dtroeder/svn/dev/branches/ucs-4.1/ucs-4.1-0/management/univention-self-service/umc/python/passwordreset/__init__.py::udm_set_password() doesn't handle univention.admin.uexceptions.pwQuality:
File „/usr/lib/pymodules/python2.7/univention/management/console/modules/passwordreset/__init__.py“, line 439, in udm_set_password user.modify() File „/usr/lib/pymodules/python2.7/univention/admin/handlers/users/user.py“, line 1565, in modify return super(object, self).modify(*args, **kwargs) File „/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py“, line 364, in modify return self._modify(modify_childs,ignore_license=ignore_license) File „/usr/lib/pymodules/python2.7/univention/admin/handlers/__init__.py“, line 839, in _modify ml=self._ldap_modlist() File „/usr/lib/pymodules/python2.7/univention/admin/handlers/users/user.py“, line 2103, in _ldap_modlist raise univention.admin.uexceptions.pwQuality, str(e).replace(‚W?rterbucheintrag‘,’Wörterbucheintrag‘).replace(‚enth?lt‘, ‚enthält‘) pwQuality: is too simple

Reported here: https://www.univention.de/2015/11/self-services-fuer-passwort-reset-in-ucs-4-1/#comment-1791
Comment 1 Daniel Tröder univentionstaff 2016-01-14 19:30:18 CET
fixed in r66804.
Comment 2 Daniel Tröder univentionstaff 2016-01-14 19:33:46 CET
YAML (r66805): univention-self-service.yaml
Comment 3 Daniel Tröder univentionstaff 2016-01-15 14:48:25 CET
Commit 66822 (yaml 66823) cleans up the handling of error messages.
Comment 4 Florian Best univentionstaff 2016-01-15 15:58:41 CET
Fix: OK, pwToShort / pwalreadyused / pwQuality are catched.
Comment 5 Janek Walkenhorst univentionstaff 2016-01-20 13:22:21 CET