Permanently disable ReplicationPropertiesFilterFactory | Community
Skip to main content
June 1, 2018
Solved

Permanently disable ReplicationPropertiesFilterFactory

  • June 1, 2018
  • 6 replies
  • 2652 views

As part of one of the requirements in our site, we need the published date of an asset to be present in the Publish environment. Is there a way to permanently disable ReplicationPropertiesFilterFactory?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

Hi

cq:lastReplicationAction, cq:lastreplicated and cq:lastReplicatedBy properties are not carried over to publish by design. In order to carry over these properties disable the below component in author instance com.day.cq.replication.impl.ReplicationPropertiesFilterFactory

http://localhost:4502/system/console/components

6 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
June 1, 2018

Hi

cq:lastReplicationAction, cq:lastreplicated and cq:lastReplicatedBy properties are not carried over to publish by design. In order to carry over these properties disable the below component in author instance com.day.cq.replication.impl.ReplicationPropertiesFilterFactory

http://localhost:4502/system/console/components

Arun Patidar
smacdonald2008
Level 10
June 1, 2018

Excellent response!

Adobe Employee
June 1, 2018

For the publish date, you could use the more recent of jcr:created or jcr:lastModified on recipient server.

June 4, 2018

Hi Arun,

We have done this.However, this component gets enabled whenever the server restarts. Is there a way to make it not getting enabled on Server restart?                    

arunpatidar
Community Advisor
Community Advisor
June 4, 2018

Hi,

Could you please try below to stop component permanently.

add component is below config From OSGi config manager

OR

Define a sling:OsgiConfig

/apps/mysite/config/com.adobe.acs.commons.util.impl.ComponentDisabler.xml

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:primaryType="sling:OsgiConfig" components="[pid1,pid2]" />

components is an array of the OSGi component PIDs to disable.

Thanks

Arun

Arun Patidar
June 4, 2018

That works.Thanks a lot, Arun.