Hi, best whishes to you all for this new year !I've been trying to create an AMP module, which imports an ACP file on its first running.I've configured my bootstrap-context as follows :
…
<property name="importer" ref="spacesBootstrap"/>
<property name="bootstrapViews">
<list>
<props>
<!– path must exist –>
<prop key="path">/${spaces.company_home.childname}/${spaces.dictionary.childname}/${spaces.scripts.childname}</prop>
<prop key="location">alfresco/module/my-module/bootstrap/myArchive.acp</prop>
<prop key="uuidBinding">UPDATE_EXISTING</prop>
</props>
</list>
</property>
…
But it seems my 'uuidBinding' property is not working at all : whatever the value I use (REMOVE_EXISTING, REPLACE_EXISTING, UPDATE_EXISTING, ...), I'm always getting this :Caused by: org.alfresco.error.AlfrescoRuntimeException: 00030001 Bootstrap failed
at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:361)
at org.alfresco.repo.module.ImporterModuleComponent.executeInternal(ImporterModuleComponent.java:107)
at org.alfresco.repo.module.AbstractModuleComponent.execute(AbstractModuleComponent.java:353)
… 51 more
Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 64; column 16 due to error: Duplicate child name not allowed: script.js
at org.alfresco.repo.importer.view.ViewParser.parse(ViewParser.java:194)
at org.alfresco.repo.importer.ImporterComponent.parserImport(ImporterComponent.java:379)
at org.alfresco.repo.importer.ImporterComponent.importView(ImporterComponent.java:228)
at org.alfresco.repo.importer.ImporterBootstrap.doImport
Can someone explain me how I'm supposed to use this property ? I suspect it works with UUID, and not cm:name… But then, how can I replace a node which has the same name ?Thanks !PS : I use 3.4b