Bug 44248 - 04_ucs-school-reset-password-check.test fails
04_ucs-school-reset-password-check.test fails
Status: CLOSED FIXED
Product: UCS@school
Classification: Unclassified
Component: UMC - Password reset
UCS@school 4.2
Other Linux
: P5 critical (vote)
: UCS@school 4.2 v1
Assigned To: Sönke Schwardt-Krummrich
Daniel Tröder
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2017-04-03 21:20 CEST by Sönke Schwardt-Krummrich
Modified: 2017-04-11 17:45 CEST (History)
0 users

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 5: Major Usability: Impairs usability in key scenarios
Who will be affected by this bug?: 5: Will affect all installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.714
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 Sönke Schwardt-Krummrich univentionstaff 2017-04-03 21:20:03 CEST
04_ucs-school-reset-password-check.test fails in several Single- and Multiserver environments with the same error messages:

[2017-04-03 05:42:55.373340] *** UMC request: "POST command/schoolusers/password/reset" (teacher)
[2017-04-03 05:42:55.373638] UMC request payload: 
[2017-04-03 05:42:55.373652] {'flavor': 'teacher',
[2017-04-03 05:42:55.373661]  'options': {'newPassword': 'pf5el2w7s6',
[2017-04-03 05:42:55.373668]              'nextLogin': True,
[2017-04-03 05:42:55.373707]              'userDN': 'uid=ly0lf7anbi,cn=lehrer,cn=users,ou=zthiw69,dc=autotest201,dc=local'}}
[2017-04-03 05:42:55.474334] UMC request failed: 403 on master201 (command/schoolusers/password/reset): {"status": 403, "message": "Verboten", "location": "https://master201/univention/command"}



(2017-04-03 05:43:16.804171) Traceback (most recent call last):
(2017-04-03 05:43:16.804208)   File "04_ucs-school-reset-password-check", line 104, in <module>
(2017-04-03 05:43:16.804219)     sys.exit(main())
(2017-04-03 05:43:16.804229)   File "04_ucs-school-reset-password-check", line 79, in main
(2017-04-03 05:43:16.804238)     test_pwd_reset(host, teachers[0], 'teacher', teachers[1], teachersDn[1], True, Forbidden, 200, 401)
(2017-04-03 05:43:16.804249)   File "04_ucs-school-reset-password-check", line 42, in test_pwd_reset
(2017-04-03 05:43:16.804258)     assert reset() == expected_reset_result, 'umcp command schoolusers/password/reset was unexpectedly successful'
(2017-04-03 05:43:16.804270)   File "04_ucs-school-reset-password-check", line 34, in reset
(2017-04-03 05:43:16.804279)     return client.umc_command('schoolusers/password/reset', options, flavor).result
(2017-04-03 05:43:16.804288)   File "/usr/lib/pymodules/python2.7/univention/testing/umc.py", line 58, in umc_command
(2017-04-03 05:43:16.804296)     return super(Client, self).umc_command(*args, **kwargs)
(2017-04-03 05:43:16.804304)   File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 272, in umc_command
[2017-04-03 05:43:16.804317] . . Done: replication complete.
(2017-04-03 05:43:16.815818)     return self.request('POST', 'command/%s' % (path,), data, headers)
(2017-04-03 05:43:16.815838)   File "/usr/lib/pymodules/python2.7/univention/testing/umc.py", line 69, in request
(2017-04-03 05:43:16.815847)     response = super(Client, self).request(method, path, data, headers)
(2017-04-03 05:43:16.815856)   File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 297, in request
(2017-04-03 05:43:16.815863)     return self.send(request)
(2017-04-03 05:43:16.815873)   File "/usr/lib/pymodules/python2.7/univention/lib/umc.py", line 316, in send
(2017-04-03 05:43:16.815881)     raise HTTPError(request, response, self.hostname)
(2017-04-03 05:43:16.815896) univention.lib.umc.Forbidden: 403 on master201 (command/schoolusers/password/reset): {"status": 403, "message": "Verboten", "location": "https://master201/univention/command"}
Comment 1 Sönke Schwardt-Krummrich univentionstaff 2017-04-05 21:43:37 CEST
30.03.17 01:40:07.777  PARSER      ( INFO    ) : UMCP REQUEST 149083080771796-187 parsed successfully
30.03.17 01:40:07.777  MODULE      ( INFO    ) : Executing ['schoolusers/password/reset']
30.03.17 01:40:07.778  MAIN        ( INFO    ) : Setting locale 'de_DE'
30.03.17 01:40:07.778  MAIN        ( INFO    ) : Incoming request of type COMMAND
30.03.17 01:40:07.778  MODULE      ( INFO    ) : Executing ['schoolusers/password/reset']
30.03.17 01:40:07.778  MAIN        ( INFO    ) : Setting locale 'de_DE'
30.03.17 01:40:07.779  RESOURCES   ( INFO    ) : Searching for module providing command schoolusers/password/reset
30.03.17 01:40:07.779  RESOURCES   ( INFO    ) : Found module schoolusers
30.03.17 01:40:07.781  MODULE      ( PROCESS ) : Verboten
Comment 2 Sönke Schwardt-Krummrich univentionstaff 2017-04-05 23:42:09 CEST
There was a typo within the test script (wrong variable name) which lead to an uncaught exception. This has been fix. Additionally the script now checks also the password reset abilities of school admins (currently on one school).

ucs-test-ucsschool (4.0.4-8):
r78671 | Bug #44248: fixed typo in 04_ucs-school-reset-password-check and add reset checks for admins

Package: ucs-test-ucsschool
Version: 4.0.4-8A~4.2.0.201704052338
Branch: ucs_4.2-0
Scope: ucs-school-4.2
Comment 3 Daniel Tröder univentionstaff 2017-04-10 15:26:38 CEST
OK: test fixed
nice: test extended to test reset abilities of school admins
Comment 4 Sönke Schwardt-Krummrich univentionstaff 2017-04-11 17:45:47 CEST
UCS@school 4.2 v1 has been released.

http://docs.software-univention.de/release-notes-ucsschool-4.2v1-de.html

If this error occurs again, please clone this bug.