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

APIs to read by key return 404 instead of 401 for not authenticated calls

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.0.12, 2.1.3
    • 2.0.13, 2.1.4, 3.0.0
    • core
    • None

    Description

      Calling the read API on Users, Groups or AnyObjects like the following example returns 404 in case of object not found even with not authenticated calls.

      Request:

       

      curl -X GET "http://[mysyncopedomain]:[mysyncopeport]/syncope/rest/users/notexistingkey" -H "accept: */*" -H "X-Syncope-Domain: Master"

      Response:

      {"status":404,"type":"NotFound","elements":["NotFoundException: User, Group or Any Object for notexistingkey"]}

       

      Attachments

        Activity

          People

            andrea.patricelli Andrea Patricelli
            andrea.patricelli Andrea Patricelli
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: