Xqt added a comment.

This bug is still valid. The following occurred:

1. page has been written by a user [1]
2. bot reads that page (via preloading)
3. page has been changed by same user [2]
4. bot checks whether page has been changed and saves it [3] but it was the old 
text

[1] 
https://de.wikipedia.org/w/index.php?title=Wikipedia%3AAdminwiederwahl%2FHolmium&type=revision&diff=151344424&oldid=151254490
[2] 
https://de.wikipedia.org/w/index.php?title=Wikipedia:Adminwiederwahl/Holmium&diff=next&oldid=151344424
[3] 
https://de.wikipedia.org/w/index.php?title=Wikipedia:Adminwiederwahl/Holmium&diff=next&oldid=151431668

the code looks like

  text = page.get()
  restrictions = page.getRestrictions()
  head = ''
  text = head + text
  old = page.get()
  if text != old
  pywikibot.showDiff(old, text)
  page.put(text)

The second page.get() wasn't forced; it's unclear why it was reloading from 
live wiki.


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

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

To: Xqt
Cc: saper, Krinkle, gerritbot, Reedy, Nnemo, XZise, Mpaa, jayvdb, 
pywikibot-bugs-list, Xqt, Aklapper



_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs

Reply via email to