Replication agents on publish instances are not configurable | Community
Skip to main content
arturl43391132
Level 4
October 3, 2019
Solved

Replication agents on publish instances are not configurable

  • October 3, 2019
  • 16 replies
  • 6407 views

Hello, AEM Community

I have the following issue: when I click on "edit" in any replication agent on publish instances (on author works fine), the configurable dialog doesn't appear and there is the message in the console:

But dialog is situated under this path.

AEM 6.3.

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 arturl43391132

Hi all of you!

It turned out that Apache Sling Get Servlet is having in configuration "Enable JSON" = false:

Due to this there were 404 requests to request with extensions .json.

Thanks all of you for such active discussions.

16 replies

Adobe Employee
October 3, 2019

You should be able to create replication agents on publish instance without any issues. Can you setup a DEBUG logger on "com.day.cq.replication" and check if you get any mor info on why its failing.

Also, try to disable link checker and check by going directly to the Publish instance and by-passing dispatcher

arturl43391132
arturl43391132AuthorAccepted solution
Level 4
October 4, 2019

Hi all of you!

It turned out that Apache Sling Get Servlet is having in configuration "Enable JSON" = false:

Due to this there were 404 requests to request with extensions .json.

Thanks all of you for such active discussions.

joerghoh
Adobe Employee
Adobe Employee
October 4, 2019

Please do not open the JSON representation of the default get servlet on publish, because then every URL can be fetched with the .json extension and might be handled by the DefaultGetServlet. And if not properly secured, the .2.json might work as well.

Jörg

arturl43391132
Level 4
October 4, 2019

Hi, Jörg Hoh

Thanks for your answer. Well, this is a very good question we are thinking about right now. Could you please give an advice:

-Should "enabling JSON"=true be on publish instance? If yes, is it enough to restrict ".json"-requests to security paths in config dispatcher?

Or do you think that it is bad practice to enable json representation on publish instances?

Thanks, Artur.

joerghoh
Adobe Employee
Adobe Employee
October 4, 2019

In my opinion you should disable it whenever possible on publish. That prevents quite a few angles to extract information from publish instances, often without any negative impact on functionality. There should not be a need to use to configure the replication agents on publish, and the rare occassions you have to you can also use the crxde light to change it directly there.

Jörg

arturl43391132
Level 4
October 4, 2019

Thanks a lot for your consultation! I agree with you.