Last modified: 2013-09-04 11:51:27 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 T31581, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 29581 - Category {type}from returns false navigation links
Category {type}from returns false navigation links
Status: NEW
Product: MediaWiki
Classification: Unclassified
Categories (Other open bugs)
1.17.x
All All
: Low minor (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-06-25 15:04 UTC by Subfader
Modified: 2013-09-04 11:51 UTC (History)
2 users (show)

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


Attachments

Description Subfader 2011-06-25 15:04:16 UTC
If pagefrom is before the first page in that cat, unecessary navigation links are added
http://www.mediawiki.org/wiki/Category:Extensions?pagefrom=0

Not that it doesn't need to appear when below 200 pages in the cat, the "Previous 200" doesn't need to be linked at all:

http://en.wikipedia.org/w/index.php?title=Category:Container_categories&from=0

If this behaviour saves a query and db load - fine with me tho.
Comment 1 Bawolff (Brian Wolff) 2011-06-25 21:56:11 UTC
The previous 200 links are required, because there are entries that start before 0, so we need to be able to navigate to those entries.

(Whats really confusing is http://www.mediawiki.org/w/index.php?title=Category:Extensions&pageuntil=%20 has no entires in the pages section)
Comment 2 Subfader 2011-06-25 22:46:22 UTC
My example was bad because there relly were pages before 0. Better:

http://www.mediawiki.org/wiki/Category:Extensions_with_no_license_specified (First page is "Extension:ABC")

If there was a navi box and you clicked "0" you'd be linked to http://www.mediawiki.org/w/index.php?title=Category:Extensions_with_no_license_specified&pagefrom=0

Now "previous 200" is linked. Click it. Result:

"This category currently contains no pages or media."

Fatal error is user brain. Result may be correct but "previous 200" shouldn't be linked since there is no content.

Last page test: http://www.mediawiki.org/w/index.php?title=Category:Extensions_with_no_license_specified&pagefrom=z (Last page is "Extension:Zodiac")

http://www.mediawiki.org/w/index.php?title=Category:Extensions_with_no_license_specified&pagefrom=zp rsults in "This category currently contains no pages or media." (correct).
Comment 3 Bawolff (Brian Wolff) 2011-06-25 22:52:20 UTC
Oh, I see what you mean. Yeah, that'd take an extra (or actually 3 extra) db queries to check, but they'd be cheap queries, so probably not that big a deal
Comment 4 Mark A. Hershberger 2012-05-28 17:56:37 UTC
Lowering priority on high priority bugs that have a low severity

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


Navigation
Links