Document viewer in trial subscription doesn't work
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
Best Answer
-
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/21
Answers
-
I mean that the URL is generated like this not with my app but in the Viewer Services somewhere inside.
0 -
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/21 -
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',
0 -
@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.
0
Categories
- All Categories
- 117 Developer Announcements
- 52 Articles
- 145 General Questions
- 133 Services
- 56 OpenText Hackathon
- 35 Developer Tools
- 20.6K Analytics
- 4.2K AppWorks
- 9K Extended ECM
- 912 Cloud Fax and Notifications
- 81 Digital Asset Management
- 9.3K Documentum
- 29 eDOCS
- 166 Exstream
- 39.8K TeamSite
- 1.7K Web Experience Management
- 4 XM Fax