-
Notifications
You must be signed in to change notification settings - Fork 9.4k
[Backport 2.2-develop] #11343 #11478 In admin, url params may get url encoded more than once, fix backend url model #11480
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
Conversation
This PR has backward incompatible changes. Method Magento\Backend\Model\Url::getUrl() now returns
so before this fix it returned |
@RomaKis ok, let me have a look at this |
0279a9e
to
6d5b0e5
Compare
hi @RomaKis , I've updated the PR to preserve BC, the problem was not in the parent call itself, but in not retrieving the route params parsed by |
@RomaKis tests are failing, I'm checking them |
@okorshenko @RomaKis fixed, tests passed |
I've noticed that after this fixes each Logout request in admin panel has 2 redirects instead of 1 (that we have now). Is that intended behavior? (Edited to remove Magento system internal urls, no need to expose them) |
@AZVO @okorshenko that behaviour was not intended on purpose, let me check |
@AZVO @okorshenko Using 2.2-develop branch, without changes proposed here, I'm obtaining the same results (using form key). Upper right Magento icon, and after logout, use Logout uses So it behaves the same after the changes applied, but I also was wondering why is
Why is using getRouteUrl, when that method does not care about url secret key? Shouldn't getRouteUrl method be deprecated from interface and only used internally if needed (as it is done in |
As agreed with @vkublytskyi and indirectly with @antonkril , I'm going to perform the following actions:
|
7424781
to
1609ec3
Compare
Done, ready to review |
Hi @adrian-martinez-interactiv4 I'm closing this PR for now. If you would like to proceed with this fix, feel free to reopen this PR. Also I will close #11481 and #11479 Let's finalize the solution for one branch and then we can create backports/forwardports to other branches |
Description
In admin, url params may get url encoded more than once, when \Magento\Backend\Model\Url::getUrl() is called many times within the same request. This can mess up parameters like grid filters, and others. Related with PR#11479
Fixed Issues
Manual testing scenarios
Contribution checklist