Bug 736440

Summary: Failures based on authorization should return valid json
Product: Red Hat Satellite Reporter: Bryan Kearney <bkearney>
Component: APIAssignee: Tomas Strachota <tstrachota>
Status: CLOSED CURRENTRELEASE QA Contact: Jitendra Yejare <jyejare>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.0.0CC: lzap, tstrachota
Target Milestone: Unspecified   
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-22 17:56:15 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 747354    

Description Bryan Kearney 2011-09-07 17:17:26 UTC
based on bug 736438, permission failures should return valid json objects which can be parsed by the client. Looking at candlepin, body text like this:

{
    displayMessage: "Insufficient permissions"
}

would be nice.

-- bk

Comment 1 Lukas Zapletal 2011-09-08 13:30:39 UTC
But only for /api controllers I guess.

Comment 2 Tomas Strachota 2011-09-08 15:32:37 UTC
Fixed

commit e67933c6fcf7d59eb98e26be21739833f3724e0c
Author: Tomas Strachota <tstrachota>
Date:   Thu Sep 8 17:18:15 2011 +0200

    736440 - Failures based on authorization return valid json

Comment 3 Bryan Kearney 2011-09-08 22:15:51 UTC
(In reply to comment #1)
> But only for /api controllers I guess.

Yes.

Comment 4 Bryan Kearney 2011-09-09 16:54:31 UTC
I got a good error, thanks!