[MAGNOLIA-557] Cache doesn't work if public isntance is run as root context Created: 01/Oct/05  Updated: 03/Oct/05  Resolved: 03/Oct/05

Status: Closed
Project: Magnolia
Component/s: core
Affects Version/s: 2.1 Final
Fix Version/s: 2.1.1, 3.0 Beta 1

Type: Bug Priority: Minor
Reporter: Markus Strickler Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Apache Tomcat/5.5.9
JDK: 1.5.0_05-b05, Sun Microsystems Inc.
Linux 2.6.12-1.1447_FC4 i386


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   

Used the magnoliaPublic.war and set it up in Tomcat as root context.
On first access of http://www.mysite.net/ the following errors occur in the log:

WARN info.magnolia.cms.servlets.ResourceDispatcher ResourceDispatcher.java(getNodedataAstream:184) 01.10.2005 17:29:14 Resource not found: [/]
ERROR info.magnolia.cms.core.CacheHandler CacheHandler.java(streamURI:200) 01.10.2005 17:29:14 Failed to stream [/features.html] due to a java.io.FileNotFoundException: http://www.mysite.net//features.html
java.io.FileNotFoundException: http://www.mysite.net//features.html
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147)
at info.magnolia.cms.core.CacheHandler.streamURI(CacheHandler.java:193)
at info.magnolia.cms.core.CacheHandler.cacheURI(CacheHandler.java:100)
at info.magnolia.cms.core.CacheProcess.run(CacheProcess.java:43)
ERROR info.magnolia.cms.core.CacheHandler CacheHandler.java(cacheURI:106) 01.10.2005 17:29:14 NOT Caching uri [/features.html] due to a previous error
WARN info.magnolia.cms.servlets.ResourceDispatcher ResourceDispatcher.java(getNodedataAstream:184) 01.10.2005 17:29:14 Resource not found: [/]
ERROR info.magnolia.cms.core.CacheHandler CacheHandler.java(streamURI:200) 01.10.2005 17:29:14 Failed to stream [/features.html] due to a java.io.FileNotFoundException: http://www.mysite.net//features.html
java.io.FileNotFoundException: http://www.mysite.net//features.html
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147)
at info.magnolia.cms.core.CacheHandler.streamURI(CacheHandler.java:193)
at info.magnolia.cms.core.CacheHandler.cacheURI(CacheHandler.java:125)
at info.magnolia.cms.core.CacheProcess.run(CacheProcess.java:43)
ERROR info.magnolia.cms.core.CacheHandler CacheHandler.java(streamURI:200) 01.10.2005 17:29:14 Failed to stream //features.html due to a java.io.FileNotFoundException: http://www.mysite.net///features.html
java.io.FileNotFoundException: http://www.mysite.net///features.html
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1147)
at info.magnolia.cms.core.CacheHandler.streamURI(CacheHandler.java:193)
at info.magnolia.cms.core.CacheHandler.cacheURI(CacheHandler.java:100)
at info.magnolia.cms.core.CacheProcess.run(CacheProcess.java:43)
ERROR info.magnolia.cms.core.CacheHandler CacheHandler.java(cacheURI:106) 01.10.2005 17:29:14 NOT Caching uri //features.html due to a previous error

Page is displayed OK once. Subsequent requests display a blank page.



 Comments   
Comment by Markus Strickler [ 01/Oct/05 ]

Workaround is to set the domain value in server/cache/level1/domain to http://www.mysite.net

Comment by Fabrizio Giustina [ 03/Oct/05 ]

fixed in svn for 2.1.1 and 2.2

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