Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Why do I get "Permission denied" when trying to create a comment for a work item using the OSLC API?

EDIT: This seems to have been a problem with the Firefox RESTClient extension. Accessing the URI from Java did work (cf. my answer). So the problem is solved for me. /EDIT

I'm trying to create a comment for a work item on the RTC cloud trial (https://jazz.net/sandbox01-ccm), using the OSLC API, following https://jazz.net/wiki/bin/view/Main/WorkItemAPIsForOSLCCM20#Adding_comments.

What I did: I sent a POST request to the URI "https://jazz.net/sandbox01-ccm/oslc/workitems/[...]/rtc_cm:comments/oslc:comment" with the following body
{
"dcterms:description": "test comment"
}

What happened: I got the response status code "403 Permission denied" and the message "Your account does not have the group memberships required to access the requested resource.". However, I'm an administrator for this project and in the settings I gave myself all the permissions I could find.

Do you have any ideas why that might be? (I'm new to RTC, so I may be missing something obvious.)

0 votes



One answer

Permanent link
So I tested the above using the Firefox RESTClient extension and it didn't work. Doing it from Java directly did work for some reason. This still doesn't explain why but at least it's not a problem for me anymore.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,940
× 516
× 60

Question asked: Aug 04 '16, 5:54 a.m.

Question was seen: 4,794 times

Last updated: Aug 04 '16, 9:47 a.m.

Confirmation Cancel Confirm