AEM 6.2 httpservlet request getPathInfo returns null | Community
Skip to main content
aem_guy
Level 2
Oct 10, 2016 3:17 PM UTC

AEM 6.2 httpservlet request getPathInfo returns null

We have written custom authentication handler extending org.apache.sling.commons.auth.spi.AuthenticationHandler
in which one of the method having HttpServletRequest request object when we call request.getPathInfo returning null in AEM 6.2
whereas working fine in AEM 5.4

could you please provide any inputs to resolve this issue?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

3 replies

MC_Stuff
Level 10
Apr 1, 2017 7:00 AM UTC

Hi,

Make sure http jetty bundle is 3.0.2 or higher.

Thanks,

Translate
vjetty
Level 4
Mar 31, 2017 9:18 PM UTC

Hi, 

Are you using SlingServletHttpRequest? 

If yes, try this

RequestPathInfo pathInfo= request.getRequestPathInfo();    
String resPath= pathInfo.getResourcePath();

This will give you the path. 

And also make sure you are using right version of "org.apache.sling.api" according to the AEM 6.2. Find it through dependency finder http://localhost:4502/system/console/depfinder

Hope this helps! 

Translate
gruberroland_ne
New Participant
Mar 31, 2017 11:33 AM UTC

Same problem here with AEM 6.2, you can use getRequestURI().

Translate