Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0022020 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Openbravo ERP] A. Platform | major | always | 2012-10-22 08:58 | 2012-10-30 08:47 | |||
Reporter | guilleaer | View Status | public | |||||
Assigned To | AugustoMauch | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | 3.0MP17 | |||
Status | closed | Fix in branch | Fixed in SCM revision | 34fd0be1e4c4 | ||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Merge Request Status | ||||||||
Review Assigned To | alostale | |||||||
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 | 0022020: AD_ORG validation fails when a table has 2 columns which are foreign key of ad_org_id | |||||||
Description | If I have a table with the traditional column ad_org_id and I add new one which points to ad_org_id the validation fails: Errors for Validation type: INCORRECT_CLIENT_ORG_PROPERTY_NAME +++++++++++++++++++++++++++++++++++++++++++++++++++ Table AD_Org has a column referencing AD_Org. The AD_Column.name (note: different from AD_Column.columnname!) of this column should have the value organization, it currently has obretcoDbpOrgid | |||||||
Steps To Reproduce | Using postgresql admin: 1. add a column to ad_org -> obretcoDbpOrgid 2. add a foreign key constraint for this column. This column should be foreign key of ad_org.ad_org_id In ERP: 1. Go to toables and columns 2. in table organization -> create columns from database ant export.database The following error should be shown Errors for Validation type: INCORRECT_CLIENT_ORG_PROPERTY_NAME +++++++++++++++++++++++++++++++++++++++++++++++++++ Table AD_Org has a column referencing AD_Org. The AD_Column.name (note: different from AD_Column.columnname!) of this column should have the value organization, it currently has obretcoDbpOrgid | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
![]() |
|
![]() |
|
(0053506) hgbot (developer) 2012-10-22 13:00 |
Repository: erp/devel/pi Changeset: 34fd0be1e4c4a07a6dae0e98a94bee4acf5e7600 Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com> Date: Mon Oct 22 12:59:10 2012 +0200 URL: http://code.openbravo.com/erp/devel/pi/rev/34fd0be1e4c4a07a6dae0e98a94bee4acf5e7600 [^] fixed issue 22020: organization table doesn't need this validation --- M src/org/openbravo/service/system/DatabaseValidator.java --- |
(0053507) guilleaer (viewer) 2012-10-22 13:08 |
The validation was working fine, but an error is happening only with the organization table. The table organization doesn't have any foreing key to the table ad_org. Because of that the validator is complaining when detects a column pointing to ad_column. Following general rules of openbravo this new column must be called organization but in case of table organization is not required. Test plan: add a column to the table ad_org which is FK of ad_org_id and the try to export database. The error should't be shown |
(0053697) hudsonbot (viewer) 2012-10-25 12:38 |
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/4a27e27689bc [^] Maturity status: Test |
(0053780) alostale (viewer) 2012-10-30 08:47 |
Code reviewed and tested in retail on pi@b2e90dcc4dc7 |
![]() |
|||
Date Modified | Username | Field | Change |
2012-10-22 08:58 | guilleaer | New Issue | |
2012-10-22 08:58 | guilleaer | Assigned To | => AugustoMauch |
2012-10-22 08:58 | guilleaer | Modules | => Core |
2012-10-22 08:58 | guilleaer | OBNetwork customer | => No |
2012-10-22 13:00 | hgbot | Checkin | |
2012-10-22 13:00 | hgbot | Note Added: 0053506 | |
2012-10-22 13:00 | hgbot | Status | new => resolved |
2012-10-22 13:00 | hgbot | Resolution | open => fixed |
2012-10-22 13:00 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/34fd0be1e4c4a07a6dae0e98a94bee4acf5e7600 [^] |
2012-10-22 13:08 | guilleaer | Note Added: 0053507 | |
2012-10-25 12:38 | hudsonbot | Checkin | |
2012-10-25 12:38 | hudsonbot | Note Added: 0053697 | |
2012-10-30 08:47 | alostale | Review Assigned To | => alostale |
2012-10-30 08:47 | alostale | Note Added: 0053780 | |
2012-10-30 08:47 | alostale | Status | resolved => closed |
2012-10-30 08:47 | alostale | Fixed in Version | => 3.0MP17 |
Copyright © 2000 - 2009 MantisBT Group |