Dear colleagues,
the viewer service doesn't display a document due to it uses an incorrect document download URL. How to fix this issue?
the URL is:
https://na-1-dev.api.opentext.com/v2/content/asd123/download
but should be:
https://na-1-dev.api.opentext.com/css/v2/content/asd123/download
If there are Accepted Answers, those will be shown by default. You can switch to 'All Replies' by selecting the tab below.
It should be generating them with the url https://css.na-1-dev.api.opentext.com/v2/content/asd123/download. This is a special host for large content file transfers - which of course content can be. The https://na-1-dev.api.opentext.com/css/v2/content/asd123/download route is depricated. All css urls embedded in responses from css and other services such as viewing and cms, should be pointing to css.na-1-dev.api.opentext.com so that you can always get a file no matter how large it is. More info here: https://developer.opentext.com/imservices/products/contentstorageservice/documentation/contentstorageserviceoverview/2
I mean that the URL is generated like this not with my app but in the Viewer Services somewhere inside.
Roger, thank you, helped!
a tip - in the example contract_approval app in the DocumentDialogView.jsx use this code:
url: baseUrl.replace ('//', '//css.') + '/v2/content/' + blobId + '/download?avs-scan=false',
@kanishchev, it is possible you are working with an outdated version of the Contract Approval app. In GitHub (https://github.com/opentext/demo-contract-approval-app) you can find the latest version, which is pointing to the proper "https://css.na-1-dev.api.opentext.com"-based URL.