Last modified: 2007-07-25 06:52:31 UTC

Wikimedia Bugzilla is closed!

Wikimedia has migrated from Bugzilla to Phabricator. Bug reports should be created and updated in Wikimedia Phabricator instead. Please create an account in Phabricator and add your Bugzilla email address to it.
Wikimedia Bugzilla is read-only. If you try to edit or create any bug report in Bugzilla you will be shown an intentional error message.
In order to access the Phabricator task corresponding to a Bugzilla report, just remove "static-" from its URL.
You could still run searches in Bugzilla or access your list of votes but bug reports will obviously not be up-to-date in Bugzilla.
Bug 10662 - imageinfo is not cleared for each page
imageinfo is not cleared for each page
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://commons.wikimedia.org/w/api.ph...
:
: 10670 (view as bug list)
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-07-22 20:28 UTC by Platonides
Modified: 2007-07-25 06:52 UTC (History)
2 users (show)

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


Attachments

Description Platonides 2007-07-22 20:28:18 UTC
Using imageinfo with multiple titles, the imageinfo of each page contains the page's imageinfo, *as well as all previous imageinfo*

http://commons.wikimedia.org/w/api.php?format=xml&action=query&prop=imageinfo&iiprop=timestamp|user|comment|url|size&titles=Image%3APalace%20of%20Porphyrogenitus%202007%20010.jpg|Image%3ASciamana.jpg|Image%3APalace%20of%20Porphyrogenitus%202007%20009.jpg|Image%3AArtur2.jpg|Image%3AMahoniaAquifolium003.JPG|Image%3ANinoslav%20Konstantinovic.jpeg|Image%3AMy%C3%B6hempien%20aikojen%20pyhien%20Jeesuksen%20Kristuksen%20kirkko%2C%20Turku.jpg|Image%3ANetherlands%20-%20Kleine%20Meer%20en%20Groote%20Meer%20nabij%20Zuiderwoude%20in%20Waterland.jpg|Image%3AKhakhuli3.jpg|Image%3APavillion%20%C3%B6u%20Llyod%20expo%201873.png|Image%3ABerlin%20Markthalle%20IV%20Grundriss%20Erdgeschoss%20Postcheckamt%20im%20Hof.jpg|Image%3AFraisse-sur-Agout%20Prat%20Alaric%202.JPG|Image%3ABallina%2C%20Nlle%20Galles%20du%20Sud.png|Image%3AMorris%20Tulip%20and%20Willow%20design%201873.jpg|Image%3AIndian%20Blue%20Peacock%2042.jpg|Image%3ABrasao%20saudades.jpg|Image%3AKhakhuli2.jpg|Image%3AKryptaLublin.jpg|Image%3AMilos%20Simovic.jpeg|Image%3ACane.jpg|Image%3ARipley%20map%20of%20cephalic%20index%20in%20Europe.png|Image%3AKhakhuli1.jpg|Image%3AKugeldistel.JPG|Image%3ASkrjabin%20op%2040%202.ogg|Image%3AGabas15.jpg|Image%3ANetherlands%20-%20Holysloot%20aan%20het%20Holysloter%20Die.jpg|Image%3AFraisse-sur-Agout%20Prat%20Alaric%201.JPG|Image%3AVincentVanGoghDieArlesierin1890.jpg|Image%3A%D7%A4%D7%95%D7%9C%D7%99%D7%9F%20014.jpg|Image%3AT%20de%20alvear.jpg|Image%3AArtur1.jpg|Image%3AGlucuronic%20acid%20stereochem.svg|Image%3ABandeira%20saudades.jpg|Image%3AMorris%20and%20Co%20Columbine%201876.jpg|Image%3ASretko%20Kalinic.jpeg|Image%3ADahlia001.JPG|Image%3ATao-Klarjeti.jpg|Image%3AAlberto.jpg|Image%3ATramlijn4brussel.png|Image%3AIrminsul%202.PNG|Image%3ACancha%20de%20australia%20open6.jpg|Image%3AKinderwagen%2C%20historisch.jpg|Image%3AIrminsul%201.PNG|Image%3ADuria%20Antiquior.jpg|Image%3AAltar%20mayor224.jpg|Image%3ABbkingshaylieecker.jpg


Also, non-existing pages get ALL information (independent of its position).

http://commons.wikimedia.org/w/api.php?format=xml&action=query&prop=imageinfo&iiprop=timestamp|user|comment|url|size&titles=Image%3AFoo|Image%3APalace%20of%20Porphyrogenitus%202007%20010.jpg|Image%3ASciamana.jpg
Comment 1 Brion Vibber 2007-07-23 19:17:48 UTC
*** Bug 10670 has been marked as a duplicate of this bug. ***
Comment 2 Yuri Astrakhan 2007-07-24 16:03:20 UTC
Relevant code from includes\api\ApiQueryImageInfo.php
Everything seems correct. I think there is a bug in the object returned from wfFindFile():


$title = Title :: makeTitle(NS_IMAGE, $dbKey);
$img = wfFindFile($title);
...
while($line = $img->nextHistoryLine()) { // assignment
   // get data from the $line
}

$img->resetHistory(); // cleanup
Comment 3 Yuri Astrakhan 2007-07-25 06:52:31 UTC
My bad, an undeclared php variable kept previous function call values... Ugh!
Fixed in r24372

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


Navigation
Links