Details

    • Type: Bug
    • Status: Closed
    • Priority: Neutral
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4
    • Component/s: None
    • Labels:
      None

      Description

      Command sendMail is bootstrapped upon clean install version of version 4.5.x (different location, same UUID). When updating to 5.4.x, there is a delta builder install task that tries to re-bootstrap this file using the default ImportUUIDBehavior, causing failure of the install:

      2016-10-21 15:31:37,763 ERROR info.magnolia.module.InstallContextImpl           : [393/1206 tasks - Magnolia Mail Module (version 5.4.0-beta1)]> Error while installing or updating mail module. Task 'Bootstrap mail commnand' failed. (ItemExistsException: a node with uuid d3ce3d3f-80b8-43c8-941c-97cefdfd2ec1 already exists!)
      java.lang.RuntimeException: Error importing config.modules.mail.commands.default.sendMail: a node with uuid d3ce3d3f-80b8-43c8-941c-97cefdfd2ec1 already exists!
              at info.magnolia.importexport.DataTransporter.importXmlStream(DataTransporter.java:385)
              at info.magnolia.importexport.DataTransporter.importXmlStream(DataTransporter.java:240)
              at info.magnolia.importexport.BootstrapUtil.bootstrap(BootstrapUtil.java:135)
              at info.magnolia.module.delta.BootstrapResourcesTask.execute(BootstrapResourcesTask.java:73)
              at info.magnolia.module.ModuleManagerImpl.applyDeltas(ModuleManagerImpl.java:545)
              at info.magnolia.module.ModuleManagerImpl.installOrUpdateModule(ModuleManagerImpl.java:527)
              at info.magnolia.module.ModuleManagerImpl$1.doExec(ModuleManagerImpl.java:302)
              at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:429)
              at info.magnolia.context.MgnlContext$VoidOp.exec(MgnlContext.java:426)
              at info.magnolia.context.MgnlContext.doInSystemContext(MgnlContext.java:400)
              at info.magnolia.module.ModuleManagerImpl.performInstallOrUpdate(ModuleManagerImpl.java:296)
              at info.magnolia.module.ui.ModuleManagerWebUI$2.run(ModuleManagerWebUI.java:123)
              at java.lang.Thread.run(Thread.java:745)
      Caused by: org.xml.sax.SAXException: a node with uuid d3ce3d3f-80b8-43c8-941c-97cefdfd2ec1 already exists!
      javax.jcr.ItemExistsException: a node with uuid d3ce3d3f-80b8-43c8-941c-97cefdfd2ec1 already exists!
              at org.apache.jackrabbit.core.xml.SysViewImportHandler.processNode(SysViewImportHandler.java:104)
              at org.apache.jackrabbit.core.xml.SysViewImportHandler.endElement(SysViewImportHandler.java:248)
              at org.apache.jackrabbit.core.xml.ImportHandler.endElement(ImportHandler.java:195)
              at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
              at info.magnolia.importexport.filters.ImportXmlRootFilter.endElement(ImportXmlRootFilter.java:78)
              at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
              at info.magnolia.importexport.filters.SkipNodeFilter.endElement(SkipNodeFilter.java:102)
              at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
              at info.magnolia.importexport.filters.RemoveMixversionableFilter.endElement(RemoveMixversionableFilter.java:123)
              at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
              at info.magnolia.importexport.filters.VersionFilter.endElement(VersionFilter.java:86)
              at org.xml.sax.helpers.XMLFilterImpl.endElement(XMLFilterImpl.java:570)
              at info.magnolia.importexport.filters.MagnoliaV2Filter.endElement(MagnoliaV2Filter.java:91)
              at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source)
              at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
              at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
              at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
              at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
              at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
              at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
              at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
              at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
              at org.xml.sax.helpers.XMLFilterImpl.parse(XMLFilterImpl.java:357)
              at info.magnolia.importexport.DataTransporter.importXmlStream(DataTransporter.java:342)
              ... 12 more
      

      Background

      This did not happen in previous versions / bundles because the admininterface-legacy was taking care of the removal of the legacy config node, see https://git.magnolia-cms.com/projects/MODULES/repos/admininterface-legacy/browse/src/main/java/info/magnolia/module/admininterface/setup/AdminModuleVersionHandler.java#194 With the removal of this module, the error re-surfaced.

      Side note

      This is problem is only likely to occur, when coming from 4.5 without STK installed – going to 5.5 without STK installed.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                pmundt Philip Mundt
                Reporter:
                pmundt Philip Mundt
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: