Xqt created this task. Xqt added a subscriber: Xqt. Xqt added a project: pywikibot-redirect.py. Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION After solving T88800 with https://gerrit.wikimedia.org/r/#/c/189022/ we get in InvalidTitleError:
command: pwb.py redirect br -always -lang:en ```
User:SoledadKabocha/sandbox/intentionally broken redirect poundsign <<<
## Traceback (most recent call last): File "C:\Pywikipedia\ssh\pywikibot\core\pwb.py", line 223, in <module> run_python_file(filename, argv, argvu, file_package) File "C:\Pywikipedia\ssh\pywikibot\core\pwb.py", line 82, in run_python_file main_mod.__dict__) File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 794, in <mo dule> main() File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 791, in main bot.run() File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 692, in run
self.delete_broken_redirects() File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 408, in delete_broken_redirects self.delete_1_broken_redirect(redir_name) File "C:\Pywikipedia\ssh\pywikibot\core\scripts\redirect.py", line 433, in delete_1_broken_redirect targetPage.get() File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\tools.py", line 787, in wrapper return obj(*__args, **__kw) File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\page.py", line 356, in get self._getInternals(sysop) File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\page.py", line 380, in _getInternals self.site.loadrevisions(self, getText=True, sysop=sysop) File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\page.py", line 140, in site return self._link.site File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\page.py", line 4520, in site
self.parse() File "C:\Pywikipedia\ssh\pywikibot\core\pywikibot\page.py", line 4498, in parse raise pywikibot.InvalidTitle("The link does not contain a page " pywikibot.exceptions.InvalidTitle: The link does not contain a page title <class 'pywikibot.exceptions.InvalidTitle'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
c:\Pywikipedia\ssh\pywikibot\core> ``` hint: name1 of sametitle() is empty
TASK DETAIL https://phabricator.wikimedia.org/T88801
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: pywikipedia-bugs, Xqt, Aklapper
Xqt claimed this task. Xqt set Security to none.
TASK DETAIL https://phabricator.wikimedia.org/T88801
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: pywikipedia-bugs, Xqt, Aklapper
XZise added a project: pywikibot-core. XZise added a subscriber: XZise.
TASK DETAIL https://phabricator.wikimedia.org/T88801
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, XZise Cc: XZise, Xqt, Aklapper, jayvdb, pywikipedia-bugs
XZise lowered the priority of this task from "Normal" to "Low". XZise added a comment.
Lowered the priority as the chances of this occurring aren't very high. At least I don't know how such redirects are created. The basic problem is that when a redirect is only the fragment (like `[[#sth]]`), there is no link title which is an invalid title. I'm not sure if this can be considered a problem of the Link class, as a link without a page is valid but to the own page.
TASK DETAIL https://phabricator.wikimedia.org/T88801
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, XZise Cc: XZise, Xqt, Aklapper, jayvdb, pywikipedia-bugs
jayvdb added a subscriber: jayvdb.
TASK DETAIL https://phabricator.wikimedia.org/T88801
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, jayvdb Cc: jayvdb, XZise, Xqt, Aklapper, pywikipedia-bugs
gerritbot added a subscriber: gerritbot. gerritbot added a project: Patch-For-Review. gerritbot added a comment.
Change 189028 had a related patch set uploaded (by John Vandenberg): [bugfix] Pass invalid title error in redirect.py
https://gerrit.wikimedia.org/r/189028
https://phabricator.wikimedia.org/tag/patch-for-review/
TASK DETAIL https://phabricator.wikimedia.org/T88801
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, gerritbot Cc: gerritbot, jayvdb, XZise, Xqt, Aklapper, pywikipedia-bugs
gerritbot added a comment.
Change 189028 merged by jenkins-bot: [bugfix] Ignore invalid title error in redirect.py
https://gerrit.wikimedia.org/r/189028
TASK DETAIL https://phabricator.wikimedia.org/T88801
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt, gerritbot Cc: gerritbot, jayvdb, XZise, Xqt, Aklapper, pywikipedia-bugs
Xqt closed this task as "Resolved".
TASK DETAIL https://phabricator.wikimedia.org/T88801
REPLY HANDLER ACTIONS Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Xqt Cc: gerritbot, jayvdb, XZise, Xqt, Aklapper, pywikipedia-bugs
pywikipedia-bugs@lists.wikimedia.org