-
Bug
-
Resolution: Fixed
-
Blocker
-
5.4.7
-
None
-
-
Empty show more show less
-
Basel 46
-
3
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)
Acceptance criteria
- relates to
-
MAGNOLIA-6451 YAML configuration: changes in included files don't trigger a reload of the registered item
- Closed
- supersedes
-
MAGNOLIA-6671 Unexpected exception log statements when queried definition is backed by an empty YAML file
- Closed