[Wikidata-bugs] [Maniphest] T289912: Commons filenames with a + get URL-encoded again as %2B in wikidata sparql query service
Valeriummaximum added a comment. Just to be clear, the filename themselves do not contain a +. The query service replaces the whitespaces in filenames in commons with + which is also rendered again with %2B. For example, the following has whitespace: https://commons.wikimedia.org/wiki/Data:India/Tamil Nadu/Theni.map will be rendered in the browser as and can be found in Commons: https://commons.wikimedia.org/wiki/Data:India/Tamil_Nadu/Theni.map but in the query service, it will be rendered as: https://commons.wikimedia.org/wiki/Data:India/Tamil+Nadu/Theni.map which does not exist If you click on the link directly it will then be reencoded as https://commons.wikimedia.org/wiki/Data:India/Tamil%2BNadu/Theni.map which leads to an error message TASK DETAIL https://phabricator.wikimedia.org/T289912 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Valeriummaximum Cc: Mbch331, Aklapper, Valeriummaximum, Invadibot, MPhamWMF, maantietaja, CBogen, Akuckartz, Alilje, Nandana, Namenlos314, Lahi, Gq86, Looniverse, Lucas_Werkmeister_WMDE, GoranSMilovanovic, QZanden, EBjune, Orienteerix, merbst, LawExplorer, _jensen, rosalieper, JGirault, Scott_WUaS, Jonas, phabyogi, Xmlizer, Susannaanas, lxbarth, jkroll, Planemad, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Yurik, TheDJ, Jay8g ___ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org
[Wikidata-bugs] [Maniphest] T289912: Problem with white space for wiki commons filenames in wikidata sparql query service
Valeriummaximum created this task. Valeriummaximum added projects: Maps (Geoshapes), GeoData, Wikidata-Query-Service. Restricted Application added a subscriber: Aklapper. Restricted Application added a project: Discovery-Search. TASK DESCRIPTION **List of steps to reproduce** (step by step, including full links if applicable): - Query geoshapes in wikidata service: https://query.wikidata.org/#SELECT%20%3Fentity%20%3FentityLabel%20%3Fgeoshape%20WHERE%20%7B%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%20%20%3Fentity%20wdt%3AP3896%20%3Fgeoshape%0A%7D%0ALIMIT%20100 - Click on filenames with + **What happens?**: For context: GeoJson files are stored in Wiki Commons with Data:...map in their filename. Wikidata items with geoshapes will refer to the filename in Wiki Commons. When I use the query service to retrieve GeoJson geoshapes (P3896 <https://phabricator.wikimedia.org/P3896>), the query service has an issue specifically with filenames with whitespace (it replaces them with "+"), and when I click on its link, I get an error message "Our servers are currently under maintenance or experiencing a technical problem. Please try again in a few minutes". I also posted this issue here https://www.mediawiki.org/wiki/Talk:Wikidata_Query_Service#Problem_with_Commons_file_names_with_white_space **What should have happened instead?**: The query service should reproduce the correct filename in wiki Commons and then be able to redirect me to that GeoJson file. The query service should also be able to pull that GeoJson file and represent it on its map graphic. It does not have this problem for simple filenames (e.g. "Data:Antartica.map") but only for compound names (e.g. "Data:Puerto Rico.map") TASK DETAIL https://phabricator.wikimedia.org/T289912 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Valeriummaximum Cc: Aklapper, Valeriummaximum, MPhamWMF, CBogen, Alilje, Namenlos314, Gq86, Looniverse, Lucas_Werkmeister_WMDE, EBjune, Orienteerix, merbst, JGirault, Jonas, phabyogi, Xmlizer, Susannaanas, lxbarth, jkroll, Planemad, Wikidata-bugs, Jdouglas, aude, Tobias1984, Manybubbles, Yurik, TheDJ, MaxSem, Jay8g ___ Wikidata-bugs mailing list -- wikidata-bugs@lists.wikimedia.org To unsubscribe send an email to wikidata-bugs-le...@lists.wikimedia.org