DIspatcher for Author Instance | Community
Skip to main content
tc94524330
Level 3
January 28, 2016
Solved

DIspatcher for Author Instance

  • January 28, 2016
  • 17 replies
  • 5949 views

Hi,

I am trying to install dispatcher in front of author instance. When i try to open a page under content, i am getting prompt by login screen but i am enter the credentials admin admin, it still showing only login screen. 

Below are the couple of lines present in error log

 org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials
 org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials
 org.apache.sling.auth.core.impl.SlingAuthenticator getAnonymousResolver: Anonymous access not allowed by configuration - requesting credentials
 GET /libs/granite/core/content/login.html HTTP/1.1] libs.granite.core.components.login.login$jsp j_reason param value 'unknown' cannot be mapped to a valid reason message: ignoring

 

Please reply to this question if anyone already configured dispatcher infront of author instances and if anyone has any steps to follow  for successful installation, that would be great.

 

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 leeasling

Browser cache and incognito mode have will not prevent the dispatcher from caching.  Are you sure you're deleting the dispatcher cache files before trying?

17 replies

Level 8
January 28, 2016

Couple of things to check:

1.  Check that the domain you're using is allowed in the "Apache Sling Referrer Filter" configuration
2.  Make sure your dispatcher.any isn't blocking POST requests to j_security_check (this will be disallowed by default so make sure you add an exception)

Jitendra_S_Toma
Level 10
January 28, 2016

Hi,

It would good, if you could re-check login on the author instance. If login is fine on author instance, then as pointed out by @leeasling, just make sure, all post requests are not blocked at the dispatcher configuration.

Jitendra

tc94524330
Level 3
January 28, 2016

Hi,

@leeasling, i tried those couple of things you told me to check but still i couldn't login in to the page. I am attaching a screenshot from network tab where you can see i am getting a 200 response for j_security_check. 

Please take a look at it once. After 200 response from j_security_check, page is getting a 302 and then again login page is showing up.

Any help or suggestions would be great.

 

Thanks

joerghoh
Adobe Employee
Adobe Employee
January 28, 2016

can you post the dispatcher.any config file?

kind regards,
Jörg

Kunal_Gaba_
January 28, 2016

I guess you need to add new domain of your dispatcher in the externalizer configuration of your author to solve this error- 

http://localhost:4502/system/console/configMgr/com.day.cq.commons.impl.ExternalizerImpl

tc94524330
Level 3
January 29, 2016

Hi,

Thanks for replying. Please find the attached dispatcher.any file. If you can please take a look and see if any issues are there in the configuration. 

tc94524330
Level 3
January 29, 2016

Hi,

Thanks for answering. I tried the change you suggested but it didn't worked out. 

Please let me know if you think of any other configuration change.

 

Thanks

joerghoh
Adobe Employee
Adobe Employee
January 29, 2016

Hi,

it looks like that you cache all responses originating from /libs and /apps. Just in case, purge the complete dispatcher cache and try again.

kind regards,
Jörg

tc94524330
Level 3
January 29, 2016

Hi Jorg,

I delete browser cache, server cache every time i try to login. Even after that i open the links using Incognito window in chrome. There is no way cache can interfere.

 

Thanks

leeaslingAccepted solution
Level 8
January 29, 2016

Browser cache and incognito mode have will not prevent the dispatcher from caching.  Are you sure you're deleting the dispatcher cache files before trying?