egardner added subscribers: matthiasmullie, egardner.
egardner added a comment.


  This error is happening in SDC code 
<https://github.com/wikimedia/mediawiki-extensions-WikibaseMediaInfo/blob/master/src/View/MediaInfoEntityStatementsView.php#L424-L442>
 (`MediaInfoEntityStatementsView->formatSnak()`, but that code ultimately calls 
the Wikibase Snakformatter. The relevant part of our code has not changed in a 
while, FYI.
  
  Seems like one of the following things could be happening here:
  
  - This could be a case of bad data for this particular file 
<https://test-commons.wikimedia.org/wiki/File:Broadcom_BCM92070MD_-_BCM20702-2427a.jpg>
 (not sure how to verify that)
  - The SDC code may need to be updated to include some additional guard to 
prevent it from even trying to attempt to format certain kinds of bad data (but 
then what should happen instead?)
  - The issue may be with the underlying SnakFormatter in Wikibase instead, 
especially if that code has changed more recently.
  
  Here is the entity data for the relevant page (thanks @matthiasmullie): 
https://test-commons.wikimedia.org/wiki/Special:EntityData/M778.json. The stack 
trace implies that the problem may be qualifier-related, and there is only one 
set of `qualifiers` in the data (they are attached to `P180`, the depicts 
statement). Do we have a qualifier of value-type `item` where a string is 
expected?

TASK DETAIL
  https://phabricator.wikimedia.org/T272508

EMAIL PREFERENCES
  https://phabricator.wikimedia.org/settings/panel/emailpreferences/

To: egardner
Cc: egardner, matthiasmullie, MarkTraceur, WMDE-leszek, RhinosF1, Ladsgroup, 
Aklapper, brennen, CBogen, Akuckartz, darthmon_wmde, Nandana, Lahi, Gq86, 
Ramsey-WMF, GoranSMilovanovic, QZanden, LawExplorer, _jensen, rosalieper, 
Scott_WUaS, Jonas, Verdy_p, Wikidata-bugs, aude, Ricordisamoa, Lydia_Pintscher, 
Jdforrester-WMF, Mbch331, Rxy, Jay8g
_______________________________________________
Wikidata-bugs mailing list
Wikidata-bugs@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikidata-bugs

Reply via email to