Please Note This forum exists for community support for the Mango product family and the Radix IoT Platform. Although Radix IoT employees participate in this forum from time to time, there is no guarantee of a response to anything posted here, nor can Radix IoT, LLC guarantee the accuracy of any information expressed or conveyed. Specific project questions from customers with active support contracts are asked to send requests to support@radixiot.com.
Possible bug in Reports module?
-
Hey Guys, I think there may be a bug relating to pathing in the reports module in v4.2.x.
When I created a report and ran it, it came up in the logs that it couldn't find /images/logo.png
It seems to be trying to use an absolute path of /images/ instead of a relative path, as I created a sym-link /images/logo.png and linked it to /opt/mango/web/images/logo.png and that fixed the issue.
I don't think everyone would be keen to put a symlink in their root filesystem.I don't suppose that path would be settable anywhere in the GUI?
Cheers
Dan -
The reports module is not supported in v4. How did you load the module?
-
@craigweb sorry by reports module I mean excelReports module.
Cheers
-
Hey Dan. Thanks for reporting this. This is a bug, we will get a fix out soon.
Thanks,
-Jared -
@jared-wiltshire thanks Jared.
-
@dan said in Possible bug in Reports module?:
@jared-wiltshire thanks Jared.
No problem, I have committed a fix which will be included in the next Mango core release. The bug was in the core, not the module.
As an alternative work-around you could override or create a new email template .ftl file and replace the
<@img logo="true"/>
with<@img src="logo.png"/>
To create a new email template for your Excel report -
- Copy the supplied template to your overrides, e.g.
cp /opt/mango/web/modules/excelReports/resources/ftl/excelReports/reportEmailBody.ftl /opt/mango-data/overrides/ftl/excelReports/myTemplate.ftl
- Restart Mango
- Edit your report to use the new template file
- Copy the supplied template to your overrides, e.g.