adobe / aem-core-wcm-components

Standardized components to build websites with AEM.
https://docs.adobe.com/content/help/en/experience-manager-core-components/using/introduction.html
Apache License 2.0
733 stars 741 forks source link

Unable to upload page thumbnail #168

Closed bkowalk closed 6 years ago

bkowalk commented 6 years ago

Currently experiencing an issue after installing WCM core components 2.0.6, all pages have lost the ability to have an uploaded thumbnail in their page properties dialog - problematic for us since we're using those thumbnails in page content, not just for convenience inside the sites interface! Hoping someone can shed some light on if this is truly a bug, or if I've missed something in my steps below.

Steps to reproduce:

Is anyone else experiencing the same issue?

Thanks!

bkowalk commented 6 years ago

After further exploration, I believe the issue has been found to be the removal of /apps/core/wcm/components/page/v1/page/clientlibs/editor/js/pagethumbnail.js. This, along with other dialog items, have been removed in order to rely on the built-in "basicpage" component.

However, Adobe's own /libs/cq/gui/components/common/wcm/clientlibs/wcm/js/pagethumbnail.js is out of date and doesn't work with the latest core components, causing all image uploads in the page properties dialog to fail.

Duct tape fix on my instance: I've brought back the removed core pagethumbnail.js and am overriding it onto core components 2.0.6.

Recommended fix: Adobe should update their pagethumbnail.js, and Core components should keep the JS file in place until this update is made.

Thanks!

bpauli commented 6 years ago

@bkowalk, thank you for reporting this issue! I was able to reproduce this issue and we will discuss how to provide a fix for this issue.

NPR-23555

bpauli commented 6 years ago

@bkowalk, we included a fix for this issue for the upcoming SP3 for AEM 6.3.

For the time the SP in not released, a valid workaround would be to add the the pagethumbnail.js from [1] again in the proxy component on project level.

Thanks again for bringing this issue up!

[1] https://github.com/Adobe-Marketing-Cloud/aem-core-wcm-components/blob/core.wcm.components.reactor-2.0.0/content/src/content/jcr_root/apps/core/wcm/components/page/v2/page/clientlibs/editor/js/pagethumbnail.js