syncope-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SYNCOPE-929) Braces are ignored for FIQL strings
Date Mon, 05 Sep 2016 13:51:21 GMT

    [ https://issues.apache.org/jira/browse/SYNCOPE-929?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15465057#comment-15465057
] 

ASF subversion and git services commented on SYNCOPE-929:
---------------------------------------------------------

Commit 8a916bf1e5c7ab0811dfb655653f4dee84e83f7a in syncope's branch refs/heads/1_2_X from
[~coheigea]
[ https://git-wip-us.apache.org/repos/asf?p=syncope.git;h=8a916bf ]

SYNCOPE-929 - Braces are ignored for FIQL strings. Tests added.


> Braces are ignored for FIQL strings
> -----------------------------------
>
>                 Key: SYNCOPE-929
>                 URL: https://issues.apache.org/jira/browse/SYNCOPE-929
>             Project: Syncope
>          Issue Type: Bug
>    Affects Versions: 1.2.8, 2.0.0-M4
>            Reporter: Iurii Smyrnov
>            Assignee: Colm O hEigeartaigh
>             Fix For: 1.2.9, 2.0.0
>
>         Attachments: SYNCOPE-929-revised.patch, SYNCOPE-929.patch
>
>
> Iurii Smyrnov<ismyrnov@talend.com>
> Syncope ignores braces " ( ) " in a FIQL request.
> I faced with an issue: it seems Syncope ignores braces in the request, for example (get
groups items): 
> - request is : (name==testA,name==testB);name==testC
> - the same request (http encoded) is: http://192.168.99.100:9080/syncope/rest/groups?fiql=%28name%3D%3DtestA%2Cname%3D%3DtestB%29%3Bname%3D%3DtestC
> In this case response should return zero items , but it returns Group item with name=testA
 - the same result if there would not been braces like below:
>  - request is : name==testA,name==testB;name==testC or FIQL encode name%3D%3DtestA%2Cname%3D%3DtestB%3Bname%3D%3DtestC
> Iurii Smyrnov
> Software Developer
> ismyrnov@talend.com
> ------------------------------
> Colm O hEigeartaigh <coheigea@apache.org>
> Yep there is an issue here. Could you open a JIRA for it?
> I can reproduce with two users with attributes (city/country/state):
> alice: dublin/ireland/abc
> bob: dublin/canada/xyz
> Using a FIQL of "city==dublin;country==ireland" using AnyQuery.Builder() correctly yields
one user ("alice"). However using "(city==dublin,state==abc);country==ireland" yields both
users incorrectly. It appears that it might be ignoring the country part and just returning
the result of the brackets.
> Colm.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message