Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0032110Openbravo ERPA. Platformpublic2016-02-03 19:032016-03-17 10:56
caristu 
caristu 
highminoralways
closedfixed 
5
 
3.0PR16Q2 
alostale
Core
No
0032110: Upgrade FOP library
Upgrade FOP library from version 1.0 to version 1.1. This is a must for the Mondrian-Saiku upgrade project.
In description
No tags attached.
related to defect 0032123 closed caristu Openbravo ERP API Change Required for FOP library upgrade 
related to feature request 0032149 closed caristu Openbravo ERP Upgrade Jackson libraries 
related to feature request 0037880 closed shuehner Openbravo ERP Remove broken report "Settlement", used in print button of old-flow window "Settlement" (pre-aprm), as uses obsolete fop 
related to feature request 0037874 closed alostale Openbravo ERP Remove support for fop rendering from core product as very nearly not used 
blocks feature request 0032215 closed caristu Modules upgrade analytics stack 
Issue History
2016-02-03 19:03caristuNew Issue
2016-02-03 19:03caristuAssigned To => caristu
2016-02-03 19:03caristuModules => Core
2016-02-03 19:03caristuTriggers an Emergency Pack => No
2016-02-03 19:04caristuStatusnew => scheduled
2016-02-04 13:08caristuRelationship addedrelated to 0032123
2016-02-05 10:00caristuNote Added: 0083952
2016-02-05 10:01caristuNote Edited: 0083952bug_revision_view_page.php?bugnote_id=0083952#r10951
2016-02-05 10:01caristuNote Edited: 0083952bug_revision_view_page.php?bugnote_id=0083952#r10952
2016-02-05 10:08hgbotCheckin
2016-02-05 10:08hgbotNote Added: 0083954
2016-02-05 10:08hgbotStatusscheduled => resolved
2016-02-05 10:08hgbotResolutionopen => fixed
2016-02-05 10:08hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/42872a897da5b5ca9436de049142716969777b62 [^]
2016-02-05 10:08hgbotCheckin
2016-02-05 10:08hgbotNote Added: 0083955
2016-02-05 10:10caristuReview Assigned To => alostale
2016-02-05 10:10caristuIssue Monitored: alostale
2016-02-05 10:44caristuNote Edited: 0083952bug_revision_view_page.php?bugnote_id=0083952#r10956
2016-02-05 14:41caristuRelationship addedrelated to 0032149
2016-02-12 08:29alostaleRelationship addedblocks 0032215
2016-02-12 11:06hgbotCheckin
2016-02-12 11:06hgbotNote Added: 0084148
2016-02-12 14:47alostaleNote Added: 0084158
2016-02-12 14:47alostaleStatusresolved => closed
2016-02-12 14:47alostaleFixed in Version => 3.0PR16Q2
2016-03-17 10:56hudsonbotCheckin
2016-03-17 10:56hudsonbotNote Added: 0085106
2016-03-17 10:56hudsonbotCheckin
2016-03-17 10:56hudsonbotNote Added: 0085107
2016-03-17 10:56hudsonbotCheckin
2016-03-17 10:56hudsonbotNote Added: 0085135
2018-02-11 12:53shuehnerRelationship addedrelated to 0037880
2019-01-31 10:15caristuRelationship addedrelated to 0037874

Notes
(0083952)
caristu   
2016-02-05 10:00   
(edited on: 2016-02-05 10:44)
To validate the upgrade the following reports have been tested before and after the upgrade:

- Price List Report
- Sales Order Returns Dimensional Report
- Quality Control Point window (print from the toolbar)
- Quality Control Report (print from the toolbar)

After the upgrade, some of the .fo reports required a minor change to be generated properly because the fo:region-body must be declared before fo:region-before. More details can be found here[1].

It is possible to print a fop report including a barcode. An example can be found here[2].

It has been verified that FOP report configuration is still working. This is used, for example, to customize the fonts used in the report. The documentation regarding this topic has been updated properly[3].

Now the renderFO() method uses a different API to generate the report. Because of this change, the following warnings are displayed in the log:

Warning: org.apache.xerces.parsers.SAXParser: Feature 'http://javax.xml.XMLConstants/feature/secure-processing' [^] is not recognized.
Warning: org.apache.xerces.parsers.SAXParser: Property 'http://www.oracle.com/xml/jaxp/properties/entityExpansionLimit' [^] is not recognized.

They seems to be related with the version of the xercesImpl library we are currently using. As they are just warning messages and the reports are generated properly, I think is better to upgrade the minimum amount of required libraries. So for the moment this library has not been upgraded.

[1] http://wiki.apache.org/xmlgraphics-fop/Troubleshooting/CommonLogMessages [^]
[2] https://code.openbravo.com/erp/mods/org.openbravo.platform.features/rev/1ac981742501 [^]
[3] http://wiki.openbravo.com/wiki/How_to_Change_Fonts_in_Openbravo_Reports#Changing_the_font_in_FOP_Reports [^]

(0083954)
hgbot   
2016-02-05 10:08   
Repository: erp/devel/pi
Changeset: 42872a897da5b5ca9436de049142716969777b62
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Feb 05 10:04:46 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/42872a897da5b5ca9436de049142716969777b62 [^]

fixes issue 32110: Upgrade FOP library

---
M legal/Licensing.txt
M lib/runtime/fop.jar
M src-core/src/org/openbravo/base/ConfigParameters.java
M src-core/src/org/openbravo/base/HttpBaseServlet.java
A lib/runtime/barcode4j-fop-ext-complete.jar
A lib/runtime/xmlgraphics-commons-1.5.jar
R lib/runtime/barcode4j-fop-ext-0.20.5-complete.jar
---
(0083955)
hgbot   
2016-02-05 10:08   
Repository: erp/devel/pi
Changeset: dc0fe14356ec219530a288097c33623827f8acd0
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Feb 05 10:05:58 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/dc0fe14356ec219530a288097c33623827f8acd0 [^]

related to issue 32110: fixes for .fo reports

---
M src/org/openbravo/erpCommon/ad_reports/ReportPricelist.fo
M src/org/openbravo/erpCommon/ad_reports/ReportRefundSalesDimensionalAnalyses.fo
M src/org/openbravo/erpReports/RptMA_CCP_Group.fo
M src/org/openbravo/erpReports/RptMA_CCP_Measures.fo
M src/org/openbravo/erpReports/RptM_Inout.fo
---
(0084148)
hgbot   
2016-02-12 11:06   
Repository: erp/devel/pi
Changeset: 43feadf21bf741b28b50fdbb05d51beb4895bc1b
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Fri Feb 12 11:04:34 2016 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/43feadf21bf741b28b50fdbb05d51beb4895bc1b [^]

related to issue 32110: include version in fop library name

---
M legal/Licensing.txt
M src-core/.classpath
A lib/runtime/fop-1.1.jar
R lib/runtime/fop.jar
---
(0084158)
alostale   
2016-02-12 14:47   
code reviewed
(0085106)
hudsonbot   
2016-03-17 10:56   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^]
Maturity status: Test
(0085107)
hudsonbot   
2016-03-17 10:56   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^]
Maturity status: Test
(0085135)
hudsonbot   
2016-03-17 10:56   
A changeset related to this issue has been promoted main and to the
Central Repository, after passing a series of tests.

Promotion changeset: https://code.openbravo.com/erp/devel/main/rev/b22fb0500156 [^]
Maturity status: Test