Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015420Openbravo ERP01. General setuppublic2010-12-14 13:152011-06-28 10:09
plujan 
marvintm 
urgentmajorhave not tried
closedfixed 
5
pi 
3.0MP1 
Core
No
0015420: A rebuild with local changes in database shows a message that is not clear
I had some local changes in my environment, and I tried to rebuild after installed a module. I've got a message about update.database (see attach) but the message gave me no clue about why the rebuild was not possible.
This was working on 2.50, so it is a regression.
1. Make a local change, for example, put Core in development
2. Install any module and rebuild. Check the error message (as shown in attach)
Proper message should be displayed:
ERROR - Change detected in table: AD_Ref_List. 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.
No tags attached.
depends on backport 00178053.0MP1 closed marvintm A rebuild with local changes in database shows a message that is not clear 
related to defect 0035222 closed alostale warning messages are not displayed while rebuilding via MMC 
png LocalChangesWrongErrorMessage.PNG (29,043) 2010-12-14 13:15
https://issues.openbravo.com/file_download.php?file_id=3426&type=bug
png
Issue History
2010-12-14 13:15plujanNew Issue
2010-12-14 13:15plujanAssigned To => adrianromero
2010-12-14 13:15plujanFile Added: LocalChangesWrongErrorMessage.PNG
2010-12-14 13:15plujanModules => Core
2010-12-14 13:16plujanTag Attached: Regression QA
2010-12-14 13:16plujanAssigned Toadrianromero => alostale
2010-12-20 08:44alostaleStatusnew => scheduled
2010-12-20 08:44alostaleAssigned Toalostale => marvintm
2010-12-20 08:44alostalefix_in_branch => pi
2011-05-30 10:33dalsasuaIssue Monitored: dalsasua
2011-06-08 11:42iciordiaTag Detached: Regression QA
2011-06-08 11:46marvintmTarget Version => 3.0MP1
2011-06-08 11:46marvintmfix_in_branchpi =>
2011-06-22 16:50hgbotCheckin
2011-06-22 16:50hgbotNote Added: 0038487
2011-06-22 17:28hgbotCheckin
2011-06-22 17:28hgbotNote Added: 0038490
2011-06-22 17:28hgbotStatusscheduled => resolved
2011-06-22 17:28hgbotResolutionopen => fixed
2011-06-22 17:28hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/beb7376b819adef46ec7f2e67e8ccd5739890395 [^]
2011-06-22 23:19hudsonbotCheckin
2011-06-22 23:19hudsonbotNote Added: 0038507
2011-06-27 16:23shuehnerNote Added: 0038539
2011-06-27 16:23shuehnerStatusresolved => closed
2011-06-28 10:08marvintmStatusclosed => new
2011-06-28 10:08marvintmResolutionfixed => open
2011-06-28 10:08marvintmStatusnew => acknowledged
2011-06-28 10:08marvintmStatusacknowledged => scheduled
2011-06-28 10:08marvintmfix_in_branch => pi
2011-06-28 10:09marvintmStatusscheduled => resolved
2011-06-28 10:09marvintmResolutionopen => fixed
2011-06-28 10:09marvintmStatusresolved => closed
2017-02-10 13:14alostaleRelationship addedrelated to 0035222

Notes
(0038487)
hgbot   
2011-06-22 16:50   
Repository: erp/devel/dbsm-main
Changeset: 5c1ace45ea809ec94cb072ab8403706af5d75a17
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Jun 22 16:50:00 2011 +0200
URL: http://code.openbravo.com/erp/devel/dbsm-main/rev/5c1ace45ea809ec94cb072ab8403706af5d75a17 [^]

Related to issue 15420. Change the 'local changes' message to ERROR level

---
M src/org/openbravo/ddlutils/task/AlterDatabaseDataAll.java
---
(0038490)
hgbot   
2011-06-22 17:28   
Repository: erp/devel/pi
Changeset: beb7376b819adef46ec7f2e67e8ccd5739890395
Author: Antonio Moreno <antonio.moreno <at> openbravo.com>
Date: Wed Jun 22 16:56:57 2011 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/beb7376b819adef46ec7f2e67e8ccd5739890395 [^]

Fixed issue 15420. Several changes to make this work:
- Changed the level of the message generated by dbsourcemanager to 'ERROR'
- Filter some not nice parts of the error messages generated by the build so that the user is not confused
- Change the ApplyModules.html Javascript code so that it works correctly with multiple-element error messages.

---
M src-db/database/lib/dbsourcemanager.jar
M src/org/openbravo/erpCommon/ad_process/ApplyModules.html
M src/org/openbravo/erpCommon/ad_process/ApplyModulesCallServlet.java
---
(0038507)
hudsonbot   
2011-06-22 23:19   
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/aab463ce0882 [^]

Maturity status: Test
(0038539)
shuehner   
2011-06-27 16:23   
Reviewed + tested in pi/pgsql/chromium (rev: 9652da83413c). Now with local changes the error message in the popup included the 'real' error text so user knows why the rebuild was stopped. Also several lines not containing useful info have been removed (the ant-style stacktrace of called ant-targets).