You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@olingo.apache.org by "Vincent Benoit (Jira)" <ji...@apache.org> on 2020/04/08 10:26:00 UTC
[jira] [Updated] (OLINGO-1445) Simple quote in a string filtering
not works
[ https://issues.apache.org/jira/browse/OLINGO-1445?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vincent Benoit updated OLINGO-1445:
-----------------------------------
Description:
Hello,
When i try to filtering a string attribute with a value that contains a single quote, the JPA processor returns no values.
Step to reproduce:
* Create a entity with string attribute
* Save a string with a single quote in that attribute like foo'bar
* Try to filter with substringof operator on that value
* The following filter has been generated : $filter=(substringof(%27foo%27%27%27,tolower(STRING_ATTRIBUT))
* No value is returned
was:
Hello,
When i try to filtering a string attribute with a value that contains a single quote, the JPA processor returns no values.
Step to reproduce:
* Create a entity with string attribute
* Save a string with a single quote in that attribute like foo'bar
* Try to filter on that value
* The following filter has been generated : $filter=(substringof(%27foo%27%27%27,tolower(STRING_ATTRIBUT))
* No value is returned
> Simple quote in a string filtering not works
> --------------------------------------------
>
> Key: OLINGO-1445
> URL: https://issues.apache.org/jira/browse/OLINGO-1445
> Project: Olingo
> Issue Type: Bug
> Components: odata2-jpa
> Affects Versions: V2 2.0.10
> Reporter: Vincent Benoit
> Priority: Major
>
> Hello,
> When i try to filtering a string attribute with a value that contains a single quote, the JPA processor returns no values.
> Step to reproduce:
> * Create a entity with string attribute
> * Save a string with a single quote in that attribute like foo'bar
> * Try to filter with substringof operator on that value
> * The following filter has been generated : $filter=(substringof(%27foo%27%27%27,tolower(STRING_ATTRIBUT))
> * No value is returned
--
This message was sent by Atlassian Jira
(v8.3.4#803005)