how-to obtain attachment data via OSLC
![]()
I'm trying to write a utility to fix-up work items after a export->import migration from one RTC system to another. But when I process attachments I am unable to obtain the actual attachment data (re: <rtc_cm> ) via the obtained rdf:resource reference.
When I do a get on the rdf:resource URI instead of the content data, I get HTML with the text: Anyone know what I maybe doing wrong or a way around the injected HTML?
Thanks in advance! |
One answer
![]()
Ralph Schoon (60.5k●3●36●43)
| answered Nov 08 '13, 8:08 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER edited Nov 08 '13, 8:08 a.m.
As far as I am aware, there is no officially supported and documented way to download attachments with OSLC/REST. We had the situation several times in the past and the developers suggested to use the API instead as described here: https://rsjazz.wordpress.com/2012/09/21/downloading-attachments-from-work-items/
Having said that, I am aware some users have traced the communication during a download and were able to rebuild the mechanism. |
Comments
Scott, did you ever get this problem resolved? I am getting the same error.
I personally never found a way but right after we did our migration I was in contact with someone who said they were able to do it. They added: