Page MenuHomePhabricator

[BUG] API:Imageinfo returns null for &iiprop=comment
Closed, ResolvedPublicBUG REPORT

Description

This (action=query&format=json&prop=imageinfo&titles=File%3AExample.jpg&iiprop=comment) Imageinfo API query on File:Example.jpg returns null for the comment value. The expected value for comment should be: Minor tweak to text placement; diminish image height by 1 pixel. This was working as expected until a few days ago, when presumably, something broke. Please investigate, thanks.

Event Timeline

Fastily renamed this task from API:Imageinfo returns null for &iiprop=comment to [BUG] API:Imageinfo returns null for &iiprop=comment.Sep 9 2017, 6:11 AM

@Anomie has been doing some comment-related stuff recently...

Yeah, i'm guessing this bug is related to the epic reworking of how all the editsummaries are stored. T166732: Refactor comment storage in the database and abstract access in MediaWiki and T166733: Deploy refactored comment storage

Change 376880 had a related patch set uploaded (by Legoktm; owner: Legoktm):
[mediawiki/core@master] LocalFile: Fix setting $this->description after CommentStore changes

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

I put together a patch that fixed the issue for me locally, and passes tests. How impactful is this API regression? Does it require an emergency deploy over the weekend or can it wait until Monday?

See also T175444, it seems to affect also the file history page

Change 376915 had a related patch set uploaded (by Reedy; owner: Legoktm):
[mediawiki/core@wmf/1.30.0-wmf.17] LocalFile: Fix setting $this->description after CommentStore changes

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

Change 376880 merged by jenkins-bot:
[mediawiki/core@master] LocalFile: Fix setting $this->description after CommentStore changes

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

Change 376915 merged by jenkins-bot:
[mediawiki/core@wmf/1.30.0-wmf.17] LocalFile: Fix setting $this->description after CommentStore changes

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

Mentioned in SAL (#wikimedia-operations) [2017-09-09T20:41:45Z] <legoktm@tin> Synchronized php-1.30.0-wmf.17/includes/filerepo/file/LocalFile.php: Fix issues related to comments and files in UI and API - T175443 T175444 (duration: 00m 46s)

Legoktm claimed this task.

This should be fixed now. Cached entries for images on Commons might take a while to invalidate though.

Restricted Application changed the subtype of this task from "Task" to "Bug Report". · View Herald TranscriptOct 16 2020, 5:39 PM