Page MenuHomePhabricator

prop=imageinfo: give empty tag for files without metadata
Open, LowestPublic

Description

For files without metadata the api shows:

<imageinfo>
  <ii metadata="" />
</imageinfo>

It is possible to change this to

<imageinfo>
  <ii>
    <metadata />
  </ii>
</imageinfo>

Or an other style? The current is wrong and bad to detect.

Thanks.


Version: 1.20.x
Severity: normal
URL: http://commons.wikimedia.org/w/api.php?action=query&prop=imageinfo&titles=File%3AThe%20Sundeck%20On%20L'art%20de%20Vivre%20Hotel%20Barge.jpg%7CFile%3APoweredby%20mediawiki%2088x31.png&iiprop=metadata

Details

Reference
bz33226

Event Timeline

bzimport raised the priority of this task from to Lowest.Nov 22 2014, 12:09 AM
bzimport set Reference to bz33226.
bzimport added a subscriber: Unknown Object (MLST).

Change 116291 had a related patch set uploaded by Umherirrender:
return array on prop=imageinfo for empty metadata

https://gerrit.wikimedia.org/r/116291

Change 116291 abandoned by Umherirrender:
return array on prop=imageinfo for empty metadata

Reason:
Backward compatibility issue

https://gerrit.wikimedia.org/r/116291

Seems to be unfixable without versioned api (see blocking bug 38891), setting Importance to Lowest to avoid a WONTFIX.