Overwrite rule of bundle initial content cannot be switched back to "false"
---------------------------------------------------------------------------
Key: SLING-1440
URL: https://issues.apache.org/jira/browse/SLING-1440
Project: Sling
Issue Type: Bug
Components: Installer
Affects Versions: OSGi Installer 3.0.2
Environment: Windows XP, Jetty Hightide 7
Reporter: Davide Maestroni
I came across an issue with the <Sling-Initial-Content> setting in my bundle.
As far as I set it to "SLING-INF/content;overwrite:=false" everything works
correctly, i.e. when I re-deploy the bundle the content of the repository is
still there. But, after the first time I deploy it with
"SLING-INF/content;overwrite:=true" there's no way to return to the previous
setting. In fact, even if I re-deploy the bundle with the original
configuration ("SLING-INF/content;overwrite:=false"), the content is deleted
every time.
Here is what I did:
1) deploy the bundle with "overwrite:=false"
2) add some nodes
3) deploy the bundle with "overwrite:=false", the nodes are still there (OK)
4) deploy the bundle with "overwrite:=true", the nodes are deleted (OK)
5) add some nodes
6) deploy the bundle with "overwrite:=false", the nodes are not there (OK,
since uninstall was implicitly true)
7) add some nodes
8) deploy the bundle with "overwrite:=false", the nodes are not there anymore!
(NG)
9) add some nodes
10) deploy the bundle with "overwrite:=false", the nodes are still not there!
(NG)
I tried also to explicitly set the "uninstall" property but with no luck.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.