Dominicbm added a comment.
In T345786#9148030 <https://phabricator.wikimedia.org/T345786#9148030>, @JJMC89 wrote: > `#` is not permitted in titles. See mw:Manual:Page title#Invalid page titles <https://www.mediawiki.org/wiki/Manual:Page_title#Invalid_page_titles>. Yes, this is part of the problem, surely. That `#` isn't permitted in titles isn't in question. But it should either raise `InvalidTitleError` like other characters (like '[') do, or should normalize it, like the MediaWiki API does when you use this in page titles. (For example, upload a file with the name I gave, and it gets normalized to `-` by the Wikimedia Commons, rather than returning any error at all.) Instead, it just produces seemingly buggy behavior. As I said, it resulted in me uploading pages to the wrong title, since it didn't either raising an error I could handle or normalize the character correctly. TASK DETAIL https://phabricator.wikimedia.org/T345786 EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/ To: Dominicbm Cc: JJMC89, Aklapper, pywikibot-bugs-list, Dominicbm, PotsdamLamb, Jyoo1011, JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, jayvdb, Masti, Alchimista
_______________________________________________ pywikibot-bugs mailing list -- [email protected] To unsubscribe send an email to [email protected]
