AEM 6.2 URL Mapping with Resource Resolver not working | Community
Skip to main content
Level 2
January 14, 2017
Solved

AEM 6.2 URL Mapping with Resource Resolver not working

  • January 14, 2017
  • 8 replies
  • 5859 views

Hi All,

I have configured my resource resolver as below, Which is working fine, but after deploying the same into 6.2, the urls are not getting truncated in the links (hrefs), It is giving complete path of page like /content/site1/en/home.html, so please help me in this regard, how to fix this.

Here is my config,

<?xml version="1.0" encoding="UTF-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" jcr:primaryType="sling:OsgiConfig" resource.resolver.allowDirect="{Boolean}true" resource.resolver.manglenamespaces="{Boolean}true" resource.resolver.map.location="/etc/map" resource.resolver.mapping="[/-/,/content/com-blogs/en/(.+)&lt;/$1]" resource.resolver.searchpath="[/apps,/libs,/apps/foundation/components/primary,/libs/foundation/components/primary]" resource.resolver.virtual="[/:/]" resource.resolver.required.providers="[org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory]"/>

Thanks in Advance.

Stack : JDK 8 + AEM 6.2 

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 AnkurAhlawat-1

This is a known granite bug, just install this hotfix and it will work. cq-6.2.0-hotfix-11490-1.0.zip. If you don't have this hotfix, you can ask from day care for same or search in adobe package share.

8 replies

Level 2
February 1, 2017

Hi Maruti,

Did you get a resolution for the same? We are exactly facing the same issue.

Thanks!

Level 2
May 9, 2017

Hi Maruthi,

Is this issue resolved ? I am also having same issue after migrating to AEM 6.2. Please let me know the solution if you have.

Thanks in advance

Level 2
May 9, 2017

Hi Souradeep, 

Is this issue resolved ? I am also having same issue after migrating to AEM 6.2. Please let me know the solution if you have.

Thanks in advance

kautuk_sahni
Community Manager
Community Manager
May 10, 2017

I have asked internal experts to have a look at this one.

~kautuk

Kautuk Sahni
AnkurAhlawat-1
AnkurAhlawat-1Accepted solution
Level 6
May 10, 2017

This is a known granite bug, just install this hotfix and it will work. cq-6.2.0-hotfix-11490-1.0.zip. If you don't have this hotfix, you can ask from day care for same or search in adobe package share.

kautuk_sahni
Community Manager
Community Manager
May 10, 2017

Thanks a lot Ankur for the help here.

Here is the link for the HotFix:

             
DateNameFixesComment
August 1st, 2016Hotfix 11490SLING-5622 - Deadlock between service unregisterIncluded in AEM 6.2 SP1

List of all the AEM 6.2 Hotfix can be found here :- https://helpx.adobe.com/experience-manager/kb/aem62-available-hotfixes.html

~kautuk

Kautuk Sahni
Level 2
May 11, 2017

Hi Kautuk,

Thanks for the response , I already have SP1 installed which has Hotfix 11490 included but still I am having this issue. 

Below hotfixes are also installed :

1. cq-6.2.0-hotfix-11473-1.0.0.zip

2. cq-6.2.0-hotfix-12785-7.0.zip

3. cq-6.2.0-hotfix-14163-1.0.zip

Level 2
May 11, 2017

Hi Kautuk,

If we compare the Resource resolver factory configurations in AEM6.2 and AEM6.2 SP1 then there is a difference in Required Providers.

AEM 6.2 Required Providers: org.apache.sling.jcr.resource.internal.helper.jcr.JcrResourceProviderFactory

AEM6.2 SP1 Required providers : JCR

Not sure if this is the root cause of the issue.

I have attached the config screenshot from both aem instances.