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
TitleReferenceAuthorSource BranchDest Branch
Fix documentation site menurepos/releng/blubber!78kbachvitepress-menu-structuremain
Fix logo in vitepress, add syntax highlighting to code samplerepos/releng/blubber!77kbachvitepress-theme-fixesmain
Fix loading of assets in Blubber documentation on doc.wikimedia.orgrepos/releng/blubber!76kbachvitepress-fixmain
Add repos/releng/blubber to allowed_projectsrepos/releng/docpub!19dancymain-I718681cdf968f5165cd6375d4d30b12233a6b6b3main
Improve autogenerated documentation and introduce Vitepressrepos/releng/blubber!74kbachmain-I15a017adbfd7859ebe3442750f3ffba954239a26main
Customize query in GitLab

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.