Openbravo Issue Tracking System - Openbravo ERP | |||||
View Issue Details | |||||
ID | Project | Category | View Status | Date Submitted | Last Update |
0021908 | Openbravo ERP | 02. Master data management | public | 2012-10-11 11:44 | 2015-05-13 14:02 |
Reporter | shuehner | ||||
Assigned To | naiaramartinez | ||||
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | out of date | ||
Platform | OS | 5 | OS Version | ||
Product Version | 3.0MP15.1 | ||||
Target Version | Fixed in Version | ||||
Merge Request Status | |||||
Review Assigned To | |||||
OBNetwork customer | No | ||||
Web browser | |||||
Modules | Core | ||||
Support ticket | |||||
Regression level | |||||
Regression date | |||||
Regression introduced in release | |||||
Regression introduced by commit | |||||
Triggers an Emergency Pack | No | ||||
Summary | 0021908: update.database fails as ModuleScript UpdateADClientInfo fails under some (rare) condition | ||||
Description | The modulescript updateadclientinfo does among other things create a new record in ad_tree. I some scenario it happens that it tries to create a tree which does already exist thus it fails and stops/breaks all the update.database process. [java] 86658 INFO - Executing moduleScript: org.openbravo.modulescript.UpdateADClientInfo [java] 86675 ERROR - SQL error in query: INSERT INTO ad_tree( ad_tree_id, ad_client_id, ad_org_id, created, createdby, updated, updatedby, isactive, name, description, treetype, isallnodes) VALUES (?, ?, '0', now(), '0', now(), '0', 'Y', ?, ?, ?, 'Y')Exception:org.postgresql.util.PSQLException: ERROR: duplicate key value violates unique constraint "ad_tree_name" [java] 86685 ERROR - Error executing moduleScript org.openbravo.modulescript.UpdateADClientInfo: @CODE=0@ERROR: duplicate key value violates unique constraint "ad_tree_name" [java] 86695 ERROR - Error executing moduleScript: org.openbravo.modulescript.UpdateADClientInfo | ||||
Steps To Reproduce | Note: steps based on analysis, not based on actucally testing them: a.) install mp15.1 b.) downgrade that instance to mp11 + update.db + compile c.) update it again to mp15.1 d.) update.database note that in step d.) the described error will happen. | ||||
Proposed Solution | Improve the modulescript to be saved against that rare usecase, so to only insert a new tree if it does not yet exist. | ||||
Additional Information | |||||
Tags | No tags attached. | ||||
Relationships | |||||
Attached Files | |||||
Issue History | |||||
Date Modified | Username | Field | Change | ||
2012-10-11 11:44 | shuehner | New Issue | |||
2012-10-11 11:44 | shuehner | Assigned To | => vmromanos | ||
2012-10-11 11:44 | shuehner | Modules | => Core | ||
2012-10-11 11:44 | shuehner | OBNetwork customer | => No | ||
2012-10-11 11:51 | shuehner | Assigned To | vmromanos => dmiguelez | ||
2012-10-11 11:52 | shuehner | Note Added: 0053303 | |||
2012-10-11 11:53 | shuehner | Note Added: 0053304 | |||
2012-10-15 12:52 | naiaramartinez | Assigned To | dmiguelez => naiaramartinez | ||
2012-10-15 15:50 | naiaramartinez | Note Added: 0053353 | |||
2012-10-15 15:51 | naiaramartinez | Status | new => scheduled | ||
2012-10-15 15:51 | naiaramartinez | fix_in_branch | => pi | ||
2015-05-13 14:02 | naiaramartinez | Note Added: 0077384 | |||
2015-05-13 14:02 | naiaramartinez | Status | scheduled => closed | ||
2015-05-13 14:02 | naiaramartinez | Resolution | open => out of date |
Notes | |||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|
||||
|
|||||
|
|