Skip to main content
aem_guy
New Participant
October 10, 2016

AEM 6.2 httpservlet request getPathInfo returns null

  • October 10, 2016
  • 3 replies
  • 2294 views

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
New Participant
April 1, 2017

Hi,

Make sure http jetty bundle is 3.0.2 or higher.

Thanks,

vjetty
New Participant
March 31, 2017

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! 

gruberroland_ne
New Participant
March 31, 2017

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