Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0015736Openbravo ERPA. Platformpublic2011-01-24 01:322011-05-24 10:55
johnfandl 
mtaal 
normalminoralways
closedfixed 
5
pi 
 
Core
No
0015736: Backslash character (\) does not work for column filtering
The backslash character is not recognized when filtering.
1. Select Sales order option (with ?window=new) from menu [OK]
2. Select row with '.La , C\Pescadores, 87' as the Invoice Address [OK]
3. Right-click on the Invoice Address column and select "Use as Filter" [NOK]

System should filter the result set to only return rows with an Invoice Address of '.La , C\Pescadores, 87'. Instead, no result is returned.

You can also demonstrate the behavior by just keying in the \ character in the Invoice Address column, directly.
\ is a special SQL escape character. Special characters in SQL need to be handled as exceptions, e.g. probably surround the string in single quotes or 2 single quotes.

Saw this problem in PostgreSQL, did not test in Oracle--should be corrected and then tested for both.
closingMay2011
png Sales_Order_with_backslash_character_in_Invoice_Address_Use_as_filter_does_not_work.PNG (60,070) 2011-01-24 01:32
https://issues.openbravo.com/file_download.php?file_id=3530&type=bug
png

png Sales_Order_with_backslash_character_in_Invoice_Address.PNG (123,950) 2011-01-24 01:33
https://issues.openbravo.com/file_download.php?file_id=3531&type=bug
png

png Sales_Order_with_backslash_character_in_Invoice_Address_ManuallyEnteredBackSlash_does_not_work.PNG (51,290) 2011-01-24 01:34
https://issues.openbravo.com/file_download.php?file_id=3532&type=bug
png
Issue History
2011-01-24 01:32johnfandlNew Issue
2011-01-24 01:32johnfandlAssigned To => alostale
2011-01-24 01:32johnfandlFile Added: Sales_Order_with_backslash_character_in_Invoice_Address_Use_as_filter_does_not_work.PNG
2011-01-24 01:32johnfandlModules => Core
2011-01-24 01:33johnfandlIssue Monitored: johnfandl
2011-01-24 01:33johnfandlFile Added: Sales_Order_with_backslash_character_in_Invoice_Address.PNG
2011-01-24 01:34johnfandlFile Added: Sales_Order_with_backslash_character_in_Invoice_Address_ManuallyEnteredBackSlash_does_not_work.PNG
2011-01-24 08:12alostaleStatusnew => scheduled
2011-01-24 08:12alostaleAssigned Toalostale => mtaal
2011-01-24 08:12alostalefix_in_branch => pi
2011-02-28 15:51hgbotCheckin
2011-02-28 15:51hgbotNote Added: 0034425
2011-02-28 15:51hgbotStatusscheduled => resolved
2011-02-28 15:51hgbotResolutionopen => fixed
2011-02-28 15:51hgbotFixed in SCM revision => http://code.openbravo.com/erp/devel/pi/rev/3c1493c46cf415115dfd15474f72a03618b1551d [^]
2011-05-24 10:11dalsasuaTag Attached: closingMay2011
2011-05-24 10:55dalsasuaStatusresolved => closed

Notes
(0034425)
hgbot   
2011-02-28 15:51   
Repository: erp/devel/pi
Changeset: 3c1493c46cf415115dfd15474f72a03618b1551d
Author: Martin Taal <martin.taal <at> openbravo.com>
Date: Mon Feb 28 15:50:23 2011 +0100
URL: http://code.openbravo.com/erp/devel/pi/rev/3c1493c46cf415115dfd15474f72a03618b1551d [^]

Fixes issue 15736: Backslash character (\) does not work for column filtering

---
M modules/org.openbravo.service.json/src/org/openbravo/service/json/QueryBuilder.java
---