Updating the Salesforce Connector jar(cq-mcm-salesforce) to support Proxy server and TLS 1.1 - Adobe CQ5/AEM
Updating the Salesforce Connector jar(cq-mcm-salesforce) to support Proxy server and TLS 1.1 - Adobe CQ5/Adobe Experience Manager(AEM)
Steps to update Salesforce Connector jar(cq-mcm-salesforce) to support Proxy server and TLS 1.1
The AEM Salesforce connector is not supporting the Proxy Server and TLS 1.1 or TLS 1.2 versions:
This is the defect with AEM Salesforce Connector, the connector will not be able to connect to Salesforce server behind the proxy server. The SalesforceClient.java class in the connector should be changed to enable the proxy server.
The connector will not be able to connect to Salesforce server if the Adobe Experience Manager(AEM) server is ruuning with Jave version less than 1.8, Java versions less than 1.8 will not support TLS 1.1 or higher version by default but Salesforce expect TLS 1.1 or TLS 1.2 to establish the connectivity. The SalesforceClient.java class in the connector should be changed to support the TLS 1.1 or TLS 1.2, if the AEM server is running with Java version less than 1.8
I have tested this in Adobe Experience Manager(AEM) 6.1 version, this should be the same case with 6.2 also. Raise an issue with Adobe to get the hotfix until the issue is permanently fixed.
The below is the quick fix to resolve the issue.
Download the /libs/mcm/salesforce/install/cq-mcm-salesforce-1.2.8.jar through package manager
groupId=com.day.cq.mcm
artifactId=cq-mcm-salesforce
version=1.2.8
package=com.adobe.cq.mcm.salesforce
Enter mcm for other values
Execute mvn eclipse:eclipse command in the parent folder of the project and load the project to eclipse
Extract the downloaded jar file and decompile the class files using JAD
Create all the java classes manually in core project with same package details and copy the content from decompiled classes
Replace the pom.xml of core project with the pom.xml content from the decompiled jar