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
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
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.