Prakash Sagadevan created OLINGO-1378:
-----------------------------------------

             Summary: $search does not allow some special characters in search 
term
                 Key: OLINGO-1378
                 URL: https://issues.apache.org/jira/browse/OLINGO-1378
             Project: Olingo
          Issue Type: Bug
          Components: odata4-server
    Affects Versions: (Java) V4 4.0.0
            Reporter: Prakash Sagadevan


OLINGO 4.4.0 $search does not allow to search for special chars, eg. # & | ".

*Example:*
{code:java}
http://host/service/Products?$search=#bike
{code}
{code:java}
http://host/service/Products?$search=bike & car
{code}
{code:java}
http://host/service/Products?$search=bike | car
{code}
{code:java}
http://host/service/Products?$search=""bike  car""
{code}
OData Accept the below character in $search system query
||Symbol||Character||
|A..Z|Capital Alphabet|
|a..z|Small Alphabet|
|0..9|Numbers|
|-|Hyphen|
|.|Dot|
|_|Under scope|
|~|Tilde|
|!|Not symbol|
|(|Open parentheses|
|)|Close parentheses|
|*|Star|
|+|Plus|
|,|Comma|
|;|Semicolon|
|:|Colon|
|@|Email|
|/|Slash|
|$|Dollar|
|'|Single quotes|
|=|Equal|
|%|Percentage|
| |Space|
|\t|Tab|

we are getting the issue in below special character, 
||Symbol|
|#|
|&|
|||
|"|

Workaround: Double encoded above special characters.
{code:java}
http://host/service/Products?$search=%2523bike

http://host/service/Products?$search=bike %2526 car

http://host/service/Products?$search=bike %257C car

http://host/service/Products?$search="%2522bike  car%2522"
{code}



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

Reply via email to