Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-6246

Wrong error code in REST-SMS server endpoint when creating existing server

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 13.0.0
    • Fix Version/s: None
    • Component/s: rest, sms
    • Labels:
      None
    • Environment:
       Centos 6, Oracle JDK 7, Tomcat 7, OpenAM 13.0.0-SNAPSHOT Build 14309 (2015-June-20 02:51)
    • Rank:
      1|hzprt3:

      Description

      When I create already existing server I get the wrong error code.

      Steps to reproduce:

      • Send request for creating existing server to endpoint
        example:
        AQIC5wM2LY4SfcxdD8CTXdh8Y_87MYnYlI5bIOcmOEqDA4M.*AAJTSQACMDEAAlNLABMyMDQ3NjczMjEyNzE4Mzc2MTgz*" -H "Content-Type: application/json" -d '{ "_id": "http://local.example.com:18080/openam" }' http://filipam1.internal.forgerock.com:8080/openam/json/global-config/servers?_action=create
        

      expected result:
      conflict error code or something similar

      actual result:

      {"code":500,"reason":"Internal Server Error","message":"Unable to create SMS config: Service already exists"}
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                Filip.Kuban Filip Kubáň [X] (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: