Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041126Openbravo ERPA. Platformpublic2019-06-19 11:272019-06-24 17:01
caristu 
caristu 
immediateminoralways
closedfixed 
5
 
3.0PR19Q1.2 
AugustoMauch
Core
Pre packaging ( pi )
2019-04-18
pi
https://code.openbravo.com/erp/devel/pi/rev/08db5ae97ad2b0fb0c4499b630018a9bc0c0166f [^]
No
0041126: Not possible to install modules with MMC having XSL processor in classpath which does not support all the standard attributes
If there is an XSL processor library in the classpath that provides a TrasnformerFactory implementation which is not able to handle the standard attributes configured in XMLUtil class, then this class is not able to provide a TransformerFactory instance.

Under this scenario, those parts of the application (like the MMC) that use XMLUtil to retrieve a TransformerFactory will not work properly.
0) Copy the following libraries[1],[2] into lib/runtime folder and run ant compile.complete
1) Login
2) Go to the MMC window and try to install any module. The attached error will be shown.


[1] https://mvnrepository.com/artifact/xalan/xalan/2.7.1 [^]
[2] https://mvnrepository.com/artifact/xalan/serializer/2.7.1 [^]
Catch the IllegalArgumentException thrown when the attribute is not recognized. See: https://docs.oracle.com/javase/tutorial/jaxp/properties/usingProps.html [^]
No tags attached.
blocks defect 0041124 closed caristu Not possible to install modules with MMC having XSL processor in classpath which does not support all the standard attributes 
Issue History
2019-06-19 11:30caristuTypedefect => backport
2019-06-19 11:30caristuTarget Version => 3.0PR19Q1.2
2019-06-19 13:00hgbotCheckin
2019-06-19 13:00hgbotNote Added: 0112889
2019-06-19 13:00hgbotStatusscheduled => resolved
2019-06-19 13:00hgbotResolutionopen => fixed
2019-06-19 13:00hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q1.2/rev/2ccf23b4fcae680ea291b0a56fb4f2a58d3e0570 [^]
2019-06-19 13:00caristuReview Assigned To => AugustoMauch
2019-06-19 13:06caristuProposed Solution updated
2019-06-24 17:01AugustoMauchNote Added: 0112982
2019-06-24 17:01AugustoMauchStatusresolved => closed

Notes
(0112889)
hgbot   
2019-06-19 13:00   
Repository: erp/backports/3.0PR19Q1.2
Changeset: 2ccf23b4fcae680ea291b0a56fb4f2a58d3e0570
Author: Carlos Aristu <carlos.aristu <at> openbravo.com>
Date: Wed Jun 19 12:56:53 2019 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR19Q1.2/rev/2ccf23b4fcae680ea291b0a56fb4f2a58d3e0570 [^]

fixes bug 41126: Don't fail if can't set a TransformerFactory attribute

  In case the TransformerFactory underlying implementation does not recognize an attribute, do not fail and handle the error showing a warning message.

---
M src/org/openbravo/dal/xml/XMLUtil.java
---
(0112982)
AugustoMauch   
2019-06-24 17:01   
Code reviewed and verified