ICN document view url for CMOD reports

Previous topic - Next topic

venukotte

Hi Guys,
We are trying to launch icn document view url to view cmod reports from custom application. Here is the test url we are using.

https://server.com/navigator/bookmark.jsp?desktop=testcmod&repositoryId=testcmod&docid=_test_doc_id&template_name=Test_Reports&embedded=true

The question I had is the doc id which we are getting from odwek api from cmod is different than doc id which I found ICN is using to view documents. Is there any encryption ICN uses for doc id to view documents using url?

I really appreciate any insight or help on this?

Justin Derrick

Hi.

Yes, after CMOD v9.5.0.3, DocIDs are now encrypted to not only protect them from view, but also to stop them from being re-used or altered. 

You can find the documentation on ODWEK's ODHit here:  https://cmod.wiki/dox/ODapiDoc/v10.5/com/ibm/edms/od/ODHit.html

-JD.
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

rjrussel

Hello,

OnDemand has two api's to get doc ID's, getDocId() and getOpenDocId(). ICN uses getOpenDocId().

the explanation gets a bit tricky. Forgive me for not going into all the details. The important part is if your trying to build a ICN accessible URL you will need to use the getOpenDocId() api. Also note, be sure that the hostname defined to ICN for the CMOD repository matches what you are using in in your custom applications logon() call, otherwise you will get different doc ids and it will not be accessible by ICN. 

Thanks,
RR

Justin Derrick

And here's a more direct link to CMOD ODWEK's getOpenDocId: https://cmod.wiki/dox/ODapiDoc/v10.5/com/ibm/edms/od/ODHit.html#getOpenDocId--
Call:  +1-866-533-7742  or  eMail:  jd@justinderrick.com
IBM CMOD Wiki:  https://CMOD.wiki/
FREE IBM CMOD Webinars:  https://CMOD.Training/
IBM CMOD Professional Services: https://CMOD.cloud

Interests: #AIX #Linux #Multiplatforms #DB2 #TSM #SP #Performance #Security #Audits #Customizing #Availability #HA #DR

venukotte


rjrussel

No, same URL. How are you generating the DOCID and creating the URL? I am assuming you have some custom ODWEK application that is generating them?

-RR