[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:
Cloners
clones MAGNOLIA-4520 farFutureCaching and Resource files w... Closed
Relates
relates to MAGNOLIA-2343 Replace current implementation for se... Closed
relates to MGNLRES-152 Generate links to resources, and use ... 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
Release notes required:
Yes
Date of First Response:

 Description   

As a result of the thread in
http://forum.magnolia-cms.com/forum/thread.html?threadId=6eadb707-e2ee-4fc8-98c2-b931cd85b84b&page=1
this issue:

When filenames in the resource directory contain dots, and the farFuturecaching is set to true, the files cannot be found.
(for example jquery-1.7.1.js, core.module.js or jsscript.min.js)

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 MAGNOLIA-2343 is resolved...

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