[OPENAM-5463] REST PUT - realm is created without providing "If-None-Match: *" header in a request Created: 28/Jan/15  Updated: 14/Sep/15  Resolved: 14/Sep/15

Status: Resolved
Project: OpenAM
Component/s: rest
Affects Version/s: 12.0.0, 13.0.0
Fix Version/s: 12.0.3, 13.0.0

Type: Bug Priority: Major
Reporter: Richard Hruza Assignee: Quentin CASTEL [X] (Inactive)
Resolution: Fixed Votes: 0
Labels: EDISON
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OpenAM 13.0.0-SNAPSHOT Build 12231 (2015-January-28 02:39)


Issue Links:
Relates
relates to OPENAM-5430 REST PUT create realm makes 400 if I ... Resolved
is related to OPENAM-5506 Missing header "If-None-Match: *" for... Closed
Target Version/s:
Rank: 1|hzm4yn:
Sprint: Sprint 78 - Team Newton, Sustaining Sprint 12
QA Assignee: Richard Hruza
Verified Version/s:

 Description   

REST PUT - realm is created without providing "If-None-Match: *" in a request

STEP TO REPRODUCE:
1. Try to create a realm without header "If-None-Match: *"

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

Observed result:

{
  "realmCreated" : "/testRealm"
}

Expected result:

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

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



 Comments   
Comment by David Luna [ 29/Jan/15 ]

CR-5927

Comment by David Luna [ 03/Feb/15 ]

svn 12313

Comment by Richard Hruza [ 04/Feb/15 ]

Verified with: OpenAM 13.0.0-SNAPSHOT Build 12328 (2015-February-04 02:47)

curl --request PUT --header "iPlanetDirectoryPro: <ADMIN TOKEN>" --header "Content-Type: application/json" --data '{ }' "http://riso-centos7.test.forgerock.com:8080/openam/json/realms/testRealm?_prettyPrint=true"

{
  "code" : 404,
  "reason" : "Not Found",
  "message" : "Cannot update realm."
}
Comment by Quentin CASTEL [X] (Inactive) [ 14/Sep/15 ]

Fixed in 12.0.2 r15675

Generated at Fri Mar 05 06:51:39 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.