Univention Bugzilla – Bug 44248
04_ucs-school-reset-password-check.test fails
Last modified: 2017-04-11 17:45:47 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"}
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
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
OK: test fixed nice: test extended to test reset abilities of school admins
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.