09-12-2019 08:16 AM
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
09-13-2019 12:51 PM
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
Explore our Alfresco products with the links below. Use labels to filter content by product module.