Report Image Macro doesn't work anymore as expected

  • 1
  • Problem
  • Updated 2 years ago

After update the Reporting Plugin (form 5.x to 6.x) the report image macro doesn't work as expected. It only shows a image not found symbol.

As report image key I use -> content:icon

How can I display the usual output from 5.x?

Photo of Maik Winter

Maik Winter

  • 6 Posts
  • 0 Reply Likes

Posted 2 years ago

  • 1
Photo of Mervyn Toh

Mervyn Toh, Alum

  • 117 Posts
  • 7 Reply Likes
Hi Maik,

Can you please provide us the versions of your Confluence and Reporting? Besides, can you please provide us the storage format of the affected page as well? You can get the storage format of the page via:
Menu (at the top right corner of the page) > Storage Format

Thank you.
Photo of Maik Winter

Maik Winter

  • 6 Posts
  • 0 Reply Likes

Hi Mervyn,


our Confluence version is  5.9.10. The Reporting Plugin version is 6.2.3.

<h4>Dokumente</h4>
<p>Unten finden Sie alle <strong>verbindlichen Dokumente</strong> f&uuml;r den Bereich&nbsp;<strong>IT Production </strong>aufgelistet</p><ac:structured-macro ac:name="report-list"><ac:rich-text-body><ac:structured-macro ac:name="local-reporter"><ac:parameter ac:name="">page:children</ac:parameter><ac:rich-text-body>&nbsp;<ac:structured-macro ac:name="text-sort"><ac:parameter ac:name="order">ascending</ac:parameter><ac:parameter ac:name="">content:title</ac:parameter></ac:structured-macro></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:name="report-body"><ac:rich-text-body>
<p><ac:structured-macro ac:name="report-image"><ac:parameter ac:name="">content:icon</ac:parameter></ac:structured-macro> <strong><ac:structured-macro ac:name="report-info"><ac:parameter ac:name="link">true</ac:parameter><ac:parameter ac:name="">content:title</ac:parameter></ac:structured-macro></strong> - letzte &Auml;nderung: <ac:structured-macro ac:name="report-info"><ac:parameter ac:name="format">dd.MM.yyyy hh:mm</ac:parameter><ac:parameter ac:name="">content:modification date</ac:parameter></ac:structured-macro></p></ac:rich-text-body></ac:structured-macro><ac:structured-macro ac:name="report-empty"><ac:rich-text-body>
<p><em>Keine ver&ouml;ffentlichten Dokumente vorhanden</em></p></ac:rich-text-body></ac:structured-macro></ac:rich-text-body></ac:structured-macro>


Regards,

Maik

Photo of Mervyn Toh

Mervyn Toh, Alum

  • 117 Posts
  • 7 Reply Likes
Hi Maik,

I've tested your storage format. Can you provide me a screenshot of the current affected page? I'd like to narrow down the root cause of this issue.

Thank you.
Photo of Maik Winter

Maik Winter

  • 6 Posts
  • 0 Reply Likes

Hi Mervyn,

here is the screenshot.

Regards,
Maik

Photo of Mervyn Toh

Mervyn Toh, Alum

  • 117 Posts
  • 7 Reply Likes
Hi Maik,

You're getting invalid icons, because Confluence pages do not have any icon. The key "content:icon" can only be applied to contents that has a logo, for example : Confluence Space.

Thank you.
Photo of Maik Winter

Maik Winter

  • 6 Posts
  • 0 Reply Likes

Hi Mervyn,

that is interesting. In my opinion each page as a icon (standard and recently created). See the screenshot from a previous Confluence / Reporting version.

Regards,
Maik

Photo of Mervyn Toh

Mervyn Toh, Alum

  • 117 Posts
  • 7 Reply Likes
Hi Maik,

Can your provide me the version of the previous Confluence you've mentioned? As far as I've tried on our test instance from version 5.8.x - 5.9.x, there are no icons on the Confluence pages.
Photo of Maik Winter

Maik Winter

  • 6 Posts
  • 0 Reply Likes

Hi Mervyn,

our last Confluence release was 5.5.7.

Regards,
Maik

Photo of Mervyn Toh

Mervyn Toh, Alum

  • 117 Posts
  • 7 Reply Likes
Hi Maik,

I've tried replicating your environment with Confluence 5.5.7, with various versions of Reporting to no avail. As I've previously stated, Confluence pages by default do not have any icon. Perhaps the icons might be generated by other 3rd party add-ons.

Thank you.