Remove alfresco pixel tracking ssl error?

cancel
Showing results for 
Search instead for 
Did you mean: 
fedorow
Senior Member II

Remove alfresco pixel tracking ssl error?

I want to remove https mixed content error from browser and have clear https secured connection.

I add heartbeat.enabled=true in my alfresco-global.properties but still have on my pages:

http://www.alfresco.com/assets/images/logos/community-5.2-share.png .

It's docker-compose deployment. Alfresco Community 6.2.1-ga behind nginx revers ssl proxy.

How to make pixel URL to httpS or how to replace it to heartbeat?

8 Replies
afaust
Master

Re: Remove alfresco pixel tracking ssl error?

The heartbeat and tracking logo are two separate elements and not related to another, though the tracking logo is a remnant from the time before heartbeat and Alfresco was just too lazy / oblivious to remove it in 6.1.

The best / simplest way of dealing with the tracking logo is just to use a Share Extension Module to completely suppress the footer in both legacy YUI Share pages and Aikau Share pages.

fedorow
Senior Member II

Re: Remove alfresco pixel tracking ssl error?

Unfortunate for some reasons I want to leave footer.

jbrasil
Active Member II

Re: Remove alfresco pixel tracking ssl error?

Hi fedorow,
I have this problem too
Got the solution?
Thanks a lot!
Zé Brasil

james62
Member II

Re: Remove alfresco pixel tracking ssl error?

If you are running Alfresco Share 6.1 or later you can deploy the jar from here https://github.com/phaleth/alfresco-dockerized-https/raw/master/share/modules/jars/share-https-hyper...

 

This jar contains a class file that is built with SDK 4.0, so it won't work with prior versions of Alfresco Share. Also this jar doesn't modify the footer, all it takes care of is the tracking image.

 

The jar file should be deployed to $CATALINA_HOME/webapps/share/WEB-INF/lib

jbrasil
Active Member II

Re: Remove alfresco pixel tracking ssl error?

Hello james62,
All right?
I copied the share-https-hyperlinks-1.0.jar file to the directory below:
/ opt / alfresco / tomcat / webapps / share / WEB-INF / lib

root @ server-process-green-safe: / opt / alfresco / tomcat / webapps / share / WEB-INF / lib # l share-https-hyperlinks-1.0.jar
-rw-r - r-- 1 alfresco alfresco 19K Nov 18 09:36 share-https-hyperlinks-1.0.jar


I reset the alfresco service, and the following error occurred when opening the page:

HTTP Status 404 - Not Found

Type Status Report

Message / share / page /

Description The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
Apache Tomcat / 8.0.53

Do I need to change anything else?
With best regards,
Zé Brasil

james62
Member II

Re: Remove alfresco pixel tracking ssl error?

Hello,

 

The problem is that Tomcat 8.0.53 can't process Java code compiled with JDK 11. Which is what this jar contains.

 

I could post the java source code of the only class file contained within that jar, but you'd have to be able to setup an environment with a lower version of Alfresco SDK and compile it by yourself.

 

Following link provides a pretty decent guide on how to setup SDK for Alfresco, not just the 4.0 version, but prior ones as well.

https://github.com/Alfresco/alfresco-sdk/blob/master/docs/getting-started.md

 

Sorry, I'm aware that not many use Java 11, as great as it is it's still too new.

 

Regards,

~J

joseantonionava
Established Member

Re: Remove alfresco pixel tracking ssl error?

fedorow
Senior Member II

Re: Remove alfresco pixel tracking ssl error?

Thanks! But it's realy "dirty" method.