I'm trying to retrieve documents from Alfresco 5.2 Enterprise edition using Apache chemistry client and the AtomPub 1.1 binding . The problem I'm seeing is that the atomPub document has incorrect URLs. For example, when querying https://hostort/alfresco/api/-default-/public/cmis/versions/1.1/atom:
AtomPub document example |
---|
... <cmisra:uritemplate> ... |
The URL in the template is missing the path /alfresco/api. When I run the client program, the Chemistry client is loading that template and future requests will be using that template to build requests, those requests will miss the path /alfresco/api too and the requests will fail.
Questions:
- Is this something we can change by configuring some property? the only relevant documentation I found was: https://docs.alfresco.com/6.0/pra/1/concepts/cmis-config.html and it's not related to the problem.
- Is there a way to configure the AtomPub xml document and change the URLs in it?
I found the solution, I had to add the following properties in the alfresco-global.properties file:
opencmis.context.override=true
opencmis.context.value=
opencmis.servletpath.override=true
opencmis.servletpath.value=
opencmis.server.override=true
opencmis.server.value=https://hostnameort/alfresco/api
similar question here: https://community.alfresco.com/thread/235204-regarding-cmis-11-atompub-service-document
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.