Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WKND content spread bad practice wrt to /conf/wknd/settings/wcm #437

Open
yann117 opened this issue Dec 28, 2023 · 1 comment
Open

WKND content spread bad practice wrt to /conf/wknd/settings/wcm #437

yann117 opened this issue Dec 28, 2023 · 1 comment

Comments

@yann117
Copy link

yann117 commented Dec 28, 2023

Expected Behaviour

While editing a Page from the WKND sample website, there should not be warning message logged.

Actual Behaviour

When editing any WKND Page, we can find multiple warning messages in the logs, due to missing jcr:content childresource in the templates.

Analysis / Business impact

These messages indicate that some given Pages (primaryType=cq:Page) do not have any jcr:content child node of primaryType=cq:PageContent.
Technically it is not enforced, but many implementations rely on it, and therefore a warning is written in such a situation.

The recommendation is to always have a jcr:content for cq:Page, which is not the case for:

  • /conf/wknd/settings/wcm
  • /conf/wknd/settings/wcm/templates

Customers taking the WKND sample website as a reference for their own applicative, would ends with the same definition in their applicative template.

Once in production, on the Publishers, this can lead to millions of useless warning messages generated, hindering further analysis of the logs for other important issues.

The WKND code should be fixed to demonstrate the correct definition/structure.

Platform and Version

WKND v3.2.0 (and same in master)

Logs taken while reproducing problem

28.12.2023 12:53:36.764 *WARN* [[0:0:0:0:0:0:0:1] [1703764416762] GET /conf/wknd/settings/wcm/templates/landing-page-template/thumbnail.png.thumb.48.48.png HTTP/1.1] com.day.cq.wcm.core.impl.page.PageImpl page at /conf/wknd/settings/wcm/templates does not have a jcr:content childresource

28.12.2023 12:53:36.764 *WARN* [[0:0:0:0:0:0:0:1] [1703764416762] GET /conf/wknd/settings/wcm/templates/landing-page-template/thumbnail.png.thumb.48.48.png HTTP/1.1] com.day.cq.wcm.core.impl.page.PageImpl page at /conf/wknd/settings/wcm does not have a jcr:content childresource
@yann117
Copy link
Author

yann117 commented Dec 28, 2023

@kwin @davidjgonzalez

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant