Shubinator created this task.
Shubinator added a project: Pywikibot.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
**Code snippet to reproduce**
def repro_ipv6_crash() -> None:
user = pywikibot.User(pywikibot.Site(),
'2600:1700:5b20:da0:98b2:b6b4:c36e:62bf')
page_usertalk = user.getUserTalkPage()
print(page_usertalk.isRedirectPage())
**List of steps to reproduce** (step by step, including full links if
applicable):
1. Run the above code snippet with a bot setup for English Wikipedia
**What happens?**: Crash
File
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/page/_pages.py",
line 768, in isRedirectPage
return self.site.page_isredirect(self)
File
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/site/_apisite.py",
line 1318, in page_isredirect
self.loadpageinfo(page)
File
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/site/_apisite.py",
line 1228, in loadpageinfo
self._update_page(page, query)
File
"/mnt/nfs/labstore-secondary-tools-project/pywikibot/public_html/core_stable/pywikibot/site/_apisite.py",
line 1201, in _update_page
raise InconsistentTitleError(page, pageitem['title'])
pywikibot.exceptions.InconsistentTitleError: Query on [[en:User
talk:2600:1700:5b20:da0:98b2:b6b4:c36e:62bf]] returned data on 'User
talk:2600:1700:5B20:DA0:98B2:B6B4:C36E:62BF'
CRITICAL: Exiting due to uncaught exception <class
'pywikibot.exceptions.InconsistentTitleError'>
**What should have happened instead?**: No crash.
TASK DETAIL
https://phabricator.wikimedia.org/T306291
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Shubinator
Cc: Aklapper, pywikibot-bugs-list, Shubinator, Jyoo1011, JohnsonLee01, SHEKH,
Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, Mdupont, JJMC89,
Dvorapa, Altostratus, Avicennasis, mys_721tx, jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]