-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
JsFooterPlugin sets Http Response content empty if PCRE limit reached #26026
Comments
Hi @cundd. Thank you for your report.
Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:
For more details, please, review the Magento Contributor Assistant documentation. @cundd do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?
|
@magento give me 2.4-develop instance |
Hi @cundd. Thank you for your request. I'm working on Magento 2.4-develop instance for you |
Hi @cundd, here is your Magento instance. |
I couldn't manage to reproduce it with the admin access only, but fixing this would more be a general improvement to the Magento framework, rather than an immediate fix for a bug. |
Hi @engcom-Echo. Thank you for working on this issue.
|
✅ Confirmed by @engcom-Echo Issue Available: @engcom-Echo, You will be automatically unassigned. Contributors/Maintainers can claim this issue to continue. To reclaim and continue work, reassign the ticket to yourself. |
Hi @cundd. Thank you for your report.
The fix will be available with the upcoming 2.4.0 release. |
Preconditions (*)
Steps to reproduce (*)
Expected result (*)
Actual result (*)
The call to
preg_replace_callback()
inJsFooterPlugin
will fail silently, resulting in a blank page. The reason for this is, thatpreg_replace_callback()
will returnNULL
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()
isNULL
and throw an appropriate exception (generated frompreg_last_error()
).The text was updated successfully, but these errors were encountered: