Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0043175Openbravo ERPA. Platformpublic2020-02-10 19:322020-02-19 08:41
shuehner 
alostale 
normalminoralways
closedfixed 
5
 
3.0PR20Q2 
jarmendariz
Core
Production - Confirmed Stable
2018-10-30
3.0PR19Q1
https://gitlab.com/openbravo/product/dbsm/-/commit/789aa22ca2be4190e5f07a4770c2172e0e5c0552 [^]
No
0043175: Update.database message about local changes in application dictionary is missing table name
The update.database mechanism to check for local changes consists of 2 parts:
a.) structure changes
b.) changes in AD

For part b.) the code did show the table having changes also but is no longer doing so -> Regression.

Checking code of code in dbsm-main repo OBDataset.java method hasChanged:
  if (log != null) {
              log.warn("Change detected in table: " + table.getName());

So issue could be either:
- logger being null (even if seems to be set in OBDBSMOBUtil.java)
- logger being not configured to show by default.
1.) Have clean base (i.e. install.source or previous update.database ran)
2.) Cause local change in AD
update ad_window set updated=now() where ad_window_id = '100';
3.) Run update.database

4.) Check output missing info about table
     [java] 18844 [main] INFO org.openbravo.ddlutils.util.DBSMOBUtil - Checking if database structure was modified locally.
     [java] 19425 [main] INFO org.openbravo.ddlutils.util.DBSMOBUtil - Checking if data has changed in the application dictionary.
     [java] 19465 [main] ERROR org.openbravo.ddlutils.task.AlterDatabaseDataAll - Database has local changes. Update.database will not be done. You should export your changed modules before doing update.database, so that your Application Dictionary changes are preserved.
     [java] Database has local changes. Update.database not done.
No tags attached.
depends on backport 00431803.0PR20Q1 closed alostale Update.database message about local changes in application dictionary is missing table name 
depends on backport 00431813.0PR19Q4.2 closed alostale Update.database message about local changes in application dictionary is missing table name 
depends on backport 00431823.0PR19Q3.4 closed alostale Update.database message about local changes in application dictionary is missing table name 
caused by feature request 0039504 closed jarmendariz Upgrade Log4j to version 2 
Issue History
2020-02-10 19:32shuehnerNew Issue
2020-02-10 19:32shuehnerAssigned To => platform
2020-02-10 19:32shuehnerModules => Core
2020-02-10 19:32shuehnerTriggers an Emergency Pack => No
2020-02-10 19:34shuehnerNote Added: 0117615
2020-02-10 19:34shuehnerRegression level => Production - Confirmed Stable
2020-02-10 19:34shuehnerRegression introduced in release => 3.0PR19Q1
2020-02-11 10:23alostaleRegression date => 2018-10-30
2020-02-11 10:23alostaleRegression introduced by commit => https://gitlab.com/openbravo/product/dbsm/-/commit/789aa22ca2be4190e5f07a4770c2172e0e5c0552 [^]
2020-02-11 10:23alostaleAssigned Toplatform => alostale
2020-02-11 10:23alostaleSeveritymajor => minor
2020-02-11 10:23alostaleRelationship addedcaused by 0039504
2020-02-11 10:38alostaleReview Assigned To => jarmendariz
2020-02-11 10:39alostaleStatusnew => scheduled
2020-02-11 10:40alostaleNote Added: 0117623
2020-02-18 10:01hgbotCheckin
2020-02-18 10:01hgbotNote Added: 0117897
2020-02-18 10:01hgbotStatusscheduled => resolved
2020-02-18 10:01hgbotResolutionopen => fixed
2020-02-18 10:01hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/529930a409c41bb08aeb21770481b842d815a704 [^]
2020-02-19 08:41jarmendarizNote Added: 0117936
2020-02-19 08:41jarmendarizStatusresolved => closed
2020-02-19 08:41jarmendarizFixed in Version => 3.0PR20Q2

Notes
(0117615)
shuehner   
2020-02-10 19:34   
Note: Issue is known present in:
- 19Q1
- pi (for 20Q2)

Given logger seems to be the issue maybe introduce in log4j2 project done in 19Q1 release.
(0117623)
alostale   
2020-02-11 10:40   
MR: https://gitlab.com/openbravo/product/dbsm/-/merge_requests/6 [^]
(0117897)
hgbot   
2020-02-18 10:01   
Repository: erp/devel/pi
Changeset: 529930a409c41bb08aeb21770481b842d815a704
Author: Asier Lostalé <asier.lostale <at> openbravo.com>
Date: Tue Feb 11 10:32:39 2020 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/529930a409c41bb08aeb21770481b842d815a704 [^]

fixed BUG-43175 fixed BUG-43183: log local changes + exclude .git

dsm jar including fixes for:

 BUG-43175:
  When updating database having local changes in AD, the tables with
  changes were not logged.

  While project to upgrade to log4j2 the API, old API passing old logger
  was kept but it become unusable as null logger was used.

  Old API has been removed.

 BUG-43183:
  Exclude .git directory when reading DB xml files

---
M src-db/database/lib/dbsourcemanager.jar
M src/org/openbravo/erpCommon/ad_forms/ModuleManagement.java
---
(0117936)
jarmendariz   
2020-02-19 08:41   
Reviewed