Image Core Component Issue in Publish Instance | Community
Skip to main content
Community Advisor
September 27, 2022
Solved

Image Core Component Issue in Publish Instance

  • September 27, 2022
  • 2 replies
  • 2020 views

Is there any known issue with image core components in publish instance? It is loading fine on author but not on publish. I am noticing the image url shortening which is not letting the image to load. I am on 6.5.12 and using core component version 2.19.0

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 GanthiRa1
The issue is when we create a AEM Project using latest Maven Archetypes, it creates the following OSGI default config.publish for the URL Mappings
/apps/myproject/osgiconfig/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.cfg.json
Removing this config fixed the image display issue in publisher.

2 replies

arunpatidar
Community Advisor
Community Advisor
September 27, 2022

Hi,

Image url shortening should not create an issue if you have proper url mapping at apache. 

You may have issue only in publish but not on end user site if accessing directly from publish and by passing dispatcher.

Can you please check if you have those mapping for image url as well?

 

Core component works with path shortening as well.

Arun Patidar
GanthiRa1Community AdvisorAuthor
Community Advisor
September 27, 2022

Hi @arunpatidar Thank you for your reply ! Let me try verifying url mapping at apache. But I feel that it is good if proper image loads on publish as well.

GanthiRa1Community AdvisorAuthorAccepted solution
Community Advisor
October 7, 2022
The issue is when we create a AEM Project using latest Maven Archetypes, it creates the following OSGI default config.publish for the URL Mappings
/apps/myproject/osgiconfig/config.publish/org.apache.sling.jcr.resource.internal.JcrResourceResolverFactoryImpl.cfg.json
Removing this config fixed the image display issue in publisher.
Level 3
November 20, 2024

Deleted the JcrResourceResolverFactoryImpl.cfg.json but still the /content/app not resolving the image. 

GanthiRa1Community AdvisorAuthor
Community Advisor
November 26, 2024

Hi @gvaem Is the issue happening in Auhtor instance or Publisher. Please add some more details.

 

Thanks,

Ganthi.