on 2020 Oct 05 5:33 PM
Hi,
I've started using the Cloud Foundry Document Management (repository and integration options) and I can't work out what I'm doing wrong. Any help at all would be really appreciated.
I've created and onboarded a repository as per the instructions at help.sap.com, and I've also hooked the Reuse UI into my application for testing purposes. When using the API in Postman or my own code, even just trying to create a folder returns me with a "500 Internal Server Error". When using the Reuse UI all of the buttons are disabled so I cannot add anything there either. In the network panel for the Reuse UI I can see it is reaching my endpoint and finding my repository so it's not an error with my app router or destinations.
My main questions are:
Thanks
John
Request clarification before answering.
Hi jmurray91,
The admin url will only allow you to create a new repository when you have assigned the proper roles to a role collection that is assigned to your user. The same applies to the web url.
To add the proper roles to your user, please follow the on-boarding instructions:
To be able to consume the document repository, you must create another service via CF Marketplace - Document Management, integration option (sdm). Once created, you then need to create a service key to get the JWT token credentials for the service:
With that token, you can now call the rest api to interact with your repository via postman.
I suspect you have not added the proper authorizations to your user - hence you have no buttons available on the admin interface. Also, you don't have authorization to create documents, etc.
Once you have all in place, than you can call the rest API end-point /rest/v2/:
Once you get the ECM ID for your repository, you can simply call the sdm url using a compatible CMIS library on your client:
Hope this helps!
Best regards,
Ivan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ivan,
Thanks for you answer. However, I can confirm that I have already created a repository using the API in Postman and also that there is no issues with my roles (I have granted myself all of the possible roles for DM), and that part was actually quite straight forward using the help documentation.
My problem occurs when I try to use a CMIS library to access or do anything with my repository, beyond the simple /browser query. I'm trying to use https://www.npmjs.com/package/cmis if that makes any difference? I'm wondering perhaps if that isn't compatible? Ideally I would like to use a Javascript library as that's what the rest of the code is written in. Unfortunately the errors I'm receiving are unhelpful generic error messages so it's quite hard to work out what I'm doing wrong.
Kind regards
John
I found the correct root folder Id to use this morning, so now the buttons do actually unlock which is great. However it unfortunately still doesn't work when I try and add something, because I get the error: "You must buy additional entitlements to continue with your action. You have exceeded your storage limit.". This doesn't make any sense because I am the global account admin and we're using the cloud credits model so have "unlimited" quota, and it is correctly assigned to the sub-account. I'll raise an OSS message.
Hi Ivan,
we are using both Neo(Because few apps are complex and not able to migrate to CF) and CF. In Cloud foundry I am able to configure DMS app, but we want the same app in neo portal service as well. I am not sure how to achieve this as, in neo there is no DMS service, but some other document service is available.
Is there is any way that we can integrate this CF DMS app to NEO portal service(Embed this app into Neo portal) ?
or Create a web content widget to publish DMS contents by calling API's(Which you listed above) from CF in neo ?
And is it possible that all those access control will work on user for visibility of document/Folder(In neo portal service ) ?
your comments suggestions are highly appreciated.
Regards,
Abhijeet Kankani
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.