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

REST-SMS: Creating service with PUT requires name which can be custom value

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: 13.0.0
    • Fix Version/s: None
    • Component/s: rest, REST-SMS, sms
    • Labels:
    • Environment:
      OpenAM 13.0.0-SNAPSHOT Build 14028 (2015-June-02 02:49)
    • Rank:
      1|hzlkuv:

      Description

      REST-SMS: Creating service with PUT requires name what is a redundant and the name can be custom value. Current syntax:
      /json/realm-config/services/<SERVICE NAME>/<REDUNDANT NAME>

      STEP TO REPRODUCE:
      Create a service with REST-SMS endpoint using PUT

      curl -X PUT \
      -H "Content-Type: application/json" \
      -H "iplanetDirectoryPro: <ADMIN TOKEN>" \
      -H "If-None-Match: *" \
      -d '{ }' http://riso-centos7.test.forgerock.com:8080/openam/json/realm-config/services/passwordreset/blabla?_prettyPrint=true
      

      Observed result:
      Service "Password Reset" is created, but the name blabla is nowhere used

      It more makes sense creating service without providing redundant name like in example below:

      curl -X PUT \
      -H "Content-Type: application/json" \
      -H "iplanetDirectoryPro: <ADMIN TOKEN>" \
      -H "If-None-Match: *" \
      -d '{ }' http://riso-centos7.test.forgerock.com:8080/openam/json/realm-config/services/passwordreset?_prettyPrint=true
      

      Observed result for this request:

      {
          "code": 404,
          "reason": "Not Found",
          "message": "Resource '' not found"
      }
      

      Expected result:
      Service "Password Reset" is created

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                richard.hruza Richard Hruza
                QA Assignee:
                Richard Hruza
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: