Last modified: 2012-04-16 09:16:01 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 T29317, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27317 - When specifying a cmnamespace, other mainspace space pages are included in the cmlimit count
When specifying a cmnamespace, other mainspace space pages are included in th...
Status: RESOLVED DUPLICATE of bug 24354
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Roan Kattouw
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-11 02:22 UTC by DieBuche
Modified: 2012-04-16 09:16 UTC (History)
6 users (show)

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


Attachments

Description DieBuche 2011-02-11 02:22:13 UTC
When querying http://commons.wikimedia.org/w/api.php for 

{
action: "query",
format: "json",
gcmlimit: 13,
gcmnamespace: 6,
gcmtitle: "Category:Stereo_cards_of_Washington,_D.C.",
generator: "categorymembers",
iiprop: "url",
iiurlheight: "400",
iiurlwidth: "1500",
prop: "imageinfo"
}

I get the following return:
{"query-continue":{"categorymembers":{"gcmcontinue":"Washington Arsenal|"}}}

query.pages is missing completely.
Comment 1 John Du Hart 2011-02-13 22:12:11 UTC
It's not the period at the end that's causing it to act funny, the subcategories are being counted as part of the limit.

Example:

[[:commons:Category:Stereo_cards_of_San_Francisco]] exhibits the same behavior, http://commons.wikimedia.org/w/api.php?action=query&cmtitle=Category:Stereo_cards_of_San_Francisco&list=categorymembers&cmnamespace=6&cmlimit=5

Increasing the limit of the original query in the report reveals the images.

http://commons.wikimedia.org/w/api.php?action=query&cmtitle=Category:Stereo_cards_of_Washington,_D.C.&list=categorymembers&gcmnamespace=6&cmlimit=20

It's still an issue, just of a different kind
Comment 2 DieBuche 2011-02-14 00:04:14 UTC
Ah, thanks. I didn't have time to investigate the problem further & just took a (quick, but wrong) guess.

I think this shouldn't happen. I clearly specified cmnamespace: 6, so there's no reason to take other namespace members into count
Comment 3 Brad Jorsch 2011-02-14 00:58:50 UTC
This is a duplicate of bug 24354, which itself is a duplicate of bug 19640. In short, cmnamespace is too inefficient to do the "right" way on Wikimedia wikis, so we can either do this or disable cmnamespace completely until someone gets around to changing the database schema so cmnamespace can be done efficiently.

*** This bug has been marked as a duplicate of bug 24354 ***

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


Navigation
Links