-
Notifications
You must be signed in to change notification settings - Fork 9.4k
MAX_NUM_COOKIES can not be overridden any more #39625
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
Comments
Hi @yavery. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
I assume this was done on purpose @nathanjosiah? There is however a quality patch to increase the max number of cookies allowed from 50 to 200: MDVA-12304, however, it's not compatible yet with the latest security releases. Follow magento/quality-patches#133 to see how it progresses. If you really need an urgent fix, I suggest you create your own patch and apply it to your shop, it shouldn't be hard. |
Hi @engcom-Hotel. Thank you for working on this issue.
|
Hello @yavery, Thanks for the report and collaboration! As per the discussion internally, this issue has been fixed in the scope of JIRA https://jira.corp.adobe.com/browse/AC-13918, and planned to release in April. Hence closing this issue. |
@engcom-Hotel: please do not close issues when the fix hasn't been pushed to the open source repository here on github. Thanks! |
Sure @hostep, let me reopen it and move it to Thanks |
Hi, is there a way while we wait for the fix to override to cookie count limit ? I had to completely override the class, since most of it is private. Not a fan of a solution like this since it can introduce issues if/when the bahavior is changed in a future release. Thanks. |
Hello everyone. In my opinio, this should be changed from a public const to a public method. The RFC clearly states that the max number of cookies is variable, and that the max number of cookies SHOULD be AT LEAST 50, not exactly 50. If this is changed to a method that simply returns 50 (or it could return a private const DEFAULT_MAX_NUM_COOKIES, which would be defined as 50). This way, it can be easily changed on demand by Interceptors and it will be more aligned to what the referred RFC really states. |
Preconditions and environment
Steps to reproduce
upgrade to 2.4.5-P11, 2.4.6-P9
in previous versions:
and
after upgrade:
and
Expected result
Magento codebase use more than 50 cookies, Application needs to override the MAX_NUM_COOKIES
Previously, this can be done through an overriding via preference:
Actual result
After upgrade, every call to server would generate a new log entry:
self::MAX_NUM_COOKIES
only access the theprivate const MAX_NUM_COOKIES
Additional information
Judging by new release adding
private
in front ofconst MAX_NUM_COOKIES
, is Magento trying to make it hard for application to change MAX_NUM_COOKIES and expressing a strong recommendation on thisRelease note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: