Hi, install/update the bundles like this:
install test1 install test2 update test1 Right ? In this case, due to overwrite:=true, when updating test1, the subtree /content/contentFolder1 is replaced by what is provided by test1. Thus /content/contentFolder1/contentInFolder2.txt is in fact expected to disappear. While I can explain, what's going on, I am not really sure, whether it really is the correct thing... Regards Felix Am 24.09.2010 11:15, schrieb Ian Boston: > Hi, > I have been looking at the content loader and the overwrite/uninstall logic. > > > I have 2 jars. contenttest1 and contenttest2. Each jar has > > <Sling-Initial-Content>SLING-INF/content;overwrite:=true;uninstall:=false;path:=/contenttest</Sling-Initial-Content> > > content test 1 has > test1/src/ > test1/src//main > test1/src//main/resources > test1/src//main/resources/SLING-INF > test1/src//main/resources/SLING-INF/content > test1/src//main/resources/SLING-INF/content/contentFolder1 > test1/src//main/resources/SLING-INF/content/contentFolder1/contentInFolder1.txt > test1/src//main/resources/SLING-INF/content/contentTest1.txt > > content test2 has > test2/src/ > test2/src//main > test2/src//main/resources > test2/src//main/resources/SLING-INF > test2/src//main/resources/SLING-INF/content > test2/src//main/resources/SLING-INF/content/contentFolder1 > test2/src//main/resources/SLING-INF/content/contentFolder1/contentInFolder1.txt > test2/src//main/resources/SLING-INF/content/contentFolder1/contentInFolder2.txt > test2/src//main/resources/SLING-INF/content/contentFolder2 > test2/src//main/resources/SLING-INF/content/contentFolder2/contentInFolder2.txt > test2/src//main/resources/SLING-INF/content/contentTest1.txt > test2/src//main/resources/SLING-INF/content/contentTest2.txt > > > if I load bundles > contenttest1 > contenttest2 > contenttest1 > > In that order I would expect to see > /contenttest/contentFolder1/contentInFolder1.txt > /contenttest/contentFolder1/contentInFolder2.txt > /contenttest/contentFolder2/contentInFolder2.txt > /contenttest/contentTest1.txt > /contenttest/contentTest2.txt > > with > /contenttest/contentTest1.txt > /contenttest/contentFolder1/contentInFolder1.txt > from contenttest1 > > and > > /contenttest/contentFolder1/contentInFolder2.txt > /contenttest/contentFolder2/contentInFolder2.txt > /contenttest/contentTest2.txt > from contenttest2 > > > What I get is > /contenttest/contentTest1.txt > /contenttest/contentFolder1/contentInFolder1.txt > /contenttest/contentFolder2/contentInFolder2.txt > /contenttest/contentTest2.txt > > > contentFolder1/contentInFolder2.txt is missing, indicating that subfolders > are deleted when uninstall=false even if the content of the sub folder came > from another bundle. > > Bug or expected behaviour ? > Ian