Last modified: 2014-09-02 16:07:56 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 T71186, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 69186 - Option -redirect in "add" mode does not change outcome
Option -redirect in "add" mode does not change outcome
Status: RESOLVED FIXED
Product: Pywikibot
Classification: Unclassified
category.py (Other open bugs)
core-(2.0)
All All
: Unprioritized normal
: ---
Assigned To: Pywikipedia bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-08-06 14:36 UTC by Fabian
Modified: 2014-09-02 16:07 UTC (History)
1 user (show)

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


Attachments

Description Fabian 2014-08-06 14:36:06 UTC
The default behaviour is with scripts/category.py when it's adding a category, that redirecting pages are skipped, unless "-redirect" is set.

Currently this option doesn't change things because as described in bug #69185 the content of the redirect target is read but not properly handed to the next stage. Even if that is fixed, the next problem is that it only checks if it's a redirect on load and not on save, where it's throwing it's hand up.

The fix is simply to change the Page instance to the redirect target if the option is set.
Comment 1 Gerrit Notification Bot 2014-08-06 15:07:18 UTC
Change 152107 had a related patch set uploaded by XZise:
Category.py script handles empty and redirect pages

https://gerrit.wikimedia.org/r/152107
Comment 2 Gerrit Notification Bot 2014-08-18 18:13:08 UTC
Change 152107 merged by jenkins-bot:
Category.py script handles empty and redirect pages

https://gerrit.wikimedia.org/r/152107
Comment 3 Ricordisamoa 2014-09-01 01:39:10 UTC
https://gerrit.wikimedia.org/r/152107 merged, is this fixed?

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


Navigation
Links