Blahma renamed this task from "Page.title() should encode a slash /" to "Page.title(asUrl=True) should encode also slashes".
Blahma updated the task description. (Show Details)

CHANGES TO TASK DESCRIPTION
got this submitted prematurely – will ellaborate it soonPage.title(asUrl=True) currently does not encode the slash character, because that is a default exception in the underlying quote_from_bytes. Unencoded slashes that are part of page title (e.g. "A/B_testing") are not a problem in Wikipedia article URLs, but it breaks the REST API that makes extensive use of the slash to separate its arguments. Accessing https://en.wikipedia.org/api/rest_v1/page/html/A/B_testing results in an error, while https://en.wikipedia.org/api/rest_v1/page/html/A%2FB_testing works as expected.

TASK DETAIL
https://phabricator.wikimedia.org/T184712

EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: Blahma
Cc: Aklapper, pywikibot-bugs-list, Blahma, Magul, Tbscho, rafidaslam, MayS, Mdupont, JJMC89, Avicennasis, jayvdb, Dalba, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to