Bugs item #1985308, was opened at 2008-06-05 10:39 Message generated for change (Comment added) made by nobody You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1985308...
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: General Group: None Status: Open Resolution: None Priority: 6 Private: No Submitted By: Melancholie (melancholie) Assigned to: Nobody/Anonymous (nobody) Summary: Bot does not properly stay logged in (cookies)
Initial Comment: My bot (r5514) does not stay properly logged in!
My first thought was this is because of the API_login, but it happens also for the normal login method. Is this maybe caused by SUL?
Or maybe by the following change? http://svn.wikimedia.org/viewvc/pywikipedia?view=rev&revision=5514
See fa.wikipedia.org/wiki/_:MelancholieBot#IP_contribution
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2008-08-18 08:11
Message: Logged In: NO
It's odd, but the bug is intermittent and not all the wikis are affected. Most affected wikis are: ast, da, de, ja, he, ka, ko, mk, rmy, ro, sr, tr. Is there any way to definitely fix this bug?
----------------------------------------------------------------------
Comment By: Melancholie (melancholie) Date: 2008-07-17 12:58
Message: Logged In: YES user_id=2089773 Originator: YES
For this, please see the comment of sswierkosz (at the very bottom)!
It's best to delete all login.data first, then run your bot without logging out from your bot account by using a web browser in parallel.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2008-07-17 12:05
Message: Logged In: NO
Thanks for the hint. The bot doesn't asks for password now but it seems like it still accidentally makes some edits under IP address. And it overwrites login.data files with every login/edit, so the bug is still there and needs to be fixed.
----------------------------------------------------------------------
Comment By: Melancholie (melancholie) Date: 2008-07-16 00:24
Message: Logged In: YES user_id=2089773 Originator: YES
The easiest and best workaround is to use a password file!
Add the line password_file = "yourFileName" to your user-config.py
Provide yourFileName with the following line(s): ("yourBot", "yourPassword")
Login and re-login is done automatically then.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody) Date: 2008-07-15 20:21
Message: Logged In: NO
the bot asks for a password every time it tries to save a page. "centralauth_Token" and "centralauth_Session" values in xxx-login.data files change every time, and the bot doesn't stay logged in. any workaround?
----------------------------------------------------------------------
Comment By: Carsrac (carsrac) Date: 2008-06-06 08:38
Message: Logged In: YES user_id=2066902 Originator: NO
I have also problems. I need constantly enter in my password for several wiki's and if I do it the bot makes tha edit under my ip adres instead of username of the bot. The wiki that are effected are fr, ro, be, nds-nl, af, hif, sah, srn. My ip adress is 213.132.164.186 and my bot user name is CarsracBot. As you all know may IW bots do not any edits under its ip adress. So I think this bug will effect very likely a lot of bots running with pywikipedia script.
----------------------------------------------------------------------
Comment By: Szymon wierkosz (sswierkosz) Date: 2008-06-05 11:25
Message: Logged In: YES user_id=2022153 Originator: NO
I don't know if this is correct behavior, but it is certainly annoying.
----------------------------------------------------------------------
Comment By: Melancholie (melancholie) Date: 2008-06-05 11:20
Message: Logged In: YES user_id=2089773 Originator: YES
@sswierkosz: Yes, maybe that could be the reason. MediaWiki bug?
----------------------------------------------------------------------
Comment By: Szymon wierkosz (sswierkosz) Date: 2008-06-05 11:07
Message: Logged In: YES user_id=2022153 Originator: NO
I noticed that if you log out all sessions are destroyed, not only current. Maybe you logged in and then logged out using your bot account, so its cookies are not valid anymore.
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1985308...
pywikipedia-l@lists.wikimedia.org