Hello Team,
I had developed native iOS app (using objective c). In that I am accessing repositories of Documentum. There are two repositories I am accessing, in both repo I am able to fetch Document details. But In one of the repositories response I'm getting Document Contents URL properly and hence document is successfully open in local previewer. But in another repositories Document Contents URL is not Proper in Fact I did get URL so ultimately I'm not able to see document in local previewer. Following
1st Repository Response With NO Proper URL
{
"name": "content",
"properties": {
"object_name": "mydoc.pdf",
"r_object_id": "0600270f8010e652",
"rendition": 0,
"full_format": "pdf",
"format": "2700270f8000019f",
"full_content_size": 679737.0,
"set_time": "2014-05-28T12:21:16.000+0000",
"i_vstamp": 0,
"mime_type": "application/pdf",
"dos_extension": "pdf",
"format_name": "pdf",
"parent_id": [
"0900270f805a0471"
],
"page": [
0
],
"page_modifier": [
null
]
},
"links": [
{
"rel": "self",
"href": "http://devser1:9090/dctm-rest/repositories/tp/objects/0900270f805a0471/contents/content.json"
},
{
"rel": "parent",
"href": "http://devser1:9090/dctm-rest/repositories/tp/objects/0900270f805a0471.json"
}
]
}
2nd Repository Response With Proper URL
{
"name": "content",
"properties": {
"object_name": "TP-ICTECMECM-DA-DFAB-DAC-DAD-A-0020-RB",
"r_object_id": "0603445d801ee810",
"rendition": 0,
"full_format": "pdf",
"format": "2703445d8000019f",
"full_content_size": 551017.0,
"set_time": "2016-11-11T05:00:11.000+0000",
"i_vstamp": 2,
"mime_type": "application/pdf",
"dos_extension": "pdf",
"format_name": "pdf",
"parent_id": [
"0903445d80254032"
],
"page": [
0
],
"page_modifier": [
null
]
},
"links": [
{
"rel": "self",
"href": "http://devser1:9090/dctm-rest/repositories/TPMobile/objects/0903445d80254032/contents/content.json"
},
{
"rel": "enclosure",
"title": "ACS",
"href": "http://DEVSER1:7080/ACS/servlet/ACS?command=read&version=2.3&docbaseid=03445d&basepath=E%3A%5CDocumentum%5Cdata%5CTPMobile%5Ccontent_storage_01%5C0003445d&filepath=80%5C17%5C86%5C2b.pdf&objectid=0903445d80254032&cacheid=dAAEAgA%3D%3DK4YXgA%3D%3D&format=pdf&pagenum=0&signature=VKRGssPORLJMKRLxy7K%2FQQpavwOE9EQtxNYifCQDxTsCFY2F%2FK0sF%2FIBRqRulBigMMbW55%2B2hyOcf%2F0IjTkXP9W%2Fu0czETrvHOHlNtYU0FxwbQdm1GJxF5s04HXhSbWnqUktPH6e8gxa08Ra%2FyXc4n5fvAR2QK5U2LT%2F7IU3fYM%3D&servername=DEVSER1ACS1&mode=1×tamp=1481022412&length=551017&mime_type=application%2Fpdf¶llel_streaming=true&expire_delta=360"
},
{
"rel": "http://identifiers.emc.com/linkrel/content-media",
"title": "ACS",
"href": "http://DEVSER1:7080/ACS/servlet/ACS?command=read&version=2.3&docbaseid=03445d&basepath=E%3A%5CDocumentum%5Cdata%5CTPMobile%5Ccontent_storage_01%5C0003445d&filepath=80%5C17%5C86%5C2b.pdf&objectid=0903445d80254032&cacheid=dAAEAgA%3D%3DK4YXgA%3D%3D&format=pdf&pagenum=0&signature=VKRGssPORLJMKRLxy7K%2FQQpavwOE9EQtxNYifCQDxTsCFY2F%2FK0sF%2FIBRqRulBigMMbW55%2B2hyOcf%2F0IjTkXP9W%2Fu0czETrvHOHlNtYU0FxwbQdm1GJxF5s04HXhSbWnqUktPH6e8gxa08Ra%2FyXc4n5fvAR2QK5U2LT%2F7IU3fYM%3D&servername=DEVSER1ACS1&mode=1×tamp=1481022412&length=551017&mime_type=application%2Fpdf¶llel_streaming=true&expire_delta=360"
},
{
"rel": "parent",
"href": "http://devser1:9090/dctm-rest/repositories/TPMobile/objects/0903445d80254032.json"
}
]
}
Now scenario is, In the 2nd repo response I got 4 objects Links Array and I'm taking object at 1st index which is having href key gives me Document content. As as in 1st repo response I did not get any href link or any other link which leads to document content. I'm quiet confused that mistake or bug is from which side client side or server, whether I'm pointing to wrong url, or server provides me in sufficient data for Opening the Document Content.
Please guide me with your Expertise so I can resolve this bug and Open Document in Local Previewer.
Thanks in advance.