jasper server REST_V2/reportExecutions attachmentsPrefix



I've a problem with html output export using rest_v2 service. 

In reportExecutionRequest structure i try to set attachmentsPrefix but with no result. 

Generated output html file still uses default attachment location :

<img src="/jasperserver/rest_v2/reportExecutions/105352832_1406503405410_76/exports/html/attachments/img_0_9_0" style="height: 300px" alt="" title="Meter Chart"/>

It makes viewing report output in offline mode impossible... 

Is there any way to change it? 




rafkacz1's picture
Joined: Jul 24 2014 - 4:22pm
Last seen: 6 years 5 months ago

How does the REST call to the report looks like, specifically how are you setting the "attachmentsPrefix" property?
It will also be good to know what version of Jasperserver are you using?

marianol - 6 years 8 months ago
I use Jasper Server v 5.5.0. 
This is the JSON structure send with POST data to reportExecutions serive
  "$id": "1",
  "reportUnitUri": "/reports/test/testReport",
  "async": true,
  "freshData": true,
  "saveDataSnapshot": false,
  "outputFormat": "html",
  "interactive": false,
  "ignorePagination": false,
  "pages": null,
  "parameters": null,
  "attachmentsPrefix": "attachments2"
The additional "id" field is generated automatically by json serializer - but i think it is not a problem. 
rafkacz1 - 6 years 8 months ago


I have the same problem. When I set any value for the parameter attachmentsPrefix so server still returns the HTML attachments with the default path. The server response is below.

               <fileName>Times New Roman-cs_CZ</fileName>
               <fileName>Times New Roman-cs_CZ.ttf</fileName>
               <fileName>Times New Roman tučné-Bold-cs_CZ</fileName>
               <fileName>Times New Roman tučné kurzíva-Bold-Italic-cs_CZ</fileName>
               <fileName>Times New Roman tučné-Bold-cs_CZ.ttf</fileName>
               <fileName>Times New Roman tučné kurzíva-Bold-Italic-cs_CZ.ttf</fileName>
               <fileName>Times New Roman kurzíva-Italic-cs_CZ.ttf</fileName>
               <fileName>Times New Roman kurzíva-Italic-cs_CZ</fileName>

Do you have any idea? It looks like a bug.

jan.pomahac - 6 years 5 months ago

0 Answers:

No answers yet