Request for Guidance on Modifying IBM ELM Personal Dashboard via Java
Hello Team,
I am currently working on a task to programmatically modify the IBM ELM personal dashboard, specifically to add or remove Open Social Gadgets (OSG) using Java.
I would appreciate your insights on the approach I am taking and where I might be going wrong.
Here is a summary of the steps I have followed so far:
1. I referred to this article "https://rsjazz.wordpress.com/2021/10/15/elm-authentication/" to understand the authentication process for making requests to IBM ELM. Authentication appears to be working successfully.
2.I was able to make a successful GET request to the dashboard endpoint: https://alm.com/ccm/dashboards/177 The server responded with a 200 OK , and the content type was application/rdf+xml .
3.I then attempted a PUT request to the same endpoint using the modified RDF/XML content from step 2. However, I consistently receive the following error:
{
"errorClass": "com.ibm.team.jfs.app.http.HttpForbiddenException",
"errorMessage": "Blank Security context is not allowed for this resource",
"errorCode": 403
}
4.For the PUT request, I have set the following headers:
If-Match: "36:96a090-c7d6-32fa-b927-cb5c86bcfd1c_2V6Ds4lZEfCVWvN5U2FkgQ"
Content-Type: "application/rdf+xml"
Accept: "application/rdf+xml"
OSLC-Core-Version: "2.0"
The GET request works flawlessly with the current authentication setup, but the PUT request fails with a 403 error. I suspect this might be related to session context, permissions, or how the authentication is being maintained across requests.
Could you please advise on what might be missing or misconfigured in the PUT request? Any suggestions or pointers would be greatly appreciated.
Thanks in advance,
Keshava