Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

Where can I place this OSGI config file org.apache.sling.security.impl.ReferrerFilter.xml so it's picked up in both 6.5 author and publisher?

jayv25585659
Level 6
Level 6

as above.

I just want 1 copy of the file in my code base.

As additional info:

the 6.5 author and publisher are sandbox instances setup for us by AMS so we can test our code before we upgrade to 6.5.x.

----------------------
6.5 author

I placed the XML file inside ui.apps/src/main/content/jcr_root/apps/mysite/configs/config. When I checked system/console/configMgr => Apache Sling Referrer Filter, the config stored in the XML file was picked up.

----------------------
6.5 publisher

I placed the XML file in these 2 locations in our 6.5 publisher

  • ui.apps/src/main/content/jcr_root/apps/mysite/configs/config (same location that worked in author)
  • ui.apps/src/main/content/jcr_root/apps/mysite/config

When I checked system/console/configMgr => Apache Sling Referrer Filter, AEM did not pick up the changes inside the file.

If I placed the XML file inside ui.apps/src/main/content/jcr_root/apps/mysite/configs/config.publish, it is working as intended.

----------------------

Any ideas on how to fix? Thanks

Configuration osgi
1 Reply
Arun_Patidar
Community Advisor
Community Advisor

Hi,

Below location is fine to work in all run mode

ui.apps/src/main/content/jcr_root/apps/mysite/config