Alfresco https cmis url is not working properly

cancel
Showing results for 
Search instead for 
Did you mean: 
sandhya_nair
Partner

Alfresco https cmis url is not working properly

Hi All,

I am using alfresco 6.1 version. We have configured the Alfresco environment using Kubernates on AWS cloud.

Session is taken on HTTPS url but when trying to execute a CMIS Query it is using HTTP url. anyone know why it is taking http url.

String queryString = "SELECT hr:test FROM hr:Test where hr:dldocType = '103";
OperationContext opCon = session.createOperationContext();

opCon.setIncludeRelationships(IncludeRelationships.SOURCE);

   ItemIterable<QueryResult> results = session.query(queryString, false);

      System.out.println("results"+results.getTotalNumItems());

Session Created successfully on https://<hosturl>/alfresco/api/-default-/public/cmis/versions/1.1/atom

STAGING_AREA C:\Temp\filenet\download

----------org.apache.chemistry.opencmis.commons.exceptions.CmisConnectionException: Cannot access "http://<hosturl>:80/alfresco/api/-default-/public/cmis/versions/1.1/atom/query": Connection timed out: connect

 

Thanks & Regards,

Sandhya

 

 

1 Reply
jpotts
Professional

Re: Alfresco https cmis url is not working properly

What is in your alfresco-global.properties file for alfresco.protocol?

You also can try setting:

opencmis.server.override=true
opencmis.server.value=https://your-host-name.com