Openbravo Issue Tracking System - Modules
View Issue Details
0042919ModulesAnalyticspublic2020-01-16 17:402020-01-31 08:52
salvador_campanella 
alostale 
normalmajoralways
closedfixed 
5
 
 
caristu
0042919: Export Analytics reports on PDF doesn't work
Export Analytics reports on PDF doesn't work
- Install Analytics module
- Install Legacy FOP support module
- Rebuild
- Enter in OB analytics
- Select a cube a generate a report
- Click on Export PDF button

Result:" An unexpected error has occurred"

In openbravo.log:

2020-01-24 09:14:02,226 [http-nio-8282-exec-1] ERROR org.openbravo.dal.core.ThreadHandler - Exception thrown org/mozilla/javascript/Scriptable
org.openbravo.base.exception.OBException: Exception thrown org/mozilla/javascript/Scriptable
    ...
Caused by: java.lang.NoClassDefFoundError: org/mozilla/javascript/Scriptable
    at org.saiku.web.export.PdfReport.generateContentAsHtmlString(PdfReport.java:178) ~[saiku-web-3.7.4.jar:?]
    at org.saiku.web.export.PdfReport.populatePdf(PdfReport.java:153) ~[saiku-web-3.7.4.jar:?]
No tags attached.
related to feature request 0039983 closed jarmendariz Openbravo ERP Upgrade javascript linter and formatter 
related to design defect 0040535 closed alostale Openbravo ERP old callouts should use OBScriptEngine to evaluate response 
Issue History
2020-01-16 17:40salvador_campanellaNew Issue
2020-01-16 17:40salvador_campanellaAssigned To => platform
2020-01-16 17:40salvador_campanellaModules => Core
2020-01-16 17:40salvador_campanellaResolution time => 1580943600
2020-01-16 17:40salvador_campanellaTriggers an Emergency Pack => No
2020-01-16 17:44PracticsIssue Monitored: Practics
2020-01-24 09:15alostaleSteps to Reproduce Updatedbug_revision_view_page.php?rev_id=20217#r20217
2020-01-24 09:16alostaleAssigned Toplatform => alostale
2020-01-24 09:16alostaleRelationship addedrelated to 0039983
2020-01-24 09:17alostaleRelationship addedrelated to 0040535
2020-01-24 09:43alostaleStatusnew => scheduled
2020-01-24 09:43alostaleNote Added: 0117216
2020-01-24 12:45hgbotCheckin
2020-01-24 12:45hgbotNote Added: 0117232
2020-01-24 12:45hgbotStatusscheduled => resolved
2020-01-24 12:45hgbotResolutionopen => fixed
2020-01-24 12:45hgbotFixed in SCM revision => http://code.openbravo.com/erp/pmods/org.openbravo.client.analytics/rev/674120c39d4c258357cba42eb53243df481a9502 [^]
2020-01-24 12:45hgbotCheckin
2020-01-24 12:45hgbotNote Added: 0117233
2020-01-30 07:47alostaleReview Assigned To => caristu
2020-01-30 09:06alostaleNote Added: 0117345
2020-01-31 08:35caristuNote Added: 0117391
2020-01-31 08:35caristuStatusresolved => closed
2020-01-31 08:37caristuProjectOpenbravo ERP => Modules
2020-01-31 08:52caristuCategoryA. Platform => Analytics
2020-01-31 08:52caristuversionpi =>

Notes
(0117216)
alostale   
2020-01-24 09:43   
MR: https://gitlab.com/openbravo/product/pmods/org.openbravo.client.analytics/merge_requests/1 [^]
(0117232)
hgbot   
2020-01-24 12:45   
Repository: erp/pmods/org.openbravo.client.analytics
Changeset: 674120c39d4c258357cba42eb53243df481a9502
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jan 24 09:37:20 2020 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.client.analytics/rev/674120c39d4c258357cba42eb53243df481a9502 [^]

fixed ISSUE-42919: can't export to pdf

  Starting from 19Q3 it was not possible to export to pdf (having fop
  support module) because Saiku makes use of rhino js engine which was
  removed from core's classpath.

  It has now been added to the classpath as a copy of lib/build/js.jar.

---
M legal/Licensing.txt
A lib/runtime/js.jar
---
(0117233)
hgbot   
2020-01-24 12:45   
Repository: erp/pmods/org.openbravo.client.analytics
Changeset: 6af56131368bb0db43b20469dc56d4afc64ead24
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Fri Jan 24 09:40:44 2020 +0100
URL: http://code.openbravo.com/erp/pmods/org.openbravo.client.analytics/rev/6af56131368bb0db43b20469dc56d4afc64ead24 [^]

related to ISSUE-42919: updated module version

---
M src-db/database/sourcedata/AD_MODULE.xml
---
(0117345)
alostale   
2020-01-30 09:06   
published analytics version 1.4.7000 including this fix
(0117391)
caristu   
2020-01-31 08:35   
Reviewed + tested OK