Page MenuHomePhabricator

archivebot may fall into infinite loop
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue:
pwb archivebot -simulate user:miszaBot/config -lang:test -page:User_talk:DPL_bot

What happens?:
The bot loops infinitivly whil trying to find an archive page which is not full

Software version (skip for WMF-hosted wikis like Wikipedia):
Pywikibot 6.0.1+ but I guess also older releases are affected. Tested 6.0.1, 7.0.0, 7.4.0, 7.6.0

Event Timeline

Xqt changed the task status from Open to In Progress.Jul 27 2022, 7:46 AM
Xqt claimed this task.
Xqt triaged this task as Medium priority.

Change 817716 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [bugfix] use header length 0 if archive page does not exists

https://gerrit.wikimedia.org/r/817716

Change 817716 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] Fix for DiscussionPage.size()

https://gerrit.wikimedia.org/r/817716

There is a similar problem when maxarchivesize = 0T
https://test.wikipedia.org/w/index.php?title=User_talk:Ignocrates&action=history

btw. the units are not described on script's documentation

Xqt changed the task status from In Progress to Open.Jul 29 2022, 8:11 AM
Xqt removed Xqt as the assignee of this task.
Xqt raised the priority of this task from Medium to High.Aug 5 2022, 7:05 PM

There is a similar problem when maxarchivesize = 0T

That makes no sense. What about raising an exception on the encounter (during the validation)?

Xqt changed the task status from Open to In Progress.Aug 7 2022, 11:25 AM
Xqt claimed this task.

Change 820865 had a related patch set uploaded (by Xqt; author: Xqt):

[pywikibot/core@master] [bugfix] raise MalformedConfigError if 'maxarchivesize' is 0

https://gerrit.wikimedia.org/r/820865

Change 820865 merged by jenkins-bot:

[pywikibot/core@master] [bugfix] raise MalformedConfigError if 'maxarchivesize' is 0

https://gerrit.wikimedia.org/r/820865