[MAGNOLIA-6672] Exceptions after YAML defined template is removed Created: 19/May/16  Updated: 09/Feb/17  Resolved: 27/May/16

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: 5.4.7
Fix Version/s: 5.4.7, 5.5

Type: Bug Priority: Blocker
Reporter: Christopher Zimmermann Assignee: Aleksandr Pchelintcev
Resolution: Fixed Votes: 0
Labels: regression
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Zip Archive simplest-component.zip    
Issue Links:
Relates
relates to MAGNOLIA-6451 YAML configuration: changes in includ... Closed
supersession
supersedes MAGNOLIA-6671 Unexpected exception log statements w... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
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)



 Comments   
Comment by Christopher Zimmermann [ 19/May/16 ]

"Thematically" related to MAGNOLIA-6646

Generated at Mon Feb 12 04:16:44 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.