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
url decode value in requestcommand #16301
Conversation
@diosmosis be good to add a test eg with segments that contains characters like |
@tsteur ArchiveCronTest should archive segments (segments defined in |
@diosmosis I'm not sure. they don't seem to be encoded the way they are usually? Eg the 2 archives |
@tsteur uses a new segment type, hopefully the next build will pass |
@diosmosis I suppose the changed values in tests are because of the segment change? |
@tsteur yes, matching less visits now |
also,when testing I added the changes to 4.x-dev, then switched over and checked the test results were the same on this branch |
👍 LGTM after some debugging noticed this works eg because we urlencode the segment here: https://github.com/matomo-org/matomo/blob/3.14.1-b1/core/CronArchive.php#L841 |
RequestCommand uses
getArrayFromQueryString
which doesn't urldecode. (Note: I'm using in this for UI tests in ProxySite since travis-ci will hang (probably deadlock) when using curl requests)