Bug 1965322 - Error code 500 is used when page not found
Summary: Error code 500 is used when page not found
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat OpenShift Data Foundation
Classification: Red Hat Storage
Component: Multi-Cloud Object Gateway
Version: 4.6
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
: ODF 4.9.0
Assignee: Kfir Payne
QA Contact: Aman Agrawal
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2021-05-27 12:56 UTC by Filip Balák
Modified: 2023-08-09 16:49 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-13 17:44:30 UTC
Embargoed:


Attachments (Terms of Use)
Error Code 500 page (51.24 KB, image/png)
2021-05-27 12:56 UTC, Filip Balák
no flags Details


Links
System ID Private Priority Status Summary Last Updated
Github noobaa noobaa-core pull 6696 0 None None None 2021-08-05 10:25:50 UTC
Red Hat Product Errata RHSA-2021:5086 0 None None None 2021-12-13 17:44:43 UTC

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


Note You need to log in before you can comment on or make changes to this bug.