The rhui-manager fails to change password of existing user with message 'TypeError: 'NoneType' object does not support item assignment'

Solution Verified - Updated -

Environment

  • Red Hat Update Infrastructure 2.1

Issue

  • The rhui-manager fails with below error when changing password,
Traceback (most recent call last):
  File "/usr/lib/python2.6/site-packages/rhui/tools/pulp_api.py", line 117, in change_password
    self.user_api.update(username, delta)
  File "/usr/lib/python2.6/site-packages/pulp/client/api/user.py", line 30, in update
    return self.server.PUT(path, delta)[1]
  File "/usr/lib/python2.6/site-packages/pulp/client/api/server.py", line 326, in PUT
    return self._request('PUT', path, body=body)
  File "/usr/lib/python2.6/site-packages/pulp/client/api/server.py", line 287, in _request
    raise ServerRequestError(response.status, message, traceback)
ServerRequestError: (500, u"TypeError: 'NoneType' object does not support item assignment", u'Traceback (most recent call last):\n  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 48, in report_error\n    return method(self, *args, **kwargs)\n  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/decorators.py", line 127, in _auth_decorator\n    value = method(self, *args, **kwargs)\n  File "/usr/lib/python2.6/site-packages/pulp/server/webservices/controllers/users.py", line 110, in PUT\n    user = api.update(login, delta)\n  File "/usr/lib/python2.6/site-packages/pulp/server/api/user.py", line 65, in update\n    user[\'password\'] = password_util.hash_password(value)')

Resolution

  • Check if password change is happening for admin user.

Root Cause

  • It is not possible to create a new user on rhui-manager and change its password. This happens when username other than admin is used to change password.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments