Uploaded image for project: 'Syncope'
  1. Syncope
  2. SYNCOPE-929

Braces are ignored for FIQL strings

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.2.8, 2.0.0-M4
    • Fix Version/s: 1.2.9, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Flags:
      Important

      Description

      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):

      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.

        Attachments

        1. SYNCOPE-929.patch
          1 kB
          Colm O hEigeartaigh
        2. SYNCOPE-929-revised.patch
          2 kB
          Colm O hEigeartaigh

          Issue Links

            Activity

              People

              • Assignee:
                coheigea Colm O hEigeartaigh
                Reporter:
                smyura Iurii Smyrnov
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: