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? | Community
Skip to main content
jayv25585659
November 16, 2020
Solved

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?

  • November 16, 2020
  • 1 reply
  • 689 views

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

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,

Below location is fine to work in all run mode

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

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
February 17, 2021

Hi,

Below location is fine to work in all run mode

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

Arun Patidar