[Pywikipedia-l] [ pywikipediabot-Bugs-1985308 ] Bot does not properly stay logged in (cookies)

SourceForge.net noreply at sourceforge.net
Wed Jul 16 00:24:33 UTC 2008


Bugs item #1985308, was opened at 2008-06-05 12:39
Message generated for change (Comment added) made by melancholie
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1985308&group_id=93107

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: Melancholie (melancholie)
Date: 2008-07-16 02: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 22: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 10: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 13: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 13: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 13: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&group_id=93107



More information about the Pywikipedia-l mailing list