Blank page accessing with dispatcher due to use a sling filter | Community
Skip to main content
February 22, 2022
Solved

Blank page accessing with dispatcher due to use a sling filter

  • February 22, 2022
  • 3 replies
  • 1687 views

Hi All!

 

I'm implementing a maintenance page using a sling filter to intercept the request and redirect if the maintenance page is active. All is working correctly in the author and publish instances but when I access through dispatcher I receive a blank page.

 

Checking dispatcher access logs, i just see 301 codes, I have to check it better with debug logs but It seems that publish don't retrieve the request correctly to the client. In the publish access log I can see the request correctly with a 200 so, It seems that the problem is between publish to dispatcher.

 

Any Idea?

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 joerghoh

When you design such a feature, you should be aware, that the dispatcher is returning cached files without checking back to AEM. That means it can return the cache maintenance page while there is no maintenance window. And vice versa.

 

3 replies

Asutosh_Jena_
Community Advisor
Community Advisor
February 22, 2022

Hi @jonimp95san 

 

As you have mentioned it's 301, so your request is getting redirected at the dispatcher. Can you check in the browser and see where it's getting redirected and if you have any redirects in place for the URL that you use for maintenance page?

 

Thanks!

Shubham_borole
Community Advisor
Community Advisor
February 22, 2022

Are the requests are not hitting the publishers when attempted through dispatchers?. Is it possible to share your dispatcher config file/s? 

joerghoh
Adobe Employee
joerghohAdobe EmployeeAccepted solution
Adobe Employee
February 23, 2022

When you design such a feature, you should be aware, that the dispatcher is returning cached files without checking back to AEM. That means it can return the cache maintenance page while there is no maintenance window. And vice versa.