[MAGNOLIA-305] Cache must add default extension befor accessing the file Created: 08/Mar/05  Updated: 05/Nov/12  Resolved: 27/Apr/05

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 2.01
Fix Version/s: 2.1 Final

Type: Bug Priority: Major
Reporter: Andreas Weder Assignee: Sameer Charles
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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
Date of First Response:

 Description   

1. Enter a URL to a file without the .html extension
e.g. http://www.charles-voegele.ch/ch/de/Events/Neueroffnung
2. The cache will create a file without the extension
e.g. /var/cache/public/default/ch/de/Events/Neueroffnung
3. Access a URL below the current page
e.g. http://www.charles-voegele.ch/ch/de/Events/Neueroffnung/Vevey
4. The cache will try to create a directory
e.g. /var/cache/public/default/ch/de/Events/Neueroffnung

The create directory command will fail because there already is a file with that name.

An error is logged:
info.magnolia.cms.core.CacheHandler 08.03.2005 19:52:01 – ERROR – Can not create director
y - /var/cache/public/default/ch/de/Events/Neueroffnung
info.magnolia.cms.core.CacheHandler 08.03.2005 19:52:01 – ERROR – Not a directory
java.io.IOException: Not a directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(File.java:828)
at info.magnolia.cms.core.CacheHandler.cacheURI(CacheHandler.java:86)
at info.magnolia.cms.core.CacheProcess.run(CacheProcess.java:49)



 Comments   
Comment by Sameer Charles [ 27/Apr/05 ]

on svn

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