Closed
Description
Preconditions (*)
- Version 2.4-develop
- PHP 7.2
Steps to reproduce (*)
- Force any exception to be thrown during the bootstrapping process so that Magento\Framework\App\Bootstrap calls its terminate() function.
For example:
In \Magento\Catalog\Controller\Category\View::__construct
add new line:
throw new \Throwable('New exception');
- Send GET request to http://{base_url}/catalog/category/view/id/1
Expected result (*)
- An error message is displayed and a non 200 response code is returned.
Actual result (*)
- An error message is displayed and the http response code is 200 OK.
By changing the response code to a 500 before calling exit(1), any monitoring software observing for non-200 response codes will be able to issue an alert when a bootstrap is failing.
Metadata
Metadata
Assignees
Labels
Gate 2 Passed. Manual verification of the issue description passedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedGate 1 Passed. Automatic verification of issue format passedGate 4. Acknowledged. Issue is added to backlog and ready for developmentThe issue has been reproduced on latest 2.2 releaseThe issue has been reproduced on latest 2.3 releaseThe issue has been reproduced on latest 2.4-develop branch