Permanently disable ReplicationPropertiesFilterFactory | Community
Skip to main content
Jun 1, 2018 9:40 AM UTC
Solved

Permanently disable ReplicationPropertiesFilterFactory

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 1, 2018 1:57 PM UTC

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

6 replies

Jun 4, 2018 8:46 AM UTC

That works.Thanks a lot, Arun.

Translate
arunpatidar
New Participant
Jun 4, 2018 8:30 AM UTC

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

Translate
Arun Patidar
Jun 4, 2018 8:21 AM UTC

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?                    

Translate
Employee
Jun 1, 2018 2:16 PM UTC

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

Translate
smacdonald2008
Level 10
Jun 1, 2018 2:04 PM UTC

Excellent response!

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Jun 1, 2018 1:57 PM UTC

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

Translate
Arun Patidar