Fix double encoding of urls on mediarequests api
See examples in parent task with https://commons.wikimedia.org/wiki/File:Pr%C3%A4sidentschaftswahl_in_den_Vereinigten_Staaten.ogv file
Fix double encoding of urls on mediarequests api
See examples in parent task with https://commons.wikimedia.org/wiki/File:Pr%C3%A4sidentschaftswahl_in_den_Vereinigten_Staaten.ogv file
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Resolved | None | T210313 Statistics for views of individual Wikimedia images | |||
Resolved | MusikAnimal | T234590 Add ability to the pageview tool in labs to get mediarequests per file similar to existing functionality to get pageviews per page title | |||
Resolved | • fdans | T244373 Fix double encoding of urls on mediarequests api |
Change 570608 had a related patch set uploaded (by Fdans; owner: Fdans):
[analytics/aqs@master] Url encode file name before querying the data store
Change 570608 merged by jenkins-bot:
[analytics/aqs@master] Url encode file name before querying the data store
Ok, I deployed this, seems to fix the original problem as reported in T234590#5850051, as now it allows the single-encoded form:
However, it no longer allows the double encoded form, so I'm guessing this broke @MusikAnimal's interface until he turns off the hack.
Thanks for the fix (and apologies for my delayed response)! Should this be closed? It does indeed work in Mediaviews now https://tools.wmflabs.org/mediaviews/?project=commons.wikimedia.org&platform=&referer=all-referers&range=latest-20&files=Pr%C3%A4sidentschaftswahl_in_den_Vereinigten_Staaten.ogv
There are a few outstanding issues with the mediarequests data that we need to solve for next quarter but this very one can be closed, thanks.
Change 588396 had a related patch set uploaded (by Fdans; owner: Fdans):
[analytics/aqs@master] Handle punctuation chars in paths for mediarequests per file
I've documented the few different variations of file paths here:
https://wikitech.wikimedia.org/wiki/Analytics/AQS/Mediarequests/Limitations#Issues_with_file_paths
Change 588396 merged by jenkins-bot:
[analytics/aqs@master] Handle punctuation chars in paths for mediarequests per file