Page MenuHomePhabricator

Bot should not edit when it is not logged in:
Closed, DuplicatePublic

Description

see https://de.wikipedia.org/wiki/Spezial:Beitr%C3%A4ge/79.213.29.131

Sorry, I didn't find that edit in the log but I try to remeber it: Bot was running for several days in an infinite loop. I shortly logged me in as bot on de-wiki to change some settings. Most of my bot task stopped and asked for the password to continue on both branches (core and compat) except of one. It asked for a new token and continued, but it was logged out.


Version: compat-(1.0)
Severity: normal

Details

Reference
bz62388

Event Timeline

bzimport raised the priority of this task from to High.Nov 22 2014, 2:51 AM
bzimport set Reference to bz62388.
bzimport added a subscriber: Unknown Object (????).

I also found the issue that several scripts running at the same time request wrong tokens. For example, one of my scripts patrolled abuselog and needed to be logged in as sysop all the time. The other script was run and made an edit, and the result showed up in recentchanges.

An option in user-config.py would be good. something that makes the code crashed if the user is not logged in. (we can implement that in http.py but a better place would be really good)

I set the priority high because editing while logged out can reveal IP and that's not good in case you run it from your PC.

I think this was done in
http://git.wikimedia.org/commit/pywikibot%2Fcore.git/0009fb8957a64aeeb9810c7682ef03a39a5aa592

And this request looks like a dup of bug 55068. Re-open if the problem persists.

(In reply to Sorawee Porncharoenwase from comment #1)

I also found the issue that several scripts running at the same time request
wrong tokens. For example, one of my scripts patrolled abuselog and needed
to be logged in as sysop all the time. The other script was run and made an
edit, and the result showed up in recentchanges.

Was the edit in recentchangess logged in, or logged out?

  • This bug has been marked as a duplicate of bug 55068 ***