Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

How to allow Servlet path in dispatcher domain

Avatar

Level 4

Working fine on author mode but not in Dispatcher level

I want to allow servlet path in publisher domain sample like:

"/bin/customproject/mylink?myId=178462736472364762"

 

In dispatcher configuration on filter.any file 

added new rule with 

# Allow my link Path
/01 { /type "allow" /url "/bin/mysites/*"}

 

but showing 404 in publish any reference?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

HI,

I would suggest to register a servlet via resourceType but path.

Use a selector and extension during servlet registration and allow those from dispatcher.

 

But answering your original question, Add this at very last or before deny rules

# Allow my link Path
/010 { /type "allow" /path "/bin/customproject/mylink"}



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

HI,

I would suggest to register a servlet via resourceType but path.

Use a selector and extension during servlet registration and allow those from dispatcher.

 

But answering your original question, Add this at very last or before deny rules

# Allow my link Path
/010 { /type "allow" /path "/bin/customproject/mylink"}



Arun Patidar