My AEM component is working in all environments but once I put it into a Publish instance on my AEM it stops working. Furthermore, I tried on my localhost:4502, localhost:4503 and dispatcher localhost:8085 and everything works there so I don’t think the dispatcher is playing a role on this.
Works here (All Author parts on the URL):
https://author-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2/jcr:content/root/container/cnt_full_width_conta_125908056/container/container_1541102346/imagerotator.assets.json?url=https://author-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2.html?wcmmode=disabled&mode=selections&_=1699028963919
Does not work here (All Publish parts on the URL):
https://publish-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2/jcr:content/root/container/cnt_full_width_conta_125908056/container/container_1541102346/imagerotator.assets.json?url=https://publish-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2.html?wcmmode=disabled&mode=selections&_=1699028963919
BUT, this works (First Author and then Publish):
https://author-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2/jcr:content/root/container/cnt_full_width_conta_125908056/container/container_1541102346/imagerotator.assets.json?url=https://publish-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2.html?wcmmode=disabled&mode=selections&_=1699028963919
I am using AEM as a Cloud Service.
Thank you
More info:
Here is how the page appears that shows the broken component: https://publish-p45436-e207252.adobeaemcloud.com/en/Image-Rotator-test-2/
Even if I tried to use the link modification by the dispatcher, https://publish-p45436-e207252.adobeaemcloud.com/en/Image-Rotator-test-2/jcr:content/root/container/cnt_full_width_conta_125908056/container/container_1541102346/imagerotator.assets.json?url=https://publish-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2.html?wcmmode=disabled&mode=selections&_=1699028963919
it does not work...
SOLUTION -------------
It turns out that there was an OSGI configuration called org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.cfg.json on my code, there was a mapping that did not allowed the resources to map correctly. So I deleted the json file and now it is working!
Topics help categorize Community content and increase your ability to discover relevant content.
Views
Replies
Total Likes
Hi,
The resource is giving 404. Most likely you need to publish something, you don't have permission to read that path, or your dispatcher is blocking the call to that resource. Also please review whatever logic you are applying while calling this path: https://publish-p45436-e207252.adobeaemcloud.com/content/jm/global/en/index/Image-Rotator-test-2/jcr...
updated question with the solution
Views
Replies
Total Likes
Yes, updated the question with the solution!
Views
Replies
Total Likes
@JM-JosePerez Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.
Views
Replies
Total Likes
Updated the question with the solution.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies