cancel
Showing results for 
Search instead for 
Did you mean: 

Alf4.2 /api/./cmis atompub HTTPS reverse proxy

dhartford
Champ on-the-rise
Champ on-the-rise
Hi all,
I'm trying to use the chemistry opencmis library via atompub when the server is setup for SSL, but when using the library the app:collection keeps redirecting the URL to a non-secure version.

atompub xml snippet:
<app:collection href="http://..:80


Desired outcome is to use the https:// version expected.

I've tried the spring-webscripts-custom-config.xml approach, but that was apparently for the old CMIS server impl. Using the following API access layer for cmis:

https://<server>/alfresco/api/-default-/cmis/versions/1.0/atom




thanks for any assistance,
-D
2 REPLIES 2

nickburch
Confirmed Champ
Confirmed Champ
By default, Alfresco will tell OpenCMIS to refer to itself in service documents based on the details of the inbound request. However, if you have a reverse proxy in place which is doing the SSL termination, that can mess things up

If you have a look in the full
repository.properties
near the end, you'll see a section for
# URL generation overrides
under <em>OpenCMIS</em>. Those are the properties you can set to tell Alfresco to tell OpenCMIS to call itself something else

The <a href="http://docs.alfresco.com/5.0/tasks/configure-ssl-prod.html">Configuring SSL for a production environment</a> section of the Alfresco deployment guide covers what you normally need to set in your 
repository.properties
to get the write customised/overriden URLs written into the CMIS service descriptors

confirmed, thanks Nick!

The information from http://docs.alfresco.com/5.0/tasks/configure-ssl-prod.html  did the trick for alfresco version 4.2.f (and 5.0).

alfresco-global.properties:

opencmis.server.override=true
opencmis.server.value=https://<external-proxy-host-name>

Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.