Last modified: 2014-11-01 07:18:41 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T57306, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55306 - Problems with revdelete
Problems with revdelete
Status: NEW
Product: Pywikibot
Classification: Unclassified
General (Other open bugs)
compat-(1.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
: testme
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-10-05 05:01 UTC by Kunal Mehta (Legoktm)
Modified: 2014-11-01 07:18 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Kunal Mehta (Legoktm) 2013-10-05 05:01:20 UTC
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/937/
Reported by: platonides
Created on: 2009-05-11 22:26:00
Subject: Problems with revdelete
Original description:
Wikipedia is now using revdelete in everyday use.
This means that content, editor or summaries may be selectively deleted.
pywikipediabot isn't prepared to handle that, and will break throwing an exception, even if that field isn't needed for the specific action being done.
I encountered it with instances of <contributor deleted="deleted"/> but will likely happen with all deleted fields.

If you use -page: generator where it has the contributor deleted, it'll throw from 
xmlreader.py, line 180, in endElement
text, self.username,
AttributeError: MediaWikiXmlHandler instance has no attribute 'username'
MediaWikiXmlHandler instance has no attribute 'username'


If you were using a -xml: generator, it's much more cyptic:
xmlreader.py", line 64, in \_\_init\_\_
self.username = username.strip\(\)
AttributeError: 'bool' object has no attribute 'strip'
'bool' object has no attribute 'strip'

Using r6870.
Comment 1 Kunal Mehta (Legoktm) 2013-10-05 05:01:22 UTC
Example of XML failing from wikipedia
Comment 2 John Mark Vandenberg 2014-11-01 07:18:41 UTC
Problem reported appears to have been while using 'compat' / 'trunk', but it needs to be retested with core.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links