[MAGNOLIA-5712] farFutureCaching and Resource files with dot in name cannot be found Created: 13/Mar/14 Updated: 22/May/15 Resolved: 04/Jul/14 |
|
| Status: | Closed |
| Project: | Magnolia |
| Component/s: | cache |
| Affects Version/s: | 4.5.3, 5.2.2 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major |
| Reporter: | Roman Kovařík | Assignee: | Robert Šiška |
| Resolution: | Obsolete | Votes: | 0 |
| Labels: | maintenance | ||
| 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)
|
||||||||||||||||||||
| Bug DoR: |
[ ]*
Steps to reproduce, expected, and actual results filled
[ ]*
Affected version filled
|
||||||||||||||||||||
| Release notes required: |
Yes
|
||||||||||||||||||||
| Date of First Response: | |||||||||||||||||||||
| Description |
|
As a result of the thread in When filenames in the resource directory contain dots, and the farFuturecaching is set to true, the files cannot be found. The regular expression in /modules/cache/virtualURIMapping/tildeCacheRessources/fromURI (\.*)\.(\d{4}-(?:\d{2}-){5}\d{3})\.cache\.(css|js)
doesn't seem to handle occurences of dots in the filename itself. (not all dots get replaced by a tilde?) |
| Comments |
| Comment by Robert Šiška [ 04/Jul/14 ] |
|
The default URI mapping (URI2RepositoryMapping) still has this problem, but in 5.x, URI2ResourcesRepositoryMapping from resources module that is used by default (which "solves" it by ignoring extensions). Since it's not causing problems and we're still looking for nicer solution than on 4.5.x, we leave the core mapping unchanged until |