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

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.12, 2.1.3
    • Fix Version/s: 2.0.13, 2.1.4, 3.0.0
    • Component/s: core
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: