Openbravo Issue Tracking System - Openbravo ERP |
View Issue Details |
|
ID | Project | Category | View Status | Date Submitted | Last Update |
0019986 | Openbravo ERP | A. Platform | public | 2012-03-08 16:24 | 2012-04-28 02:31 |
|
Reporter | shuehner | |
Assigned To | guilleaer | |
Priority | normal | Severity | major | Reproducibility | have not tried |
Status | closed | Resolution | fixed | |
Platform | | OS | 5 | OS Version | |
Product Version | | |
Target Version | | Fixed in Version | 3.0MP11 | |
Merge Request Status | |
Review Assigned To | |
OBNetwork customer | |
Web browser | |
Modules | Core |
Support ticket | |
Regression level | |
Regression date | |
Regression introduced in release | |
Regression introduced by commit | |
Triggers an Emergency Pack | No |
|
Summary | 0019986: If two modules add same field to a tab compilation fails (even if field is non-visible) |
Description | During the MP8 development cycle the 'Return Material Project' added several fields to some tabs (but non-visible and not really needed).
The module 'Payment Priorities' also added those fields (and started doing so earlier).
Having both MP6 +that module installed the compilation fails as WAD generates invalid code.
For mp6 the field addition in core was reverted but the underlying wad-problem is still present.
|
Steps To Reproduce | n/a |
Proposed Solution | Either modify wad to not generate invalid code if reasonably possible or if not add least add wad-validation catching this situation so that rebuild can fail providing a useful error message.
|
Additional Information | |
Tags | No tags attached. |
Relationships | related to | defect | 0020528 | 3.0MP11 | closed | shuehner | A SQL query is not compatible with 8.3 making the upgrade from 2.50 to fail |
|
Attached Files | |
|
Issue History |
Date Modified | Username | Field | Change |
2012-03-08 16:24 | shuehner | New Issue | |
2012-03-08 16:24 | shuehner | Assigned To | => alostale |
2012-03-08 16:24 | shuehner | Modules | => Core |
2012-03-08 16:25 | shuehner | Note Added: 0046203 | |
2012-04-18 11:29 | alostale | Assigned To | alostale => guilleaer |
2012-04-24 15:41 | hgbot | Checkin | |
2012-04-24 15:41 | hgbot | Note Added: 0047917 | |
2012-04-24 15:41 | hgbot | Status | new => resolved |
2012-04-24 15:41 | hgbot | Resolution | open => fixed |
2012-04-24 15:41 | hgbot | Fixed in SCM revision | => http://code.openbravo.com/erp/devel/pi/rev/95aa801f9e0343de3f1779ad99dbd5c549e957b9 [^] |
2012-04-24 16:01 | hgbot | Checkin | |
2012-04-24 16:01 | hgbot | Note Added: 0047919 | |
2012-04-24 16:12 | guilleaer | Note Added: 0047921 | |
2012-04-25 17:26 | alostale | Note Added: 0047967 | |
2012-04-25 17:26 | alostale | Status | resolved => new |
2012-04-25 17:26 | alostale | Resolution | fixed => open |
2012-04-26 19:32 | hudsonbot | Checkin | |
2012-04-26 19:32 | hudsonbot | Note Added: 0048081 | |
2012-04-26 19:32 | hudsonbot | Checkin | |
2012-04-26 19:32 | hudsonbot | Note Added: 0048082 | |
2012-04-26 21:19 | hgbot | Checkin | |
2012-04-26 21:19 | hgbot | Note Added: 0048110 | |
2012-04-26 21:19 | hgbot | Status | new => resolved |
2012-04-26 21:19 | hgbot | Resolution | open => fixed |
2012-04-26 21:19 | hgbot | Fixed in SCM revision | http://code.openbravo.com/erp/devel/pi/rev/95aa801f9e0343de3f1779ad99dbd5c549e957b9 [^] => http://code.openbravo.com/erp/devel/pi/rev/1f536d3d1619453f9c6c49ea9e7047430ca42aef [^] |
2012-04-27 08:19 | alostale | Note Added: 0048112 | |
2012-04-27 08:19 | alostale | Status | resolved => closed |
2012-04-27 08:19 | alostale | Fixed in Version | => 3.0MP11 |
2012-04-28 02:31 | hudsonbot | Checkin | |
2012-04-28 02:31 | hudsonbot | Note Added: 0048170 | |
2012-05-16 17:33 | plujan | Relationship added | related to 0020528 |
Notes |
|
|
|
|
(0047917)
|
hgbot
|
2012-04-24 15:41
|
|
Repository: erp/devel/pi
Changeset: 95aa801f9e0343de3f1779ad99dbd5c549e957b9
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Apr 24 14:47:30 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/95aa801f9e0343de3f1779ad99dbd5c549e957b9 [^]
Fixed issue 19986: WAD informs that 2 fields of 1 tab are pointing to the same column.
WAD validation has been added. It check that there arent two fields (or more) of one tab pointing to the same column. If it happens WAD shows a message in the smartbuild log. If smartbuild has been launched using -DstopOnWadError=true the smartbuild will stop if the validation fails.
---
M src-wad/src/org/openbravo/wad/validation/WADValidator.java
M src-wad/src/org/openbravo/wad/validation/WADValidator_data.xsql
---
|
|
|
(0047919)
|
hgbot
|
2012-04-24 16:01
|
|
Repository: erp/devel/pi
Changeset: d1c95750dfa4d13e67807845391c088529709754
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Tue Apr 24 16:01:16 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/d1c95750dfa4d13e67807845391c088529709754 [^]
Related to issue 19986: The spanish alias has been changed for an english one
---
M src-wad/src/org/openbravo/wad/validation/WADValidator_data.xsql
---
|
|
|
|
Test plan:
1. Logged as system admin
2. Go to windows, tabs and fields
3. Select the product window
4. Select the product tab
5. Add one field to the tab called "testField" which will point to "Description" column
6. run smartbuild -> In "wadvalidation" section of the log, a warning message should appear and after few task it will fail.
7. run smartbuild using -DstopOnWadError=true -> In "wadvalidation" section of the log a warning message should be shown. After that smartbuild fails.
This change is not risky |
|
|
|
Reopening this issue due the following topics arose during code review:
-This validation doesn't follow the standard way of the rest of them allowing to validate just for a list of given modules.
-It is not giving information about the problematic column, it just points to the tab
-It is using Model Object validation type, but it should use a new one
-Because of concatenating 2 fields in one to later split them by -, in case of tab name contains - this wouldn't work
-Typo "has *to* fields" should be "has *two* fields", but this is not correct at it could be more than 2. So this should be changed to several or to the actual count. |
|
|
|
|
|
|
|
|
(0048110)
|
hgbot
|
2012-04-26 21:19
|
|
Repository: erp/devel/pi
Changeset: 1f536d3d1619453f9c6c49ea9e7047430ca42aef
Author: Guillermo Álvarez de Eulate <guillermo.alvarez <at> openbravo.com>
Date: Thu Apr 26 19:52:11 2012 +0200
URL: http://code.openbravo.com/erp/devel/pi/rev/1f536d3d1619453f9c6c49ea9e7047430ca42aef [^]
fixed issue 19986: WAD validation to avoid more than one field pointing to the same column in a tab.
---
M src-wad/src/org/openbravo/wad/validation/WADValidationResult.java
M src-wad/src/org/openbravo/wad/validation/WADValidator.java
M src-wad/src/org/openbravo/wad/validation/WADValidator_data.xsql
---
|
|
|
|
Code reviewed and verified on pi@c37b7ed3ba58 |
|
|
|
|