Skip to main content
tc94524330
Level 3
Jan 28, 2016 2:02 AM UTC
Solved

DIspatcher for Author Instance

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.
leeaslingAccepted solution
Level 8
Jan 29, 2016 9:01 PM UTC

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
Jan 28, 2016 2:09 AM UTC

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)

Translate
Jitendra_S_Toma
Level 10
Jan 28, 2016 4:12 AM UTC

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

Translate
tc94524330
Level 3
Jan 28, 2016 3:19 PM UTC

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

Translate
joerghoh
Adobe Employee
Adobe Employee
Jan 28, 2016 10:03 PM UTC

can you post the dispatcher.any config file?

kind regards,
Jörg

Translate
Kunal_Gaba_
New Member
Jan 28, 2016 11:41 PM UTC

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

Translate
tc94524330
Level 3
Jan 29, 2016 8:06 PM UTC

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. 

Translate
tc94524330
Level 3
Jan 29, 2016 8:08 PM UTC

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

Translate
joerghoh
Adobe Employee
Adobe Employee
Jan 29, 2016 8:33 PM UTC

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

Translate
tc94524330
Level 3
Jan 29, 2016 8:58 PM UTC

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

Translate
leeaslingAccepted solution
Level 8
Jan 29, 2016 9:01 PM UTC

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?

Translate