Closed
Description
Preconditions (*)
- Magento 2.3.2-p2
- PHP 7.1
- pcre.backtrack_limit = 1000000 (Default)
- pcre.recursion_limit = 1000000 (Default)
- dev/js/move_script_to_bottom=enabled
Steps to reproduce (*)
- Build a huge HTML output (e.g. shopping cart with a lot of complex products)
Expected result (*)
- Output should be turned or error should be thrown
Actual result (*)
- A HTTP status code 200 without a response body is returned
The call to preg_replace_callback()
in JsFooterPlugin
will fail silently, resulting in a blank page. The reason for this is, that preg_replace_callback()
will return NULL
if one of it's limits is reached. NULL
will further be used to set the content of the HTTP response.
A first step would be to check if the result of preg_replace_callback()
is NULL
and throw an appropriate exception (generated from preg_last_error()
).
Metadata
Metadata
Assignees
Labels
The issue has been fixed in 2.4-develop branchGate 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 developmentA defect with this priority could have functionality issues which are not to expectations.The issue has been reproduced on latest 2.4-develop branchMajor restrictions or short-term circumventions are required until a fix is available.Has been reviewed and prioritized during Triage with Product Managers