Bug 490475 - API - auth.login() - provide better error messages on exception
Summary: API - auth.login() - provide better error messages on exception
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: API
Version: 0.5
Hardware: All
OS: Linux
low
medium
Target Milestone: ---
Assignee: Brad Buckingham
QA Contact: Jesus M. Rodriguez
URL:
Whiteboard:
Depends On:
Blocks: space05
TreeView+ depends on / blocked
 
Reported: 2009-03-16 16:25 UTC by Brad Buckingham
Modified: 2009-09-17 07:11 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2009-09-17 07:11:16 UTC
Embargoed:


Attachments (Terms of Use)

Description Brad Buckingham 2009-03-16 16:25:20 UTC
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):


How reproducible:
always

Steps to Reproduce:
1. invoke auth.login() with a user that is 
   a. deactivate or 
   b. with an invalid login or password
  
Actual results:
1. a. account.disabled
1. b. error.invalid_login

Expected results:
1. a. "Your account has been deactivated."
1. b. "Either the password or username is incorrect."

Additional info:

Comment 1 Brad Buckingham 2009-03-16 16:35:06 UTC
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.'>

Comment 2 Brad Buckingham 2009-03-23 20:28:24 UTC
mass move to ON_QA

Comment 3 Brandon Perkins 2009-03-24 01:20:55 UTC
Removing bug 490475 blocks bug 488488.

Comment 4 Jesus M. Rodriguez 2009-04-14 14:13:34 UTC
Spacewalk 0.5 released.

Comment 5 Miroslav Suchý 2009-09-17 07:11:16 UTC
Spacewalk 0.5 has been released for long time ago.


Note You need to log in before you can comment on or make changes to this bug.