Problem with multi nested List of configuraiton.


The following porblem has been discovered by one of our teammates. Consider the following issue.

  • Config A has a list of objects let's call B, where B is an array of objects, whereeach object in B is a label and list of objects let's call it C.

  • Create for each item in B, a list of items then save.

  • Try to update the label in any item in B, as a result each sublist under each object in B, will be deleted as a result.
    *The problem is i found it in code, you delete all items in the first level, and as a result in the second level.


Stefan Seifert
October 2, 2017, 11:39 AM

yes this is correct - in sling even version (1.4.6) are always the release versions, uneval versions are used for snapshots (1.4.5-SNAPSHOT in this case).

Shady Eltobgy
October 2, 2017, 11:18 AM

Hi stefan,

I think you meant 1.4.5-snapshot, the only new version i find here is is 1.4.5-SNAPSHOT/

Stefan Seifert
October 2, 2017, 8:25 AM

in this case it should be enough to update the sling caconfig impl bundle to 1.4.6 (once its released - you can test with the snapshot right now).
only if your are using AEM 6.3 you should consider using the caconfig extensions with the "AEM page" persistence strategy - otherwise the partial implementation of such a strategy that is part of AEM 6.3 can produce strange result esp. with nested lists as described in this ticket.

Shady Eltobgy
October 1, 2017, 9:24 AM

Thanks for the info. But, I have a question. Since i am not using the Context-Aware Configuration Extensions. Should i integrate it in my maven in order for this problem to be solved, or the new version Apache Sling Context-Aware Configuration Impl 1.4.6 is enough. Thanks in advance.

Stefan Seifert
September 30, 2017, 1:52 PM

resolved in

  • Apache Sling Context-Aware Configuration Impl 1.4.6

  • Context-Aware Configuration Extensions 1.1.2





Shady Eltobgy




Affects versions