Bugs item #1831698, was opened at 2007-11-14 11:44 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1831698...
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: 5 Private: No Submitted By: siebrand (siebrand) Assigned to: Nobody/Anonymous (nobody) Summary: Partial pages saved on connection reset
Initial Comment: I have gotten 2 reports of CommonsDelinker saving incomplete pages: http://bg.wikipedia.org/w/index.php?title=19_%D0%BD%D0%BE%D0%B5%D0%BC%D0%B2%... and http://ru.wikipedia.org/w/index.php?title=%D0%93%D0%BB%D0%B0%D0%B7%D0%B3%D0%...
Discussing this on IRC it was thought to originate from a connection reset. My question was why the wiki would save a page that was not sent completely. This appears to have to do with sending an 'edit token' before the edit data. If possible, this should be reversed so these mistakes cannot happen (worst case is the edit is not made).
IRC chat (freenode #pywikipediabot): [11:57] <siebrand> Bryan: big "oops": <URL at ru.wp> [11:58] <valhallasw> siebrand: looks like some connection reset [..] [11:58] <Bryan> what valhallasw said [..] [11:58] <Bryan> maybe we should change wikipedia.py such that it sends wpEditToken as last item [11:59] <Bryan> so stuff like this doesn't happen [11:59] <siebrand> Connection reset sounds logical, although, why would MediaWiki accept that? [11:59] <valhallasw> because connection closed is connection closed [11:59] <siebrand> ah, I see bryan explained that :) [12:00] <valhallasw> Bryan: sounds like a good idea in any case :) [12:00] <siebrand> indeed the bot needs to signal in some way that it is actually "done submitting" before the wiki accepts its changes. If that is the "edit token", then it may be a good idea to send that as the last item. [12:00] <valhallasw> well, mediawiki won't accept an edit without edit token [12:00] <valhallasw> and it has no way to check if the complete request has been sent [12:00] <valhallasw> so the only way to prevent saving is sending some required header last [12:01] <valhallasw> Bryan: are we not using some content-length header? that should fix the problem, too [12:01] <Bryan> no idea
----------------------------------------------------------------------
You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=603138&aid=1831698...