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

REST PUT create realm makes 400 if I provide "If-None-Match: *" in the request

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.0.0, 12.0.1, 13.0.0
    • Fix Version/s: 12.0.3, 13.0.0
    • Component/s: rest
    • Labels:
    • Environment:
      OpenAM 13.0.0-SNAPSHOT Build 12122 (2015-January-20 02:39)
    • Sprint:
      Sprint 78 - Team Newton, Sustaining Sprint 12

      Description

      REST PUT create realm makes 400 if I provide "If-None-Match: *" in the request

      STEP TO REPRODUCE:
      1. Create a realm

      curl --request PUT --header "iPlanetDirectoryPro: <ADMIN TOKEN>" --header "Content-Type: application/json" --header "If-None-Match: *" --data '{ }' "http://centos6-64.example.com:8080/openam/json/realms/testRealm?_prettyPrint=true"
      

      Observed result:

      {
        "code" : 400,
        "reason" : "Bad Request",
        "message" : "Bad Request"
      }
      

      Expected result:

      {
        "realmCreated" : "/testRealm"
      }
      

      I am able to create a realm, if I don't provide "If-None-Match: *" header.

      After fix, please pass this issue to doc.:
      http://openam.forgerock.org/openam-documentation/openam-doc-source/doc/dev-guide/index.html#rest-api-create-realm

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.castel Quentin CASTEL [X] (Inactive)
                Reporter:
                richard.hruza Richard Hruza
                QA Assignee:
                Richard Hruza
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 2h
                  2h
                  Remaining:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - 1h Remaining Estimate - 1h
                  1h