Hello,

When I deploy a bundle with a config.json file containing some osgi:config
nodes, it deletes the configuration I saved for another bundle through the
web console:

First the property value declared by my first bundle is modified from the
web console:

INFO  c.r.o.c - Service
[c.r.o.c.services.models.components.ImageComponentServiceImpl,1410]
ServiceEvent UNREGISTERING
INFO  c.r.o.c - Service
[c.r.o.c.services.models.components.ImageComponentServiceImpl,1451]
ServiceEvent REGISTERED

When I deploy the second bundle with the Maven Sling plugin, the whole
configuration directory is deleted:
INFO  o.a.s.i.p.jcr.impl.JcrInstaller - Removing resource from OSGi
installer: 
[/apps/sling/install/c.r.o.c.services.models.components.ImageComponentServiceImpl.config]
INFO  o.a.s.i.p.jcr.impl.JcrInstaller - Deleting
WatchedFolder:/apps/sling/install, path does not exist anymore
INFO  o.apache.sling.audit.osgi.installer - Deleted configuration
c.r.o.c.services.models.components.ImageComponentServiceImpl from
resource 
TaskResource(url=jcrinstall:/apps/sling/install/c.r.o.c.services.models.components.
   ImageComponentServiceImpl.config,
entity=config:c.r.o.c.services.models.components.ImageComponentServiceImpl,
state=UNINSTALL,
attributes=[service.pid=c.r.o.c.services.models.components.ImageComponentServiceImpl,
resource.uri
.hint=c.r.o.c.services.models.components.ImageComponentServiceImpl],
digest=5474257d3971e3f9a92ac39b2f2d4b69)
INFO  c.r.o.c - Service
[c.r.o.c.services.models.components.ImageComponentServiceImpl,1451]
ServiceEvent UNREGISTERING
INFO  c.r.o.c - Service
[c.r.o.c.services.models.components.ImageComponentServiceImpl,1452]
ServiceEvent REGISTERED

Is that an expected behaviour? How do you handle your configuration? I
looked at many documentation but didn't find any resource that could
explain this problem. Any help would be appreciated :)

Thank you,

Guillaume

Reply via email to