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

Exceptions after YAML defined template is removed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 5.4.7
    • Fix Version/s: 5.4.7, 5.5
    • Component/s: None
    • Labels:
    • Sprint:
      Basel 46
    • Story Points:
      3

      Description

      After removing a template definition, exceptions are thrown in log.

      This does not happen in 5.4.6
      Possibly brought in by https://git.magnolia-cms.com/projects/PLATFORM/repos/main/pull-requests/158/overview
      (MAGNOLIA-6451)

      To reproduce:
      (You could use the attached zip which contains a "simplest-component" as a light module.)
      (Assuming the resources directory is called light-modules.)

      • Start magnolia
      • Add a simple component by putting its module directory into the light-modules directory.
      • See in the log that it is registered.
      • Remove the module directory from the light-modules directory.
      • Observe exception in log
      2016-05-19 10:50:17,383 ERROR info.magnolia.dirwatch.DirectoryWatcher           : Exception when executing callback for quotation-component: Runtime: Last modified time could not be retrieved for path FileSystemResource{origin=filesystem,path=/quotation-component/dialogs/components/quotation.yaml,file} : java.nio.file.NoSuchFileException: /Users/czimmermann/demos/light-dev/angular/magnolia-5.4.7-SNAPSHOT/apache-tomcat-7.0.64/webapps/magnoliaAuthor/../../../../light-modules/quotation-component/dialogs/components/quotation.yaml
      java.lang.RuntimeException: Last modified time could not be retrieved for path FileSystemResource{origin=filesystem,path=/quotation-component/dialogs/components/quotation.yaml,file} : java.nio.file.NoSuchFileException: /Users/czimmermann/demos/light-dev/angular/magnolia-5.4.7-SNAPSHOT/apache-tomcat-7.0.64/webapps/magnoliaAuthor/../../../../light-modules/quotation-component/dialogs/components/quotation.yaml
      	at info.magnolia.resourceloader.file.FileSystemResourceOrigin.getLastModified(FileSystemResourceOrigin.java:193)
      	at info.magnolia.resourceloader.file.FileSystemResourceOrigin.getLastModified(FileSystemResourceOrigin.java:71)
      ...
      
      Caused by: java.nio.file.NoSuchFileException: /Users/czimmermann/demos/light-dev/angular/magnolia-5.4.7-SNAPSHOT/apache-tomcat-7.0.64/webapps/magnoliaAuthor/../../../../light-modules/quotation-component/dialogs/components/quotation.yaml
      	at sun.nio.fs.UnixException.translateToIOException(UnixException.java:86)
      	at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
      
      

        Checklists

        Acceptance criteria

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                apchelintcev Aleksandr Pchelintcev
                Reporter:
                czimmermann Christopher Zimmermann
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Checklists

                    Bug DoR
                    DoD