How to handle special characters in url? | Community
Skip to main content
May 20, 2017
Solved

How to handle special characters in url?

  • May 20, 2017
  • 1 reply
  • 1502 views

When I am hitting this url in my local http://localhost:4502/content/abc/def/Services/improve-it/trade-in-landing/%7b%7bprods.imageURL%7d%7d.html ,aem is unable to handle request and going into infinite loop.
The processing of url is not stopping.I am using AEM 6.2 SP1.It is impacting performance in testing environments.Ideally, if url does not exist then it should redirect to error page in publish.The same is not happpening.

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 MC_Stuff

Hi Roshan,

     It is not aem instead JDK restricting the RFC2396. The caller should encode the url.    As an workaround you can have filter by making use of URLEncoder and URLDecoder to overcome such issue which happens with external integration.    Anyway infinite loop might be your custom implementation like rewriter, other packages causing it because i am not able to reproduce on out of the box.  If you are able to reproduce without custom implementation, then report to official support team to get a fix.    

Thanks,

1 reply

MC_Stuff
MC_StuffAccepted solution
Level 10
May 20, 2017

Hi Roshan,

     It is not aem instead JDK restricting the RFC2396. The caller should encode the url.    As an workaround you can have filter by making use of URLEncoder and URLDecoder to overcome such issue which happens with external integration.    Anyway infinite loop might be your custom implementation like rewriter, other packages causing it because i am not able to reproduce on out of the box.  If you are able to reproduce without custom implementation, then report to official support team to get a fix.    

Thanks,