[MAGNOLIA-6469] Deleted folders are not detected in ClasspathResourceOrigin Created: 21/Dec/15 Updated: 29/Feb/16 Resolved: 01/Feb/16 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | resource-loader |
| Affects Version/s: | 5.4 |
| Fix Version/s: | 5.4.5 |
| Type: | Improvement | Priority: | Neutral |
| Reporter: | Ilgun Ilgun | Assignee: | Ilgun Ilgun |
| Resolution: | Obsolete | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||
| 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)
|
||||||||||||||||
| Date of First Response: | |||||||||||||||||
| Epic Link: | Resource reloading without restart | ||||||||||||||||
| Sprint: | Basel 32 | ||||||||||||||||
| Story Points: | 1 | ||||||||||||||||
| Description |
|
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"); Possible fix for this issue is; |
| Comments |
| Comment by Michael Mühlebach [ 01/Feb/16 ] |
|
This issue should be solved through |