Details
-
Bug
-
Resolution: Obsolete
-
Critical
-
None
-
2.0.6
-
None
Description
When the migration task moves the FCK uploaded binaries to the DAM it also removes them from the website repository. Unfortunately however it seems that it does not actually remove the binary but the "text_files" node which contains the binaries. As soon as you have more than one FCK uploaded file in such a node, handling of the second upload will result in this error message:
2015-02-01 22:42:52,428 ERROR info.magnolia.module.InstallContextImpl : > Could not install or update gruene module. Task 'Migration task: Migrate Uploaded content to DAM repository' failed. (TaskExecutionException: javax.jcr.InvalidItemStateException: Item does not exist anymore: a5ccd317-e5a5-4b8a-9131-fb4feb18547d)
info.magnolia.module.delta.TaskExecutionException: javax.jcr.InvalidItemStateException: Item does not exist anymore: a5ccd317-e5a5-4b8a-9131-fb4feb18547d
at info.magnolia.dam.app.setup.migration.MoveContentToDamMigrationTask.doExecute(MoveContentToDamMigrationTask.java:158)
at info.magnolia.module.delta.AbstractRepositoryTask.execute(AbstractRepositoryTask.java:57)
at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:514)
at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:496)
at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:274)
.....
The problem occurs on line 137 of MoveFCKEditorContentToDamMigrationTask where the "fileNode" is being removed. Instead I think the "resourceNode" should be removed. However, when this is changed, the unit tests fail...?