Bug 849623

Summary: [Webadmin Reports] If the Reports.xml doesn't exist there is a NPE
Product: Red Hat Enterprise Virtualization Manager Reporter: Alona Kaplan <alkaplan>
Component: ovirt-engine-webadmin-portalAssignee: Alona Kaplan <alkaplan>
Status: CLOSED CURRENTRELEASE QA Contact: Lukas Svaty <lsvaty>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: acathrow, dyasny, ecohen, iheim, oramraz, Rhev-m-bugs, vszocs, ykaul, yzaslavs
Target Milestone: ---Keywords: CodeChange
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: infra
Fixed In Version: si16 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: Infra RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Alona Kaplan 2012-08-20 11:33:24 UTC
Description of problem:
The webadmin tries to read the Reports.xml from the server.
Previously if the file didn't exist in the server the request failed. Now, if hte file doesn't exist the page is redirected so the request doesn't fail. 
The new behaviour causes a NPE.
It doesnn't affect on the webadmin behaviour, the webadmin start correcty besided the exception. 

p.s- the exception can be seen just in gwt debug mode.

Version-Release number of selected component (if applicable):


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Alona Kaplan 2012-08-20 14:40:44 UTC
http://gerrit.ovirt.org/#/c/7344/2

Comment 2 Alona Kaplan 2012-08-21 14:11:51 UTC
upstream commit 03998832218d1112e0daa5189c2bb366d1dc0d58

Comment 3 Vojtech Szocs 2012-08-28 13:17:47 UTC
Additional check for HTTP response status was added to avoid parsing response body for failed responses (e.g. missing Reports.xml that results in 404 error page as HTML in response body).

Upstream patch: http://gerrit.ovirt.org/7512 [commit hash 422c1e2d3da2a67074e6a4f892257118c6683f23]
Downstream patch: https://gerrit.eng.lab.tlv.redhat.com/1595 [commit hash a51ddbbc9a53b5d8f9a627691b1b4f77e02e8589]