I need to expose CMIS externally from a web server with a custom HTTPS domain.I can see that calling the cmis.alfresco.com/service/cmis (user admin/admin) we have the following result:
<?xml version="1.0" encoding="utf-8"?>
<service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:alf="http://www.alfresco.org">
<workspace>
<atom:title>Main Repository</atom:title>
<collection href="http://cmis.alfresco.com:80/service/cmis/s/workspace:SpacesStore/i/87b2f129-3ad0-4a46-a6ea-05ecbfb54aa1/children">
<atom:title>root collection</atom:title>
<cmisra:collectionType>root</cmisra:collectionType>
</collection>
<collection href="http://cmis.alfresco.com:80/service/cmis/types">
<atom:title>type collection</atom:title>
<cmisra:collectionType>types</cmisra:collectionType>
</collection>
<collection href="http://cmis.alfresco.com:80/service/cmis/checkedout">
<atom:title>checkedout collection</atom:title>
<accept>application/atom+xml;type=entry</accept>
<cmisra:collectionType>checkedout</cmisra:collectionType>
</collection>
<collection href="http://cmis.alfresco.com:80/service/cmis/unfiled">
<atom:title>unfiled collection</atom:title>
<accept>application/atom+xml;type=entry</accept>
<cmisra:collectionType>unfiled</cmisra:collectionType>
</collection>
<collection href="http://cmis.alfresco.com:80/service/cmis/queries">
<atom:title>query collection</atom:title>
<accept>application/cmisquery+xml</accept>
<cmisra:collectionType>query</cmisra:collectionType>
</collection>
So the endpoint is http://cmis.alfresco.com:80/service/cmis/, I would like to have a way to configure this setting because from the web server I have a different hostname.But on my system from the web server I have a reference to localhost that is wrong, because when a user try to use CMIS from external, the client return an error about localhost:8080, the following is the response from my system:
<?xml version="1.0" encoding="utf-8"?>
<service xmlns="http://www.w3.org/2007/app" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:cmisra="http://docs.oasis-open.org/ns/cmis/restatom/200908/" xmlns:cmis="http://docs.oasis-open.org/ns/cmis/core/200908/" xmlns:alf="http://www.alfresco.org">
<workspace>
<atom:title>Main Repository</atom:title>
<collection href="http://localhost:8080/alfresco/service/cmis/s/workspace:SpacesStore/i/6195e453-5895-4fce-8c77-e697c8765352/children">
<atom:title>root collection</atom:title>
<cmisra:collectionType>root</cmisra:collectionType>
</collection>
<collection href="http://localhost:8080/alfresco/service/cmis/types">
<atom:title>type collection</atom:title>
<cmisra:collectionType>types</cmisra:collectionType>
</collection>
<collection href="http://localhost:8080/alfresco/service/cmis/checkedout">
<atom:title>checkedout collection</atom:title>
<accept>application/atom+xml;type=entry</accept>
<cmisra:collectionType>checkedout</cmisra:collectionType>
</collection>
<collection href="http://localhost:8080/alfresco/service/cmis/unfiled">
<atom:title>unfiled collection</atom:title>
<accept>application/atom+xml;type=entry</accept>
<cmisra:collectionType>unfiled</cmisra:collectionType>
</collection>
<collection href="http://localhost:8080/alfresco/service/cmis/queries">
<atom:title>query collection</atom:title>
<accept>application/cmisquery+xml</accept>
<cmisra:collectionType>query</cmisra:collectionType>
</collection>
I have tried to change directly the template cmis.get.atomsvc.ftl, but it seems that all the changes that I done are not considered and it seems that the template are not read. Trying to change a section in this FTL template, I don't see any change in the generated HTML…. !?!??!?!?How can I change this settings for CMIS hostname?Or how can I change the FTL template of CMIS?Thank you.