Expand my Community achievements bar.

SOLVED

CUG page in AEM5.6.1: Login redirect not happening

Avatar

Level 2

I have some pages only visible to a group of users via CUG configurations. I have configured a login page to which all the unauthenticated requests should be redirected to.

I have an issue with this redirect. When I hit the secure page, the publish server returns a 404.

The logs show:

    24.08.2015 10:33:11.581 *INFO* [127.0.0.1 [1440408791492] GET /content/site/en/page.html HTTP/1.1] org.apache.sling.engine.impl.SlingRequestProcessorImpl service: Resource /content/site/en/page.html not found
    24.08.2015 10:33:11.582 *INFO* [127.0.0.1 [1440408791492] GET /content/site/en/page.html HTTP/1.1] org.apache.sling.auth.core.impl.SlingAuthenticator login: No handler for request (2 handlers available)
    24.08.2015 10:33:11.582 *WARN* [127.0.0.1 [1440408791492] GET /content/site/en/page.html HTTP/1.1] apps.sling.servlet.errorhandler.404$jsp Cannot login: No Authentication Handler is willing to authenticate

Did someone else face this issue?

1 Accepted Solution

Avatar

Correct answer by
Level 10

* Does the cug protected pages are handled by /etc/maps rewriting?
* Could you please add "html" & "htm" to the property Path Info at [1] and verify.

* Go to http://<host>:<port>/system/console/configMgr/com.day.cq.auth.impl.cug.CugSupportImpl
* Unbind it then save it.

[1] http://<host>:<port>/system/console/configMgr/com.day.cq.auth.impl.LoginSelectorHandler

View solution in original post

8 Replies

Avatar

Level 10

It looks like there are 2 authentications available. do you have some custom authentication handler(s) ? 

Avatar

Correct answer by
Level 10

* Does the cug protected pages are handled by /etc/maps rewriting?
* Could you please add "html" & "htm" to the property Path Info at [1] and verify.

* Go to http://<host>:<port>/system/console/configMgr/com.day.cq.auth.impl.cug.CugSupportImpl
* Unbind it then save it.

[1] http://<host>:<port>/system/console/configMgr/com.day.cq.auth.impl.LoginSelectorHandler

Avatar

Level 2

Hi Lokesh,

I don't have any custom authentication handler. Just the OOTB handlers are there.

[img]Auth-handlers.png[/img]

Avatar

Level 2

Thanks for the reply Sham.

1. We do use resource resolver factory at Apache Sling Resource Resolver [1] to shorten the urls in the generated pages by configuring URL Mappings property as below.

    /content/site/:/

   Even removing this entry does't help.

2. Path Info property at [2] already has "html" and "htm" values configured.

3. Unbind and save action on http://<host>:<port>/system/console/configMgr/com.day.cq.auth.impl.cug.CugSupportImpl did not help.

 

[1] http://<host>:<port>/system/console/configMgr/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl

[2] http://<host>:<port>/system/console/configMgr/com.day.cq.auth.impl.LoginSelectorHandler

Avatar

Level 10

Please engage with official support & This needs screen sharing.

Avatar

Level 2

This was an issue with SP2 on AEM5.6.1. 

Adobe support provided me a hot fix 7880  for the issue which solved the issue.

Interestingly, this is a known issue on SP2 and has not been mentioned in release notes.

Avatar

Level 1

Manender i am also facing this issue once i have upgraded to SP2. Can you please share the 7880 HF which Adobe guys have shared with you?

Avatar

Level 2

Hi Tosheer,

I would suggest you to open a support ticket for this. The reason being the HF 7880 itself caused some regression issues and Adobe should provide another Hotfix instead.