Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0024580Openbravo ERPA. Platformpublic2013-08-26 10:012014-02-12 18:29
ioritzCia 
AugustoMauch 
normalminorsometimes
closedfixed 
20Ubuntu 10.04
 
3.0PR14Q23.0PR14Q2 
shankarb
Google Chrome
JSON Datasource
No
0024580: Depending on a selector's definition lower case values are not properly filtered.
There is an issue in AdvancedQueryBuilder with the use of ignoreCase method. This method only accepts one property of the fields of a selector. When the property passed as parameter is a primitive one or it is numeric or it is a date, but the selector has more properties that are not of this sort, the ignoreCase method should return true, as there are properties that need their case to be ignored.
Build a selector that has a numeric field and a string field. The numeric field must be the last one in order to be the one selected in the following code line of the parseSimpleClause(String fieldName, String operator, Object value) method

final Property property = properties.get(properties.size() - 1);

and passed to the buildRightClause(property, operator, value) method.
It is attached as a diff
No tags attached.
diff AdvancedQueryBuilder.diff (2,156) 2013-08-26 10:02
https://issues.openbravo.com/file_download.php?file_id=6339&type=bug
Issue History
2013-08-26 10:01ioritzCiaNew Issue
2013-08-26 10:01ioritzCiaAssigned To => AugustoMauch
2013-08-26 10:01ioritzCiaWeb browser => Google Chrome
2013-08-26 10:01ioritzCiaModules => JSON Datasource
2013-08-26 10:01ioritzCiaTriggers an Emergency Pack => No
2013-08-26 10:02ioritzCiaFile Added: AdvancedQueryBuilder.diff
2013-09-03 11:08AugustoMauchStatusnew => scheduled
2013-09-03 11:08AugustoMauchfix_in_branch => pi
2013-11-14 18:00xabiermerinoWeb browserGoogle Chrome => Google Chrome
2013-11-14 18:00xabiermerinoTarget Version => 3.0MP31
2013-11-14 18:00xabiermerinofix_in_branchpi =>
2014-01-02 12:38jonalegriaesarteTarget Version3.0MP31 => 3.0MP32
2014-01-23 11:51AugustoMauchIssue Monitored: shankarb
2014-01-23 11:51AugustoMauchReview Assigned To => shankarb
2014-01-23 11:51AugustoMauchWeb browserGoogle Chrome => Google Chrome
2014-01-23 11:52hgbotCheckin
2014-01-23 11:52hgbotNote Added: 0063650
2014-01-23 11:52hgbotStatusscheduled => resolved
2014-01-23 11:52hgbotResolutionopen => fixed
2014-01-23 11:52hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/dd774c8db2f1bb1d5fdd480893872a96b511b2c5 [^]
2014-01-23 12:20hgbotCheckin
2014-01-23 12:20hgbotNote Added: 0063651
2014-01-23 12:23AugustoMauchNote Added: 0063652
2014-01-23 12:23AugustoMauchStatusresolved => new
2014-01-23 12:23AugustoMauchResolutionfixed => open
2014-01-23 12:32hgbotCheckin
2014-01-23 12:32hgbotNote Added: 0063653
2014-01-23 12:32hgbotStatusnew => resolved
2014-01-23 12:32hgbotResolutionopen => fixed
2014-01-23 12:32hgbotFixed in SCM revisionhttp://code.openbravo.com/erp/devel/pi/rev/dd774c8db2f1bb1d5fdd480893872a96b511b2c5 [^] => http://code.openbravo.com/erp/devel/pi/rev/b6f6c4710817c5023ffb33b6d3ecb376aaae993e [^]
2014-01-28 06:30shankarbNote Added: 0063728
2014-01-28 06:30shankarbStatusresolved => closed
2014-01-28 06:30shankarbFixed in Version => 3.0MP32
2014-02-12 18:29hudsonbotCheckin
2014-02-12 18:29hudsonbotNote Added: 0064104
2014-02-12 18:29hudsonbotCheckin
2014-02-12 18:29hudsonbotNote Added: 0064105
2014-02-12 18:29hudsonbotCheckin
2014-02-12 18:29hudsonbotNote Added: 0064106
2014-02-12 18:29hudsonbotCheckin
2014-02-12 18:29hudsonbotNote Added: 0064107

Notes
(0063650)
hgbot   
2014-01-23 11:52   
Repository: erp/devel/pi
Changeset: dd774c8db2f1bb1d5fdd480893872a96b511b2c5
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Jan 23 11:50:05 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/dd774c8db2f1bb1d5fdd480893872a96b511b2c5 [^]

Fixes issue 24580: Casing was being wrongfully ignored in some filters

When filtering a column that pointed to a table with a multiple identifier, sometimes the casing was being ignored when it shouldn't. All the properties that conform the identifier should be taken into account, not just the first one.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0063651)
hgbot   
2014-01-23 12:20   
Repository: erp/devel/pi
Changeset: 14b3ede3791834ce00d96a84726e6c2f2e090a40
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Jan 23 12:20:01 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/14b3ede3791834ce00d96a84726e6c2f2e090a40 [^]

Related to issue 24580: Backs out change

Backs out fix of issue 24580, it is breaking the build process

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0063652)
AugustoMauch   
2014-01-23 12:23   
Reopened, fix caused build error
(0063653)
hgbot   
2014-01-23 12:32   
Repository: erp/devel/pi
Changeset: b6f6c4710817c5023ffb33b6d3ecb376aaae993e
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Jan 23 12:30:29 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/b6f6c4710817c5023ffb33b6d3ecb376aaae993e [^]

Fixes issue 24580: Casing was being wrongfully ignored in some filters

First commit that tried to fix 24580 was creating a method that already existed.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0063728)
shankarb   
2014-01-28 06:30   
Code reviewed and verified in pi changeset 9b47b9cdf8c1.
(0064104)
hudsonbot   
2014-02-12 18:29   
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/d1a5bb862230 [^]
Maturity status: Test
(0064105)
hudsonbot   
2014-02-12 18:29   
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/d1a5bb862230 [^]
Maturity status: Test
(0064106)
hudsonbot   
2014-02-12 18:29   
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/d1a5bb862230 [^]
Maturity status: Test
(0064107)
hudsonbot   
2014-02-12 18:29   
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/d1a5bb862230 [^]
Maturity status: Test