Patches item #2921525, was opened at 2009-12-26 18:57
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2921525&group_…
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: None
Group: None
>Status: Closed
>Resolution: Accepted
Priority: 9
Private: No
Submitted By: AndreasJS (andreasjs)
>Assigned to: xqt (xqt)
Summary: Error 411 at login,py
Initial Comment:
See bug #2901213: login.py fails.
The error occurs because the server issues HTTP status code 411 for a GET request if it includes a Content-Length header.
The patch included removes this header for a GET request if the request is sent as a response to a 301 or 302 redirect.
Neither the server nor the python HTTP agent comply with rfc2616 sections 10.3.2 to 10.3.4.
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-27 15:22
Message:
done in r7830. Thanks!
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2921525&group_…
Bugs item #2908381, was opened at 2009-12-03 16:05
Message generated for change (Comment added) made by andreasjs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908381&group_…
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: None
Group: None
Status: Open
>Resolution: Fixed
Priority: 9
Private: No
Submitted By: Mauro (mauro742)
Assigned to: Nobody/Anonymous (nobody)
Summary: Reopen #2901213: login.py fails (sound an API problem)
Initial Comment:
Pywikipedia [http] trunk/pywikipedia (r7731, 2009/12/03, 18:28:57)
Python 2.5.2 (r252:60911, Jan 4 2009, 21:59:32)
[GCC 4.3.2]
When I try to edit a page I 've this error:
Updating page [[..page..]] via API
Edit token has failed. Retrying.
Getting a token.
Sleeping for 9.0 seconds, 2009-12-03 21:33:35
Updating page [[..page..]] via API
Password for user Bot on wikipedia:it: Traceback (most recent call last):
File "myscript", line 430, in
main()
File "...", line 335, in main
LP_database[timestamps[i]].MakeLogTable()
File "script", line 533, in MakeLogTable
page.put(pagetxt, action)
File "wikipedia.py", line 1595, in put
sysop = self._getActionUser(action = 'edit', restriction = self.editRestriction, sysop = sysop)
File "wikipedia.py", line 1468, in _getActionUser
self.site().forceLogin(sysop = sysop)
File "wikipedia.py", line 5265, in forceLogin
if loginMan.login(retry = True):
File "login.py", line 272, in login
self.password = wikipedia.input(u'Password for user %s on %s:' % (self.username, self.site), password = True)
File "wikipedia.py", line 8188, in input
data = ui.input(question, password)
File "terminal_interface.py", line 238, in input
text = getpass.getpass('')
File "/usr/lib/python2.5/getpass.py", line 32, in unix_getpass
old = termios.tcgetattr(fd) # a copy to save
termios.error: (22, 'Invalid argument')
If I recall login.py:
Result: 411 Length Required
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address, self.site.urlEncode(predata), sysop=self.sysop)
File "/home/mauro742/MauroBot/wikipedia.py", line 5606, in postData
f = MyURLopener.open(request)
File "/usr/lib/python2.5/urllib2.py", line 387, in open
response = meth(req, response)
File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.5/urllib2.py", line 419, in error
result = self._call_chain(*args)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/home/mauro742/MauroBot/wikipedia.py", line 8421, in http_error_302
self, req, fp, code, msg, headers)
File "/usr/lib/python2.5/urllib2.py", line 582, in http_error_302
return self.parent.open(new)
File "/usr/lib/python2.5/urllib2.py", line 387, in open
response = meth(req, response)
File "/usr/lib/python2.5/urllib2.py", line 498, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python2.5/urllib2.py", line 425, in error
return self._call_chain(*args)
File "/usr/lib/python2.5/urllib2.py", line 360, in _call_chain
result = func(*args)
File "/usr/lib/python2.5/urllib2.py", line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 411: Length Required
----------------------------------------------------------------------
>Comment By: AndreasJS (andreasjs)
Date: 2009-12-26 13:00
Message:
This is basically a server error: The server issues HTTP statys code 411
for a GET request if a Content-length header is included (this is not what
status code 411 means according to rfc2616). See patch 2921525 for a fix.
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2009-12-03 20:15
Message:
Here is some more testing with temporary lines added to wikipedia.py:
andreas-schwabs-computer:pywikipedia andreas$ svn diff wikipedia.py
Index: wikipedia.py
===================================================================
--- wikipedia.py (revision 7710)
+++ wikipedia.py (working copy)
@@ -5500,6 +5500,9 @@
while True:
try:
request = urllib2.Request(url, data, headers)
+ print url
+ print data
+ print headers
f = MyURLopener.open(request)
# read & info can raise socket.error
@@ -8287,6 +8290,7 @@
return result
def http_error_302(self, req, fp, code, msg, headers):
+ print self, req, fp, code, msg, headers
result = urllib2.HTTPRedirectHandler.http_error_302(
self, req, fp, code, msg, headers)
result.code = code
andreas-schwabs-computer:pywikipedia andreas$ python login.py -v -v
-pass:????
Pywikipediabot [http] trunk/pywikipedia (r7710, 2009/11/28, 22:35:07)
Python 2.5.2 (r252:60911, Feb 22 2008, 07:57:53)
[GCC 4.0.1 (Apple Computer, Inc. build 5363)]
WARNING: Using -v -v on login.py might leak private data. When sharing,
please double check your password is not readable and log out your bots
session.
Logging in to wikisource:el as AndreasBot
http://el.wikisource.org/w/index.php?title=%CE%95%CE%B9%CE%B4%CE%B9%CE%BA%C…
wpPassword=????&wpLoginattempt=Aanmelden%20%26%20Inschrijven&wpName=AndreasBot&wpRemember=1&wpSkipCookieCheck=1
{'Content-Length': '108', 'Content-type':
'application/x-www-form-urlencoded', 'Accept-encoding': 'gzip',
'User-agent': 'PythonWikipediaBot/1.0'}
<wikipedia.U2RedirectHandler instance at 0xfb4d78> <urllib2.Request
instance at 0xfc2508> <addinfourl at 16501616 whose fp =
<socket._fileobject object at 0xfbdb30>> 302 Moved Temporarily Date: Fri,
04 Dec 2009 01:07:20 GMT
Server: Apache
Cache-Control: private, s-maxage=0, max-age=0, must-revalidate
Set-Cookie: elwikisource_session=58328cf207535d693672ab72bedfb195; path=/;
HttpOnly
Set-Cookie: elwikisourceUserID=65; expires=Sun, 03-Jan-2010 01:07:20 GMT;
path=/; httponly
Set-Cookie: elwikisourceUserName=AndreasBot; expires=Sun, 03-Jan-2010
01:07:20 GMT; path=/; httponly
Set-Cookie: elwikisourceToken=571b5ee57ec693b6987ebaf81c66231a;
expires=Sun, 03-Jan-2010 01:07:20 GMT; path=/; httponly
Vary: Accept-Encoding,Cookie
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Location:
http://el.wikisource.org/wiki/%CE%9A%CF%8D%CF%81%CE%B9%CE%B1_%CE%A3%CE%B5%C…
Content-Encoding: gzip
Content-Length: 20
Content-Type: text/html; charset=utf-8
X-Cache: MISS from sq27.wikimedia.org
X-Cache-Lookup: MISS from sq27.wikimedia.org:3128
X-Cache: MISS from sq31.wikimedia.org
X-Cache-Lookup: MISS from sq31.wikimedia.org:80
Connection: close
Result: 411 Length Required
Traceback (most recent call last):
File "login.py", line 397, in <module>
main()
File "login.py", line 393, in main
loginMan.login()
File "login.py", line 282, in login
cookiedata = self.getCookie(api)
File "login.py", line 170, in getCookie
response, data = self.site.postData(address,
self.site.urlEncode(predata), sysop=self.sysop)
File "/Users/andreas/Desktop/WP/pywikipedia/wikipedia.py", line 5506, in
postData
f = MyURLopener.open(request)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 387, in open
response = meth(req, response)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 498, in http_response
'http', request, response, code, msg, hdrs)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 419, in error
result = self._call_chain(*args)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 360, in _call_chain
result = func(*args)
File "/Users/andreas/Desktop/WP/pywikipedia/wikipedia.py", line 8295, in
http_error_302
self, req, fp, code, msg, headers)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 582, in http_error_302
return self.parent.open(new)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 387, in open
response = meth(req, response)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 498, in http_response
'http', request, response, code, msg, hdrs)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 425, in error
return self._call_chain(*args)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 360, in _call_chain
result = func(*args)
File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/urllib2.py",
line 506, in http_error_default
raise HTTPError(req.get_full_url(), code, msg, hdrs, fp)
urllib2.HTTPError: HTTP Error 411: Length Required
andreas-schwabs-computer:pywikipedia andreas$
----------------------------------------------------------------------
Comment By: AndreasJS (andreasjs)
Date: 2009-12-03 19:26
Message:
This error occurs with certain user names, and not with others. For
example, in Greek Wikisource, the user:AndreasBot gets this error, but not
user:AndreasJS. Changing the password makes no difference. I would send my
password to a developer who wants to debug this.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2908381&group_…
Patches item #2921525, was opened at 2009-12-26 12:57
Message generated for change (Tracker Item Submitted) made by andreasjs
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2921525&group_…
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: None
Group: None
Status: Open
Resolution: None
Priority: 9
Private: No
Submitted By: AndreasJS (andreasjs)
Assigned to: Nobody/Anonymous (nobody)
Summary: Error 411 at login,py
Initial Comment:
See bug #2901213: login.py fails.
The error occurs because the server issues HTTP status code 411 for a GET request if it includes a Content-Length header.
The patch included removes this header for a GET request if the request is sent as a response to a 301 or 302 redirect.
Neither the server nor the python HTTP agent comply with rfc2616 sections 10.3.2 to 10.3.4.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2921525&group_…
Bugs item #2816205, was opened at 2009-07-03 09:02
Message generated for change (Settings changed) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2816205&group_…
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: interwiki
Group: None
>Status: Closed
Resolution: None
Priority: 6
Private: No
Submitted By: JAn (jandudik)
Assigned to: Nobody/Anonymous (nobody)
Summary: -whenneeded does not work correctly
Initial Comment:
When I run bot
interwiki.py -whenneeded -force cs:New_York_(stt) -ignore:bcl:New_Mexico
it repair ONLY cs and en, not other languages with this bad (but ignored) link
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2009-12-25 02:20
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-10 11:22
Message:
I testet
iinterwiki.py -force -whenneeded -start:Waa -lang:nv
which you reported with #2821636. But it works for me.
Is this bug still valid?
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2816205&group_…
Bugs item #2770568, was opened at 2009-04-17 11:40
Message generated for change (Comment added) made by sf-robot
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2770568&group_…
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: interwiki
Group: None
>Status: Closed
Resolution: Out of Date
Priority: 5
Private: No
Submitted By: TaBaZzz (tabazzz)
Assigned to: Nobody/Anonymous (nobody)
Summary: interwiki.py Error messages & more
Initial Comment:
hello.
performing the following command on the hebrew wikipedia:
python interwiki.py -confirm _
gives some error messages, and displaying lots of garbage (probably the coded contents of the article). here is the error message:
Getting 1 pages from wikipedia:he...
Traceback (most recent call last):
File "/home/tal/pywikipedia/pagegenerators.py", line 790, in __iter__
for loaded_page in self.preload(somePages):
File "/home/tal/pywikipedia/pagegenerators.py", line 809, in preload
wikipedia.getall(site, pagesThisSite)
File "/home/tal/pywikipedia/wikipedia.py", line 3141, in getall
_GetAll(site, pages, throttle, force).run()
File "/home/tal/pywikipedia/wikipedia.py", line 2952, in run
data = self.getData()
File "/home/tal/pywikipedia/wikipedia.py", line 3124, in getData
response, data = self.site.postForm(address, predata)
File "/home/tal/pywikipedia/wikipedia.py", line 4580, in postForm
cookies=self.cookies(sysop = sysop))
File "/home/tal/pywikipedia/wikipedia.py", line 4638, in postData
data = data.decode(self.encoding())
File "/usr/lib64/python2.5/encodings/utf_8.py", line 16, in decode
return codecs.utf_8_decode(input, errors, True)
UnicodeDecodeError: 'utf8' codec can't decode byte 0xd7 in position 3131: unexpected end of data
'utf8' codec can't decode byte 0xd7 in position 3131: unexpected end of data
version:
Pywikipedia nightly:pywikipedia (r6611, Apr 16 2009, 15:41:15)
Python 2.5.1 (r251:54863, Jun 15 2008, 18:24:56)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)]
----------------------------------------------------------------------
>Comment By: SourceForge Robot (sf-robot)
Date: 2009-12-25 02:20
Message:
This Tracker item was closed automatically by the system. It was
previously set to a Pending status, and the original submitter
did not respond within 14 days (the time period specified by
the administrator of this Tracker).
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-10 10:32
Message:
actual revision is r7755
as getData has been changed since r6611, please confirm whether this bug
is still valid.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2770568&group_…
Bugs item #2920675, was opened at 2009-12-24 13:18
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2920675&group_…
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: None
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: teplates in cosmetic_changes.py
Initial Comment:
bot incorrectly removes interwiki from template documentation:
http://cs.wikipedia.org/w/index.php?title=%C5%A0ablona:!!/doc&curid=351673&…
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2920675&group_…
Support Requests item #2920435, was opened at 2009-12-24 01:42
Message generated for change (Tracker Item Submitted) made by nobody
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2920435&group_…
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: Install Problem
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Cant login
Initial Comment:
I am running a private wiki that requires login to view pages and uses pretty urls.
When I run login.py and enter the correct password I am told "timed out
WARNING: Could not open 'http://sitename.com/wiki/index.php?title=Special:Userlogin&useskin=monobook…'. Maybe the server or
your connection is down. Retrying in 1 minutes..." . I checked the Apache access log and it says "POST /wiki/index.php?title=Special:Userlogin&useskin=monobook&action=submit HTTP/1.1" 302 -
Any help is greatly apppreciated.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603139&aid=2920435&group_…
Feature Requests item #2918596, was opened at 2009-12-21 12:04
Message generated for change (Comment added) made by multichill
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2918596&group_…
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: None
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: JAn (jandudik)
Assigned to: xqt (xqt)
Summary: - moved option
Initial Comment:
like -new goes through special:newpages there might be script for taking list of recently moved pages, check new targets and do interwiki (or someelse) on them. This would prevent long lists of articles because of mixed interwiki.
----------------------------------------------------------------------
>Comment By: Multichill (multichill)
Date: 2009-12-23 15:49
Message:
Shouldn't be to hard to build a generator around
http://nl.wikipedia.org/w/api.php?action=query&list=logevents&letype=move
Probably best to build a general log based pagegenerator with all the
options available in the api.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603141&aid=2918596&group_…
Patches item #2919950, was opened at 2009-12-23 21:39
Message generated for change (Tracker Item Submitted) made by joshparris
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2919950&group_…
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: rewrite
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Josh Parris (joshparris)
Assigned to: Nobody/Anonymous (nobody)
Summary: solve_disambiguation: add {{dn}}
Initial Comment:
In solve_disambiguation.py the attached patch adds a command to tag the ambiguous link with the Disambiguation Needed template - {{dn}} for when only someone deeply familiar with the subject - and thus watching the page - could disambiguate the link. An additional command line parameter allows the operator to skip all ambiguous links that are followed by the {{dn}} template.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603140&aid=2919950&group_…
Bugs item #2918556, was opened at 2009-12-21 10:57
Message generated for change (Comment added) made by xqt
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2918556&group_…
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: interwiki
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: JAn (jandudik)
>Assigned to: xqt (xqt)
Summary: case sensitivity
Initial Comment:
There are many questions:
What should be done? [A]ccept, [r]eject, [g]ive up / (Y)es, (n)o
most of these possibilities are case insensitive, but
for (N)one n works but N doesn't
----------------------------------------------------------------------
>Comment By: xqt (xqt)
Date: 2009-12-23 07:56
Message:
done in r7817
----------------------------------------------------------------------
Comment By: JAn (jandudik)
Date: 2009-12-22 12:10
Message:
Question when solving interwiki:
Which variant should be used [number, (n)one, (g)ive up]
When I press N instead of n bot will ask again.
G ad g both gives up.
userinterface = 'terminal' doesn't make difference with that.
----------------------------------------------------------------------
Comment By: xqt (xqt)
Date: 2009-12-22 07:56
Message:
It works for me. Could you give me the exact question/answer for which
message it wouldn't? And btw do you have any other option in your config.py
or user_config.py as this:
userinterface = 'terminal'
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=603138&aid=2918556&group_…