Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6172

BootstrapFileUtil wraps IOException and JDOMException into RuntimeException without meaningful error message

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Neutral
    • 5.3.9
    • None
    • None
    • None

    Description

      info.magnolia.module.delta.BootstrapFileUtil wraps IOException and JDOMException into RuntimeException without meaningful error message. This is problem for example with info.magnolia.module.delta.PartialBootstrapTask because we should not catch RuntimeException there and then we don't know which resources was cause of fail.

      2015-04-17 10:27:28,280 ERROR info.magnolia.module.InstallContextImpl           : > Could not perform installation: java.net.MalformedURLException
      java.lang.RuntimeException: java.net.MalformedURLException
      	at info.magnolia.module.delta.BootstrapFileUtil.getDocument(BootstrapFileUtil.java:68)
      	at info.magnolia.module.delta.BootstrapFileUtil.getElementsFromXPath(BootstrapFileUtil.java:74)
      	at info.magnolia.module.delta.BootstrapFileUtil.getElementFromXPath(BootstrapFileUtil.java:93)
      

      info.magnolia.module.delta.BootstrapFileUtil also fails on NPE when hierarchy in bootstrap file doesn't contain the node path.

      java.lang.NullPointerException
      at info.magnolia.module.delta.BootstrapFileUtil.getElementAsStream(BootstrapFileUtil.java:102)
      

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mdivilek Milan Divilek
              mdivilek Milan Divilek
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD