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

Swagger filtered GET returns multiple Users/AnyObjects instead of one

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.0.5
    • 3.0.6, 4.0.0
    • core
    • None

    Description

      The bug has been reproduced locally with a Syncope 3.0.5 clean archetype using PGJSONB .
      Basically, if there are 2 users with one email address that contains the other, the GET on Swagger filtered with the fiql expression returns both users. In particular:

      2 users have been created created on Syncope:

      The value "utente.uno@email.it" has been assigned to user1 email
      The value "dueutente.uno@email.it" has been assigned to user2 email

      Then, the GET /users has been executed on Swagger with the fiql expression "email==utente.uno@email.it" and it returned both users.

      On the actual project instead, the problem was found in the same way, but with the attribute email of an AnyObject, with the GET /anyObjects, filtered with AnyObject type and email value

      Attachments

        Issue Links

          Activity

            People

              ilgrosso Francesco Chicchiriccò
              danilos Daniele Cipollone
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: