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(), '2409:40f3:2b:72d:8000::')
        page_usertalk = user.getUserTalkPage()
        print(page_usertalk.isRedirectPage())
  
  **Steps to replicate the issue** (include links if applicable):
  
  1. Run the above code snippet with a bot setup for English Wikipedia
  
  **What happens?**: Crash
  
    Traceback (most recent call last):
      File "scratch.py", line 40, in main
        repro_ipv6_crash()
      File "scratch.py", line 36, in repro_ipv6_crash
        print(page_usertalk.isRedirectPage())
      File 
"D:\Python\Pywikibot\2022-07-22-core_stable\core_stable\pywikibot\page\_pages.py",
 line 745, in isRedirectPage
        return self.site.page_isredirect(self)
      File 
"D:\Python\Pywikibot\2022-07-22-core_stable\core_stable\pywikibot\site\_apisite.py",
 line 1362, in page_isredirect
        self.loadpageinfo(page)
      File 
"D:\Python\Pywikibot\2022-07-22-core_stable\core_stable\pywikibot\site\_apisite.py",
 line 1272, in loadpageinfo
        self._update_page(page, query)
      File 
"D:\Python\Pywikibot\2022-07-22-core_stable\core_stable\pywikibot\site\_apisite.py",
 line 1245, in _update_page
        raise InconsistentTitleError(page, pageitem['title'])
    pywikibot.exceptions.InconsistentTitleError: Query on [[en:User 
talk:2409:40F3:2B:72D:8000::]] returned data on 'User 
talk:2409:40F3:2B:72D:8000:0:0:0'
    CRITICAL: Exiting due to uncaught exception <class 
'pywikibot.exceptions.InconsistentTitleError'>
  
  **What should have happened instead?**: No crash.
  
  **Other information** (browser name/version, screenshots, etc.): Reproes on 
latest `stable` on Toolforge. Note similarities with T306291 
<https://phabricator.wikimedia.org/T306291>.

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

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

To: Shubinator
Cc: Aklapper, pywikibot-bugs-list, Shubinator, PotsdamLamb, Jyoo1011, 
JohnsonLee01, SHEKH, Dijkstra, Khutuck, Zkhalido, Viztor, Wenyi, Tbscho, MayS, 
Framawiki, Mdupont, JJMC89, Dvorapa, Altostratus, Avicennasis, mys_721tx, Xqt, 
jayvdb, Masti, Alchimista
_______________________________________________
pywikibot-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to