[OPENAM-13860] REST API "PUT /global-config/realms/{realmref}" broken Created: 26/Oct/18 Updated: 03/May/19 Resolved: 03/May/19 |
|
Status: | Closed |
Project: | OpenAM |
Component/s: | API descriptor |
Affects Version/s: | 14.0.0, 14.1.0, 14.1.1, 14.5.0, 14.5.1, 5.5.1, 6.0.0, 6.0.0.1, 6.0.0.2, 6.0.0.3, 6.0.0.4, 6.0.0.5, 6.5.0, 6.5.1 |
Fix Version/s: | None |
Type: | Bug | Priority: | Major |
Reporter: | Bernhard Thalmayr | Assignee: | Unassigned |
Resolution: | Cannot Reproduce | Votes: | 0 |
Labels: | API-Explorer | ||
Remaining Estimate: | Not Specified | ||
Time Spent: | Not Specified | ||
Original Estimate: | Not Specified | ||
Environment: |
Oracle JDK 1.8.0_151-b12 |
Issue Links: |
|
||||||||
Rank: | 1|hzx14v: | ||||||||
Support Ticket IDs: |
Description |
Comments |
Comment by Peter Major [X] (Inactive) [ 26/Apr/19 ] |
Looks like an If-Match: * header is missing from the above request. |
Comment by Jonathan Thomas [ 03/May/19 ] |
The following REST call is successful as outlined in docs: curl --request PUT --header "iplanetDirectoryPro: u..AA." --header "Content-Type: application/json" --header "Accept-API-Version: resource=1.0, protocol=1.0" --data ' {"parentPath": "/", "active": true, "name": "newRealm", "aliases": ["test.example.com","test2.example.com"]}' http://host2.example.com:8080/openam/json/global-config/realms/L25ld1JlYWxt
Where L25ld1JlYWxt is the _id of the realm
_id can be grabbed with the following REST call:
curl -request GET --header "iplanetDirectoryPro: u..AA." --header "Accept-API-Version: resource=1.0, protocol=2.1" http://host2.example.com:8080/openam/json/global-config/realms?_queryFilter=true
Additionally tested on the root realm curl -v --request PUT --header "iplanetDirectoryPro: u..AA." --header "Content-Type: application/json" --header "Accept-API-Version: resource=1.0, protocol=1.0" --data ' {"name": "/", "active": true, "aliases": ["test.example.com","test2.example.com"]}' http://host2.example.com:8080/openam/json/global-config/realms?_queryFilter=true |
Comment by Jonathan Thomas [ 03/May/19 ] |
Could not reproduce in 6.5.1 testing |