Updating DNG attribute value with POST request using widget throws 403 Forbidden Error
Hello,
Thank you.
|
One answer
A 403 can be caused by a number of things, but in this case it is likely because you are doing a POST (create) when you should be doing a PUT (update). Comments
Jyotsna Prasad
commented Nov 05 '20, 5:03 a.m.
Hello Kirk,
While doing PUT, I get error "PUT <requestURL> 412 (Precondition Failed)" .
I have verified the headers and all relevant headers are present but I am still unable to update DNG artifact attribute.
Could you please guide me?
Thank you.
Ian Barnard
commented Nov 10 '20, 3:12 a.m.
| edited Nov 10 '20, 3:20 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
412 is closer to working than 403 :-) I've seen 412 when a) the etag from the GET wasn't copied correctly into the If-Match header on the PUT, or b) when the etag in If-Match isn't valid any more because an update had been made since the GET, so the old etag from my GET was no longer correct. Don't modify the etag at all, simply copy from etag header into if-match header. As you say you're working in a changeset the second shouldn't apply - if you weren't in a changeset and if someone else had changed the artifact since you collected the etag, then the logic of, perhaps, retrying is a bit perilous because your update might overwrite the other update, so it may be best to stop and let the user decide what to do. |
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.
Comments
Anyway, did you consider using the RM Client Extension API?
Hi Matthias,