Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0011377 | Openbravo ERP | A. Platform | public | 2009-11-16 15:12 | 2009-11-19 00:00 |
|
Reporter | shuehner | |
Assigned To | shuehner | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | pi | |
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 | 0011377: Make DAL use inside dbsourcemanager more resilient to a unclean database state. |
Description | If a update.database run was interrupted, i.e. because of some failure then the AD_* table can be in some inconsistent state.
Example a foreign key field (i.e. ad_tab.ad_table_id) might contain some uuid where the target primary key does not exists (the ad_table entry with this value).
As DAL by default uses AD_Table,... for access control DAL startup fails and thus update.database cannot be used to 'repair' the database state.
But the automatic dal-access control in dbsourcemanager is not needed for the update.database run. Disabling it lets dal start with these inconsistent db-state and thus update.database can be run again to 'repair' the db and continue working. |
Steps To Reproduce | Hard, as it requires a broken db-instance with this symptoms...
|
Proposed Solution | Disable automatic access-control earlier in dbsourcemanager when running in adminmode (meaning all rights are granted) so ad_* tables are not even read for the checks. |
Additional Information | |
Tags | No tags attached. |
Relationships | |
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2009-11-16 15:12 | shuehner | New Issue | |
2009-11-16 15:12 | shuehner | Assigned To | => shuehner |
2009-11-16 15:12 | shuehner | OBNetwork customer | => No |
2009-11-17 12:31 | hgbot | Checkin | |
2009-11-17 12:31 | hgbot | Note Added: 0021917 | |
2009-11-17 12:31 | hgbot | Status | new => resolved |
2009-11-17 12:31 | hgbot | Resolution | open => fixed |
2009-11-17 12:31 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/f87cf399296ff28713b92f02245ca9e768df26c2 [^] |
2009-11-18 14:27 | mtaal | Note Added: 0021970 | |
2009-11-18 14:27 | mtaal | Status | resolved => closed |
2009-11-19 00:00 | anonymous | sf_bug_id | 0 => 2900165 |