Expand my Community achievements bar.

SOLVED

Permanently disable ReplicationPropertiesFilterFactory

Avatar

Former Community Member

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?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

Screen Shot 2018-06-01 at 3.56.00 PM.png



Arun Patidar

View solution in original post

6 Replies

Avatar

Correct answer by
Community Advisor

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

Screen Shot 2018-06-01 at 3.56.00 PM.png



Arun Patidar

Avatar

Level 2

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

Avatar

Former Community Member

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?                    

Avatar

Community Advisor

Hi,

Could you please try below to stop component permanently.

add component is below config From OSGi config manager

Screen Shot 2018-06-04 at 10.29.06 AM.png

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