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

Context aware configuration | Issue with nested configurations #38

Open
janemartin opened this issue Jul 12, 2024 · 1 comment
Open

Comments

@janemartin
Copy link

janemartin commented Jul 12, 2024

Hi Team,

When we author an inner context aware configuration without first authoring the outer configuration, it gets saved as a folder in CRX although we have PagePersistenceStrategy enabled, and when published these changes don’t appear in the publisher. However, if we save the parent configuration before creating the child configuration, it gets saved as a cq:Page without any issues and works as expected. I have provided the detailed steps for more clarity on the issue:

  • Open a new configuration that contains a child configuration.
  • The parent configuration has no fields authored.
  • Directly open the child/inner configuration.
  • Author the inner configuration and save.
  • Now open crx, the configuration is saved as a folder (sling:Folder)

Please note: If we author and save the parent configuration first, then proceed to author child configuration, it works as expected and node is cq:Page. Problem only exists if child configuration is authored first.

Environment: AEMaaCS DEV
Version:2024.6.16971.20240628T122619Z

config_with_child_config
inner_config
crx_folder_node

Please let us know if any solution for this, or if this is the expected behavior. Thanks!

@stefanseifert
Copy link
Member

i was not able to reproduce the problem - neither locally on AEMaaCS SDK nor on an actual AEMaaCS cloud instance.
are you a) using the latest io.wcm.caconfig.editor version and b) using the AEM Page persistence strategy from latest io.wcm.caconfig.extensions?

what i did to try to reproduce the problem:

the node is created as expected with

  • /conf/contextaware-config-sample/sample/sling:configs/io.wcm.caconfig.sample.config.ConfigSampleNested -> cq:Page
  • /conf/contextaware-config-sample/sample/sling:configs/io.wcm.caconfig.sample.config.ConfigSampleNested/jcr:content -> cq:PageContent
  • /conf/contextaware-config-sample/sample/sling:configs/io.wcm.caconfig.sample.config.ConfigSampleNested/jcr:content/sub2 -> nt:unstructured

can you reproduce your problem with our sample app?

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

No branches or pull requests

2 participants