Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
8.6.5
-
None
-
None
-
Unknown
-
Description
When a jira query via the jira macro is embedded in a XWiki page and the query gets a status value back that is not a default status value, then a broken image link and the american text is displayed in the page.
See
The code-snippet from the page:
{{jira fields="status, assignee, summary, link" id="jira"}} ISCM-281 ISCM-212 {{/jira}}
The following is inserted in this case for the status value:
<td><img src="https://jira.companydomain.com/" alt="To-do" title="To-do"/></td>
the string "https://jira.<companydomain>.com/" respresents the configured jira instance for the id "jira" and i have replaced the original company domain with companydomain.
The result is not only a bad looking page with icons for broken image links but also that the XWiki-Page can't be exported because of the broken image links!
Stacktrace of the export failure for the page:
[...]
Caused by: com.xpn.xwiki.XWikiException: Error number 12002 in 12: Exception while exporting pdf
at com.xpn.xwiki.pdf.impl.PdfExportImpl.createException(PdfExportImpl.java:504)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.renderXSLFO(PdfExportImpl.java:268)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportXHTML(PdfExportImpl.java:219)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.exportHtml(PdfExportImpl.java:172)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.export(PdfExportImpl.java:158)
at com.xpn.xwiki.web.ExportAction.export(ExportAction.java:194)
at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:98)
... 44 more
Caused by: javax.xml.transform.TransformerException: java.lang.IllegalStateException: image is not a PCX file, invalid encoding 10
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:784)
at java.xml/com.sun.org.apache.xalan.internal.xsltc.trax.TransformerImpl.transform(TransformerImpl.java:371)
at com.xpn.xwiki.internal.pdf.FOPXSLFORenderer.render(FOPXSLFORenderer.java:154)
at com.xpn.xwiki.pdf.impl.PdfExportImpl.renderXSLFO(PdfExportImpl.java:264)
... 49 more
Caused by: java.lang.IllegalStateException: image is not a PCX file, invalid encoding 10
[...]
Please fix this.
I don't understand why the jira macro even tries to display icon for status values. Even for the default status values there are some icon shown which cannot be configured anywhere and in Jira the status is displayed as text. So why is the jira macro trying to display icons instead of the text of the status value?