Bug 1965322

Summary: Error code 500 is used when page not found
Product: [Red Hat Storage] Red Hat OpenShift Data Foundation Reporter: Filip Balák <fbalak>
Component: Multi-Cloud Object GatewayAssignee: Kfir Payne <kfpayne>
Status: CLOSED ERRATA QA Contact: Aman Agrawal <amagrawa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 4.6CC: dzaken, ebenahar, etamir, muagarwa, nbecker, ocs-bugs, odf-bz-bot
Target Milestone: ---   
Target Release: ODF 4.9.0   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-13 17:44:30 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:
Attachments:
Description Flags
Error Code 500 page none

Description Filip Balák 2021-05-27 12:56:07 UTC
Created attachment 1787620 [details]
Error Code 500 page

Description of problem (please be detailed as possible and provide log
snippests):
When user loads not existing page in Multicloud Object Gateway console, there is a message:

NooBaa
We dug the earth, but couldn't find your requested URL
(Error Code 500)
Take me back ...

Error Code 500 means Internal Server Error. Instead of (Error Code 500) there should be (404 Page Not Found). The 500 error code is also used in http response.

Version of all relevant components (if applicable):
4.6.5-411.ci

Can this issue reproducible?
yes

Can this issue reproduce from the UI?
yes

Steps to Reproduce:
1. Navigate to not existing url that could be part of Multicloud Object Gateway console. E.g. <noobaa console>/badurl

Actual results:
In error message is written (Error Code 500). This code is also in http response.

Expected results:
404 Page Not Found should be used in error message and in response.

Additional info:

Comment 13 errata-xmlrpc 2021-12-13 17:44:30 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 (Moderate: Red Hat OpenShift Data Foundation 4.9.0 enhancement, security, and bug fix update), 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/RHSA-2021:5086