Bug 1803941

Summary: Helm endpoints do not return valid json response in case of runtime errors
Product: OpenShift Container Platform Reporter: Predrag Knezevic <pknezevi>
Component: Dev ConsoleAssignee: Predrag Knezevic <pknezevi>
Status: CLOSED ERRATA QA Contact: Gajanan More <gamore>
Severity: high Docs Contact:
Priority: unspecified    
Version: 4.4CC: aos-bugs, bpeterse, cvogt, gamore, nmukherj
Target Milestone: ---   
Target Release: 4.5.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of:
: 1806153 (view as bug list) Environment:
Last Closed: 2020-05-13 21:58:21 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: 1806153    

Description Predrag Knezevic 2020-02-17 18:44:11 UTC
Description of problem:

If a helm endpoint action ends with the error, the returned response is not a valid json content.


How reproducible:

POST request at /api/helm/manifest/releases with the following payload

{
	"chart_url": "foo"
}


Actual results:

{
  "error": "Failed to install helm chart: failed to download \"foo\" (hint: running `helm repo update` may help)"
}null

Expected results:

{
  "error": "Failed to install helm chart: failed to download \"foo\" (hint: running `helm repo update` may help)"
}

Comment 3 Gajanan More 2020-03-10 08:57:50 UTC
I have validated this bug on 
Build: 4.5.0-0.ci-2020-03-10-023720
Browser: Google Chrome 78.0.3904.108
Marking this bug as verified.

Comment 5 errata-xmlrpc 2020-05-13 21:58:21 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-2020:0581