*** The wcm.io Project is closing down this JIRA Instance in favor of GitHub issues. ***
Please use the corresponding GitHub projects to report issues - or the mailing list for general discussion.
When we try to configure using "Sample Configuration Nested" from the sample, additional jcr:content is created: /conf/contextaware-config-sample/sample/sling:configs/io.wcm.caconfig.sample.config.ConfigSampleNested/jcr:content/sub2List/item1/jcr:content/sub
Rest of the configuration works absolutely fine. Only at this particular place this additional jcr:content node is being created. It can be reproduced using the example provided in WCON-63. Just replace MenuLinkConfig[] links() with MenuLinkConfig links() in https://wcm-io.atlassian.net/browse/WCON-63#icft=WCON-63 example and it will create an additional jcr:content node : /conf/contextaware-config-sample/sample/sling:configs/io.wcm.caconfig.sample.config..FooterConfig/jcr:content/menu/item1/jcr:content/links
Impact of issue: Though, configuration editor is able to pick this configuration under jcr:content, when we try to get this configuration in the form of json (For headless CMS purpose), configuration under jcr:content is not being picked up. We are using jackson @JsonGetter annotation to convert Context aware configuration class to json. JsonGetter is expecting sub node but it encounters jcr:content.
Please find attached screenshot of the configuration containing additional jcr:content node
Verisons being used:
Context-Aware Configuration Editor 1.8.6
Context-Aware Configuration Extensions 1.8.8
Description:
Additional node jcr:content is being created by the configuration editor. Though, sample included in the https://wcm-io.atlassian.net/browse/WCON-63#icft=WCON-63 works fine now but issue can be reproduced using the sample code provided by wcm-io: https://github.com/wcm-io/wcm-io-caconfig/tree/develop/sample-app
When we try to configure using "Sample Configuration Nested" from the sample, additional jcr:content is created: /conf/contextaware-config-sample/sample/sling:configs/io.wcm.caconfig.sample.config.ConfigSampleNested/jcr:content/sub2List/item1/jcr:content/sub
Rest of the configuration works absolutely fine. Only at this particular place this additional jcr:content node is being created. It can be reproduced using the example provided in WCON-63. Just replace MenuLinkConfig[] links() with MenuLinkConfig links() in https://wcm-io.atlassian.net/browse/WCON-63#icft=WCON-63 example and it will create an additional jcr:content node : /conf/contextaware-config-sample/sample/sling:configs/io.wcm.caconfig.sample.config..FooterConfig/jcr:content/menu/item1/jcr:content/links
Impact of issue:
Though, configuration editor is able to pick this configuration under jcr:content, when we try to get this configuration in the form of json (For headless CMS purpose), configuration under jcr:content is not being picked up. We are using jackson @JsonGetter annotation to convert Context aware configuration class to json. JsonGetter is expecting sub node but it encounters jcr:content.
Please find attached screenshot of the configuration containing additional jcr:content node