Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0041548Openbravo ERPA. Platformpublic2019-08-01 13:182019-08-06 13:35
plujan 
jarmendariz 
normalmajorhave not tried
closedfixed 
5
main 
3.0PR19Q1.33.0PR19Q1.3 
alostale
Core
Production - Confirmed Stable
3.0PR19Q1
No
0041548: Errors in build from UI are not shown
I am rebuilding the system after installing a module. It seems the module has some dependency issue, but the expected message of error is not shown. Instead, from the GUI seems the rebuild was successful, while the log is showing that it was not.
In order to reproduce the issue it is required to install via the MMC a module with an error like this one:
[java] org.apache.ddlutils.model.ModelException: The foreignkey EM_OBRESMS_ORDER_RESERVATION in table C_ORDER references the undefined table OBRE_RESERVATION

Launching the Rebuild process, it finishes (or seems to finish) successfully, since a green banner "Process Completed Successfully" is shown. But looking at the log shows a different story (the error message shown above is from the log)

For more information, check the attached screenshot. The full log is also available on demad.
No tags attached.
blocks defect 0041524 closed jarmendariz Errors in build from UI are not shown 
Issue History
2019-08-05 13:24jarmendarizTypedefect => backport
2019-08-05 13:24jarmendarizTarget Version => 3.0PR19Q1.3
2019-08-05 13:54hgbotCheckin
2019-08-05 13:54hgbotNote Added: 0113814
2019-08-05 13:54hgbotStatusscheduled => resolved
2019-08-05 13:54hgbotResolutionopen => fixed
2019-08-05 13:54hgbotFixed in SCM revision => http://code.openbravo.com/erp/backports/3.0PR19Q1.3/rev/5fa8efde11d3b7d299f04b0463d21e72fb8e895c [^]
2019-08-05 13:56jarmendarizSummary[19Q3] A failed rebuild shows a success message => Errors in build from UI are not shown
2019-08-06 13:35alostaleReview Assigned To => alostale
2019-08-06 13:35alostaleNote Added: 0113846
2019-08-06 13:35alostaleStatusresolved => closed
2019-08-06 13:35alostaleFixed in Version => 3.0PR19Q1.3

Notes
(0113814)
hgbot   
2019-08-05 13:54   
Repository: erp/backports/3.0PR19Q1.3
Changeset: 5fa8efde11d3b7d299f04b0463d21e72fb8e895c
Author: Javier Armendáriz <javier.armendariz <at> openbravo.com>
Date: Mon Aug 05 13:28:55 2019 +0200
URL: http://code.openbravo.com/erp/backports/3.0PR19Q1.3/rev/5fa8efde11d3b7d299f04b0463d21e72fb8e895c [^]

Fixed issue 41548: Errors in build from UI are not shown

Log4j configuration is missing in BuildTask ant task. This causes
that when this task fails, the error message is not passed to
OBRebuildAppender and thus the process finishes as successful from
the point of view of the UI.

---
M build.xml
M src-core/src/org/openbravo/utils/OBRebuildAppender.java
---
(0113846)
alostale   
2019-08-06 13:35   
reviewed + tested