Last modified: 2007-05-21 00:10:26 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 T11970, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 9970 - Different return types depending on whether there is a result
Different return types depending on whether there is a result
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
API (Other open bugs)
unspecified
All All
: Normal normal (vote)
: ---
Assigned To: Nobody - You can work on this!
http://en.wikipedia.org/w/api.php?act...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-05-19 22:09 UTC by Bryan Tong Minh
Modified: 2007-05-21 00:10 UTC (History)
1 user (show)

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


Attachments

Description Bryan Tong Minh 2007-05-19 22:09:11 UTC
A call to imageusage which returns an non empty return set gives a dict object, while an empty return set returns an empty list:

Empty:
http://en.wikipedia.org/w/api.php?action=query&format=jsonfm&list=imageusage&titles=Image:Israeli_Army_chopper_flying_to_Lebanon_Aug_11_2006_1.jpg
		"imageusage": [
			
		]

Non empty:
http://commons.wikimedia.org/w/api.php?action=query&format=jsonfm&list=imageusage&titles=Image:Israeli_Army_chopper_flying_to_Lebanon_Aug_11_2006_1.jpg
		"imageusage": {
			"1047480": {
				"pageid": 1047480,
				"ns": 6,
				"title": "Image:Israeli Army chopper flying to Lebanon Aug 11 2006 1.jpg"
			}
		}
Comment 1 Yuri Astrakhan 2007-05-21 00:10:26 UTC
fixed in r22292

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


Navigation
Links