Last modified: 2013-12-04 02:10:22 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T59299, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 57299 - Missing SVG image in parsoid: Bug in PHP imageinfo API?
Missing SVG image in parsoid: Bug in PHP imageinfo API?
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-11-20 11:42 UTC by Derk-Jan Hartman
Modified: 2013-12-04 02:10 UTC (History)
3 users (show)

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


Attachments

Description Derk-Jan Hartman 2013-11-20 11:42:32 UTC
The PHP expanded template generates on: https://en.wikipedia.org/wiki/Algeria

<tr>
<td align="center" style="width:58%; vertical-align:middle;">[[File:Flag of Algeria.svg|125px|border|alt=|Flag of Algeria]]</td>
<td align="center" style="width:auto;vertical-align:middle;">[[File:Algeria emb (1976).svg |85px |alt= |Emblem of Algeria]]</td>
</tr>

In Parsoid this SVG Emblem image is missing:
http://parsoid.wmflabs.org/enwiki/Algeria?oldid=582506391

The <td> that should contain it is empty.
Comment 1 Gabriel Wicke 2013-12-04 02:10:22 UTC
This might be related to that file having a different name on commons: https://en.wikipedia.org/wiki/File:Algeria_emb_(1976).svg is actually
https://commons.wikimedia.org/wiki/File:Seal_of_Algeria.svg

The image info returned from enwiki is not very helpful though:

{
  "query": {
    "pages": {
      "-1": {
        "ns": 6,
        "title": "File:Algeria emb (1976).svg",
        "missing": "",
        "imagerepository": ""
      }
    }
  }
}

For comparison, this is the info returned for [[File:Flag of Algeria.svg]], also from commons:

{
  "query-continue": {
    "imageinfo": {
      "iistart": "2013-03-02T15:06:32Z"
    }
  },
  "query": {
    "pages": {
      "-1": {
        "ns": 6,
        "title": "File:Flag of Algeria.svg",
        "missing": "",
        "imagerepository": "shared",
        "imageinfo": [
          {
            "size": 954,
            "width": 900,
            "height": 600,
            "url": "http://upload.wikimedia.org/wikipedia/commons/7/77/Flag_of_Algeria.svg",
            "descriptionurl": "http://commons.wikimedia.org/wiki/File:Flag_of_Algeria.svg"
          }
        ]
      }
    }
  }
}

This might actually be a bug in the PHP API.

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


Navigation
Links