Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0025190Openbravo ERPB. User interfacepublic2013-11-20 17:112014-03-16 06:16
jonalegriaesarte 
AugustoMauch 
normalmajorhave not tried
closedfixed 
5
 
3.0PR14Q23.0PR14Q2 
shankarb
Core
No
0025190: Error when searching for characters like ß, in grid view
Error when searching for characters like ß, in grid view
- Create a new business partner with name testßtest
- Filter in grid view by ß in name. It is working fine
- Create a new sales order with one line. Notice that if the user filters the business partner selector using ß, it is working fine
- In grid view in sales order, use character ß, in business partner filter. It does not work.
No tags attached.
related to defect 00257403.0PR14Q2 closed AugustoMauch Grid filters does not discriminate accents 
related to feature request 0030561 closed AugustoMauch Use UPPER to achieve case insensitive filtering in CustomQuerySelectorDatasource 
Issue History
2013-11-20 17:11jonalegriaesarteNew Issue
2013-11-20 17:11jonalegriaesarteAssigned To => AugustoMauch
2013-11-20 17:11jonalegriaesarteModules => Core
2013-11-20 17:11jonalegriaesarteTriggers an Emergency Pack => No
2013-11-21 11:57alostaleAssigned ToAugustoMauch => dbaz
2013-12-24 13:15shuehnerIssue Monitored: shuehner
2014-01-02 12:38jonalegriaesarteTarget Version3.0MP31 => 3.0MP32
2014-02-18 17:03alostaleRelationship addedrelated to 0025740
2014-03-04 15:00alostaleNote Added: 0064798
2014-03-04 15:00alostaleAssigned Todbaz => alostale
2014-03-10 15:29AugustoMauchStatusnew => scheduled
2014-03-10 15:29AugustoMauchfix_in_branch => pi
2014-03-10 15:29AugustoMauchAssigned Toalostale => AugustoMauch
2014-03-11 12:52jonalegriaesarteResolution time => 1395270000
2014-03-11 12:52jonalegriaesartefix_in_branchpi =>
2014-03-13 19:04AugustoMauchIssue Monitored: shankarb
2014-03-13 19:04AugustoMauchReview Assigned To => shankarb
2014-03-13 19:05hgbotCheckin
2014-03-13 19:05hgbotNote Added: 0065145
2014-03-13 19:05hgbotStatusscheduled => resolved
2014-03-13 19:05hgbotResolutionopen => fixed
2014-03-13 19:05hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/eb415e9bc94f180f23c14b4f1033a24ab123d0ce [^]
2014-03-13 19:07AugustoMauchNote Added: 0065146
2014-03-15 03:04hudsonbotCheckin
2014-03-15 03:04hudsonbotNote Added: 0065185
2014-03-16 06:16shankarbNote Added: 0065198
2014-03-16 06:16shankarbStatusresolved => closed
2014-03-16 06:16shankarbFixed in Version => PR14Q2
2015-08-13 09:51alostaleRelationship addedrelated to 0030561

Notes
(0064798)
alostale   
2014-03-04 15:00   
Default filtering behavior is to use iContain, meaning upper and lower characters are considered to be identical (ej. 's'=='S'). This default behavior can be changed through grid configuration: http://wiki.openbravo.com/wiki/User_Interface_Introduction#Grid_Filter_Configuration [^]

The logic behind this is:

String param = param.toUpperCase();
String hql = 'select ... where upper(name) = :param';
qry.setParam(param);

The problem is in Java "ß".toUpperCase() returns "SS" whereas in PG (default Locale) select upper('ß') returns 'ß'.

Note this also affects to direct filtering in Business Partner name if it is done in backend (not using adaptive in client filtering).
(0065145)
hgbot   
2014-03-13 19:05   
Repository: erp/devel/pi
Changeset: eb415e9bc94f180f23c14b4f1033a24ab123d0ce
Author: Augusto Mauch <augusto.mauch <at> openbravo.com>
Date: Thu Mar 13 19:04:19 2014 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/eb415e9bc94f180f23c14b4f1033a24ab123d0ce [^]

Fixes issue 25190: Error when searching for characters like ß, in grid view

This happened because when a text field was filtered ignoring the case, the left part of the expression was uppercased using a database method while the right part was uppercased using the String.toUpperCase() java method.

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/AdvancedQueryBuilder.java
---
(0065146)
AugustoMauch   
2014-03-13 19:07   
Performance test plan:
- It has been tested both in Oracle and in Postgres
- The explain plan of the query is the same before and after the change
- The execution time of the query is the same before and after the change

It has been checked that this fix works properly with the Grid Configuration project.
(0065185)
hudsonbot   
2014-03-15 03:04   
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/8396ec753aec [^]
Maturity status: Test
(0065198)
shankarb   
2014-03-16 06:16   
Code reviewed and verified in pi changeset 09baf685138e.