Anonymous | Login
Project:
RSS
  
News | My View | View Issues | Roadmap | Summary

View Issue DetailsJump to Notes ] Issue History ] Print ]
ID
0022007
TypeCategorySeverityReproducibilityDate SubmittedLast Update
defect[Openbravo ERP] A. Platformmajoralways2012-10-19 10:052012-11-27 11:42
ReporterjecharriView Statuspublic 
Assigned Toshankarb 
PriorityurgentResolutionfixedFixed in Version3.0MP18
StatusclosedFix in branchpiFixed in SCM revision67f3916500d9
ProjectionnoneETAnoneTarget Version3.0MP18
OSAnyDatabaseAnyJava version
OS VersionDatabase versionAnt version
Product VersionSCM revision 
Review Assigned ToAugustoMauch
Web browserGoogle Chrome
ModulesCore
Regression level
Regression date
Regression introduced in release
Regression introduced by commit
Triggers an Emergency PackNo
Summary

0022007: Selectors are not working if you check one column as identifier and has not got value

DescriptionSelectors are not working if you check one column as identifier and has not got value.

The column must be a foreign key.
Steps To ReproduceAs "System" go to window "Tables and columns" and select table "m_product"
-got to tab "Columns"
-find the column "M_AttributeSetInstance_ID" an check as "Identifier"

After that as "Admin" go to window "Sales Order":
-Create a "header"
-Go to lines and insert a line in grid view
-Try to find a product that it must be in the list but it has the value in column "M_AttributeSetInstance_ID" as null.

You will see that you can not find the product
TagsNo tags attached.
Attached Filesdiff file icon FixIssue22007_2.diff [^] (4,010 bytes) 2012-10-28 19:01 [Show Content]

- Relationships Relation Graph ] Dependency Graph ]

-  Notes
(0053791)
shankarb (reporter)
2012-10-30 10:13

The version has been changed because this is a risky fix that could affect the core of the DAL and the way Identifiers are formed across the System. So the solution will be tested as a patch and then pushed in the next MP version.
(0054305)
hgbot (developer)
2012-11-19 12:26

Repository: erp/devel/pi
Changeset: 506b45ab88e4fc5eaaed5a14ed1c0189f166ce36
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Sun Oct 28 18:50:13 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/506b45ab88e4fc5eaaed5a14ed1c0189f166ce36 [^]

Fixes Issue 0022007 : Handling null values in filter by identifiers.

Added a new method replaceValueWithJoins to handle cases where joins are formed but the property path is used to compare with values.
For eg., instead of join_4.description, e.product.attributeSetValue.description is used in the where clause which results in exception when nullobjects are sub referenced.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0054306)
shankarb (reporter)
2012-11-19 12:27

Reopened to add Review Assigned to
(0054307)
shankarb (reporter)
2012-11-19 12:27

Scheduled
(0054309)
shankarb (reporter)
2012-11-19 12:36

Fixed
(0054396)
hudsonbot (developer)
2012-11-21 06:07

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/c3c5e61b0164 [^]

Maturity status: Test
(0054445)
hgbot (developer)
2012-11-21 23:29

Repository: erp/devel/pi
Changeset: 67f3916500d999b9abc9a7482123bbc68d42ebb9
Author: Shankar Balachandran <shankar.balachandran <at> openbravo.com>
Date: Wed Nov 21 23:27:24 2012 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/67f3916500d999b9abc9a7482123bbc68d42ebb9 [^]

Fixes Issue 0022007 : Handling null values in filter by identifiers.

Modifications in replaceValueWithJoins to handle multiple joins and computed orderByClause before computing whereClause to handle the joins properly.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0054537)
AugustoMauch (manager)
2012-11-27 11:42

Code reviewed and verified in pi@b43e48d603a9

- Issue History
Date Modified Username Field Change
2012-10-19 10:05 jecharri New Issue
2012-10-19 10:05 jecharri Assigned To => AugustoMauch
2012-10-19 10:05 jecharri Web browser => Google Chrome
2012-10-19 10:05 jecharri Modules => Core
2012-10-19 10:05 jecharri Resolution time => 1353452400
2012-10-19 11:35 AugustoMauch Assigned To AugustoMauch => shankarb
2012-10-24 09:40 jecharri Web browser Google Chrome => Google Chrome
2012-10-24 09:40 jecharri Priority urgent => immediate
2012-10-26 14:28 shankarb File Added: FixIssue22007.diff
2012-10-26 14:28 shankarb Status new => acknowledged
2012-10-28 19:01 shankarb File Added: FixIssue22007_2.diff
2012-10-30 10:13 shankarb Web browser Google Chrome => Google Chrome
2012-10-30 10:13 shankarb Note Added: 0053791
2012-10-30 10:13 shankarb Priority immediate => urgent
2012-10-30 10:13 shankarb Target Version 3.0MP17 => 3.0MP18
2012-10-30 12:52 shankarb File Deleted: FixIssue22007.diff
2012-11-19 12:26 hgbot Checkin
2012-11-19 12:26 hgbot Note Added: 0054305
2012-11-19 12:26 hgbot Status acknowledged => resolved
2012-11-19 12:26 hgbot Resolution open => fixed
2012-11-19 12:26 hgbot Fixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/506b45ab88e4fc5eaaed5a14ed1c0189f166ce36 [^]
2012-11-19 12:27 shankarb Note Added: 0054306
2012-11-19 12:27 shankarb Status resolved => new
2012-11-19 12:27 shankarb Resolution fixed => open
2012-11-19 12:27 shankarb Review Assigned To => AugustoMauch
2012-11-19 12:27 shankarb Web browser Google Chrome => Google Chrome
2012-11-19 12:27 shankarb Issue Monitored: AugustoMauch
2012-11-19 12:27 shankarb Status new => scheduled
2012-11-19 12:27 shankarb Note Added: 0054307
2012-11-19 12:27 shankarb fix_in_branch => pi
2012-11-19 12:36 shankarb Note Added: 0054309
2012-11-19 12:36 shankarb Status scheduled => resolved
2012-11-19 12:36 shankarb Resolution open => fixed
2012-11-21 06:07 hudsonbot Checkin
2012-11-21 06:07 hudsonbot Note Added: 0054396
2012-11-21 23:29 hgbot Checkin
2012-11-21 23:29 hgbot Note Added: 0054445
2012-11-21 23:29 hgbot Fixed in SCM revision http://code.openbravo.com/erp/devel/pi/rev/506b45ab88e4fc5eaaed5a14ed1c0189f166ce36 [^] => http://code.openbravo.com/erp/devel/pi/rev/67f3916500d999b9abc9a7482123bbc68d42ebb9 [^]
2012-11-27 11:42 AugustoMauch Note Added: 0054537
2012-11-27 11:42 AugustoMauch Status resolved => closed
2012-11-27 11:42 AugustoMauch Fixed in Version => 3.0MP18


Copyright © 2000 - 2009 MantisBT Group
Powered by Mantis Bugtracker