Bug 40433

Summary: self-service passwordreset crashes on udm_errors.pwQuality
Product: UCS Reporter: Daniel Tröder <troeder>
Component: Self ServiceAssignee: Daniel Tröder <troeder>
Status: CLOSED FIXED QA Contact: Florian Best <best>
Severity: normal    
Priority: P5 CC: gohmann, walkenhorst
Version: UCS 4.1   
Target Milestone: UCS 4.1-0-errata   
Hardware: Other   
OS: Linux   
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:

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.
YAML: OK
Comment 5 Janek Walkenhorst univentionstaff 2016-01-20 13:22:21 CET
<http://errata.software-univention.de/ucs/4.1/57.html>