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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

[AEM Gems Webinar] Accelerating Experience Manager as a Cloud Service development with Rapid Development Environments
SOLVED

How to allow Servlet path in dispatcher domain

Avatar

Level 3

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"}

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"}