Problem in posting a defect into rtc project workitem via postman ?
As i am trying to post a defect into rtc project which i have created in the cloud (sandbox trial version on cloud Version 6.0.5) through postman in return i am getting permission denied error...
In UI i can create a defect with same user who is having admin privileges but can not do the same in postman with basic authentication.
My json request for creation of defect
{
"dc:title": "Create rtc 3nd defect for demo from API.",
"dc:creator": {
"rdf:resource": "https://jazz.net/sandbox01-jts/users/**"
},
"rtc_cm:filedAgainst": {
"rdf:resource": "https://jazz.net/sandbox01-ccm/resource/itemOid/com.ibm.team.workitem.Category/_yaSmEd5FEee3zIcQmz-0Eg"
},
"oslc_cm:severity": {
"rdf:resource": "https://jazz.net/sandbox01-ccm/oslc/enumerations/_yaSmEd5FEee3zIcQmz-0Eg/severity/severity.literal.l1"
},
"oslc_cm:priority": {
"rdf:resource": "https://jazz.net/sandbox01-ccm/oslc/enumerations/_yaSmEd5FEee3zIcQmz-0Eg/priority/priority.literal.l1"
},
"rtc_cm:com.ibm.team.workitem.attribute.howFound": {
"rdf:resource": "https://jazz.net/sandbox01-ccm/oslc/enumerations/_yaSmEd5FEee3zIcQmz-0Eg/howFound/howFound.literal.l3"
},
"rtc_cm:foundIn": null,
"rtc_cm:projectArea": {
},
"rtc_cm:teamArea": null,
"rtc_cm:approvals": null
}
Please provide some guidance/suggestions or anything i am doing wrong and thanks in advance.
Accepted answer
The error message is a bit misleading. It is very likely that the HTTP request header X-Jazz-CSRF-Prevent is missing. You need this header with the cookie JSESSIONID content as its value. The same issue was discussed in the comment session of the below article.
https://jazz.net/library/article/352
Comments
Ralph Schoon
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER Dec 13 '17, 7:17 a.m.There is no information to be able to provide information. No real error message, no headers that are most important. See How should I ask a question in the Forum if I want to receive useful answers?
Consider the permission error to be correct due to some factor:
wrong login etc.
Arvind Sahu
Dec 14 '17, 1:59 a.m.sorry for that , as i am new
Arvind Sahu
Dec 14 '17, 2:02 a.m.