https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
Web browser: --- Bug ID: 55315 Summary: category.py breaks articles with includeonly and noinclude Product: Pywikibot Version: unspecified Hardware: All OS: All Status: NEW Severity: normal Priority: Unprioritized Component: General Assignee: Pywikipedia-bugs@lists.wikimedia.org Reporter: legoktm.wikipedia@gmail.com Classification: Unclassified Mobile Platform: ---
Originally from: http://sourceforge.net/p/pywikipediabot/bugs/822/ Reported by: djbarrett Created on: 2008-11-19 19:07:20 Subject: category.py breaks articles with includeonly and noinclude Original description: This is a DEADLY bug that wrecks wiki structure.
I ran "python category.py" to rename one category to another. For articles containing <includeonly> and <noinclude> statements, pywikipedia made incorrect changes. When renaming category B to category C, the text:
<includeonly>[[Category:A]]</includeonly><noinclude>[[Category:B]]</noinclude>
becomes:
<includeonly></includeonly><noinclude></noinclude> [[Category:C]]
In other words, it completely removed category A, and when renaming category B, placed the new category tag outside the noinclude tags.
This wrecked a complicated category structure.
$ python version.py Pywikipedia [http] trunk/pywikipedia (r6088, Nov 12 2008, 11:19:15) Python 2.4.3 (#1, May 24 2008, 13:57:05) [GCC 4.1.2 20070626 (Red Hat 4.1.2-14)]
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
--- Comment #1 from Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com --- - **summary**: category.py fails with includeonly and noinclude --> category.py breaks articles with includeonly and noinclude
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
Kunal Mehta (Legoktm) legoktm.wikipedia@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- See Also| |https://sourceforge.net/p/p | |ywikipediabot/bugs/822
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
--- Comment #2 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 88885 had a related patch set uploaded by Mpaa: Bug 55315 - category.py breaks articles with includeonly and noinclude
https://gerrit.wikimedia.org/r/88885
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
Gerrit Notification Bot gerritadmin@wikimedia.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |PATCH_TO_REVIEW
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
--- Comment #3 from Gerrit Notification Bot gerritadmin@wikimedia.org --- Change 89026 had a related patch set uploaded by Mpaa: Bug 55315 - category.py breaks articles with includeonly and noinclude
https://gerrit.wikimedia.org/r/89026
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
Amir Ladsgroup ladsgroup@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |ladsgroup@gmail.com Component|General |category.py
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
--- Comment #4 from Mpaa mpaa.wiki@gmail.com --- *** Bug 55300 has been marked as a duplicate of this bug. ***
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
--- Comment #5 from Mpaa mpaa.wiki@gmail.com --- *** Bug 55221 has been marked as a duplicate of this bug. ***
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
--- Comment #6 from Mpaa mpaa.wiki@gmail.com --- *** Bug 55328 has been marked as a duplicate of this bug. ***
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
Merlijn van Deen valhallasw@arctus.nl changed:
What |Removed |Added ---------------------------------------------------------------------------- Priority|Unprioritized |High Severity|normal |critical
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |info@gno.de, | |jayvdb@gmail.com
--- Comment #8 from John Mark Vandenberg jayvdb@gmail.com --- This patch is still not merged: https://gerrit.wikimedia.org/r/#/c/89026/
https://bugzilla.wikimedia.org/show_bug.cgi?id=55315
John Mark Vandenberg jayvdb@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- Blocks| |70936
pywikipedia-bugs@lists.wikimedia.org