[OPENAM-10306] Broken CREST delete realm endpoint Created: 29/Dec/16  Updated: 24/Jan/17  Resolved: 24/Jan/17

Status: Closed
Project: OpenAM
Component/s: configurator
Affects Version/s: 14.0.0-M9
Fix Version/s: None

Type: Bug Priority: Major
Reporter: Stein Myrseth Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates OPENAM-9576 /json/realms endpoint returns 404 whe... Resolved
Rank: 1|hzsp7z:

 Description   

The folloeing statement used to work and is how to delete a sub realm according to documentation.

https://ea.forgerock.com/docs/openam/doc/bootstrap/maintenance-guide/index.html#rest-api-delete-realm

Trying to delete realm named smartcity2.

curl --silent --request DELETE --header 'iPlanetDirectoryPro: AQIC5wM2LY4SfcwCBfarSdhBJf63aSrbZR71srrZyDO4eag.*AAJTSQACMDEAAlNLABQtODI1NTI3NDM1OTg3Njc5MDYyOQACUzEAAA..*' --header 'Content-Type: application/json' http://myiot-am.forgerocklabs.net:8080/openam/json/realms/smartcity2
{
    "code": 404,
    "message": "Resource '\'''\'' not found",
    "reason": "Not Found"
}'

I see in the XUI the following endpoint with an internal identifier is used when sending a HTTP DELETE for the sub realm smartcity2:

http://myiot-am.forgerocklabs.net:8080/openam/json/global-config/realms/L3NtYXJ0Y2l0eTI

Generated at Thu Feb 25 16:37:36 UTC 2021 using Jira 7.13.12#713012-sha1:6e07c38070d5191bbf7353952ed38f111754533a.