-
Improvement
-
Resolution: Obsolete
-
Neutral
-
5.4
-
None
-
-
Empty show more show less
-
Basel 32
-
1
ClasspathScanner only detects resources files which are deleted and added. Folders are not identified upon modification , hence , ClasspathResourceOrigin is not cleaning up those deleted folders from its cache ClasspathResourceOrigin#resourceCache.
Use case:
given(user).hasResourceWithPath("/foo/bar.yaml");
when(user).deletesFolder("/foo/");
then(system).willDetectAndRemove("/foo/bar.yaml");
then(system).willStillHaveFolder("/foo/");
Possible fix for this issue is;
Upon deletion of a resource, we know that its a deletion action, and hence, we can just simply go and check the root of a given resource is yet present in ClasspathResourceOrigin#updateResourceFor(String resourcePath)
- is related to
-
MAGNOLIA-6338 New template scripts on the classpath are not loaded
- Closed
- is superseded by
-
MAGNOLIA-6523 Refactor ClasspathResourceOrigin and stabilise its hot resource modification support
- Closed