Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
Red Hat Satellite engineering is moving the tracking of its product development work on Satellite to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "Satellite project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs will be migrated starting at the end of May. If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "Satellite project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/SAT-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

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!