Red Hat Bugzilla – Bug 490475
API - auth.login() - provide better error messages on exception
Last modified: 2009-09-17 03:11:16 EDT
Description of problem:
Update XMLRRPC API auth.login() to return error messages that are consistent with the errors displayed to them if logging in through the UI.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. invoke auth.login() with a user that is
a. deactivate or
b. with an invalid login or password
1. a. account.disabled
1. b. error.invalid_login
1. a. "Your account has been deactivated."
1. b. "Either the password or username is incorrect."
git commit: 775a37377feadedd46221a615586fd9145f148e1
Updated the API to use the localized error text that a user gets if they attempted a failed login scenario from the UI.
The new output to a failed attempt to login via API looks like:
xmlrpclib.Fault: <Fault 2950: 'redstone.xmlrpc.XmlRpcFault: Either the password or username is incorrect.'>
xmlrpclib.Fault: <Fault 2950: 'redstone.xmlrpc.XmlRpcFault: Your account has been deactivated.'>
mass move to ON_QA
Removing bug 490475 blocks bug 488488.
Spacewalk 0.5 released.
Spacewalk 0.5 has been released for long time ago.