Bug 1287680

Summary: DoubleRenderError leading to Internal Server Error when navigating to https:/ip_address/api
Product: Red Hat CloudForms Management Engine Reporter: Jaroslav Henner <jhenner>
Component: APIAssignee: abellott
Status: CLOSED ERRATA QA Contact: Jaroslav Henner <jhenner>
Severity: urgent Docs Contact:
Priority: unspecified    
Version: 5.5.0CC: cpelland, jhardy, obarenbo
Target Milestone: GAKeywords: Regression
Target Release: 5.6.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: 5.6.0.0 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 1287797 (view as bug list) Environment:
Last Closed: 2016-06-29 15:15:59 UTC Type: Bug
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: 1287797    
Attachments:
Description Flags
production.log
none
evm log
none
api log none

Description Jaroslav Henner 2015-12-02 13:50:13 UTC
Created attachment 1101472 [details]
production.log

Description of problem:
MIQ main API entrypoint reports ISE, nasty-looking exceptions in logs.


Version-Release number of selected component (if applicable):
manageiq-openstack-master-201512012000-af81fde674.qc2


How reproducible:
2/2


Steps to Reproduce:
1. glance image-create ...
2. nova boot and add FlIP
3. navigate to https://FlIP/api


Actual results:
{"status":"500","error":"Internal Server Error"}


Expected results:
API self-description

Additional info:

Comment 2 Jaroslav Henner 2015-12-02 14:37:00 UTC
Created attachment 1101514 [details]
evm log

Comment 3 Jaroslav Henner 2015-12-02 14:43:58 UTC
Created attachment 1101517 [details]
api log

Comment 4 abellott 2015-12-02 16:04:02 UTC
Yep, regression with the enhanced logging to the API, never tested browser access. 

https://github.com/ManageIQ/manageiq/pull/5683

Comment 5 CFME Bot 2015-12-02 19:46:51 UTC
New commit detected on ManageIQ/manageiq/master:
https://github.com/ManageIQ/manageiq/commit/77037c208908dd58fdd49fd0dafb0151634432b7

commit 77037c208908dd58fdd49fd0dafb0151634432b7
Author:     Alberto Bellotti <abellott>
AuthorDate: Wed Dec 2 10:54:32 2015 -0500
Commit:     Alberto Bellotti <abellott>
CommitDate: Wed Dec 2 10:55:59 2015 -0500

    [api] Fix enhanced logging
    
    - Issue when hitting /api using browser with no authentication where the browser pops up
    the authentication pop-up, needed to log appropriatly (null authentication and no authorization logging).
    
    https://bugzilla.redhat.com/show_bug.cgi?id=1287680

 app/controllers/api_controller/logger.rb | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

Comment 7 errata-xmlrpc 2016-06-29 15:15:59 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2016:1348