Details
-
Bug
-
Resolution: Won't Do
-
Major
-
None
-
3.6.6, 4.0.2, 4.1.1
-
None
-
OSX 10.5.57 - tomcat, jetty, ...
Description
While this is probably not a very common use-case, we ran into this problem with integration tests on osx 10.5.7
Indeed, tmp files are now going to /var/folders/some-unique-path - and (sometimes?) this path contains +'s:
2009-06-30 16:23:23.200::INFO: Extract jar:file:/Users/gjoseph/Dev/magnolia/svn-branches/magnolia-bundle-3.6/magnolia-bundled-webapp/target/magnolia-bundled-webapp-3.6.6-SNAPSHOT.war!/ to /var/folders/Ca/Cay4JfEtFGyfVhgQhPjJ4U+++TI/-Tmp-/Jetty_0_0_0_0_9345_magnolia-bundled-webapp-3.6.6-SNAPSHOT.war__magnoliaAuthor__ovqsl9/webapp D DEBUG info.magnolia.cms.servlets.MgnlServletContextListener MgnlServletContextListener.java(contextInitialized:164) 30.06.2009 16:23:26 rootPath is /private/var/folders/Ca/Cay4JfEtFGyfVhgQhPjJ4U+++TI/-Tmp-/Jetty_0_0_0_0_9345_magnolia-bundled-webapp-3.6.6-SNAPSHOT.war__magnoliaAuthor__ovqsl9/webapp, webapp is webapp
(rootPath is set correctly here)
Somewhere along the road, this path gets url-decoded, resulting in such warnings:
WARN info.magnolia.cms.util.ClasspathResourcesUtil ClasspathResourcesUtil.java(collectFiles:160) 30.06.2009 16:23:26 missing file: /private/var/folders/Ca/Cay4JfEtFGyfVhgQhPjJ4U TI/-Tmp-/Jetty_0_0_0_0_9345_magnolia-bundled-webapp-3.6.6-SNAPSHOT.war__magnoliaAuthor__ovqsl9/webapp/WEB-INF/classes
Still, the repository seems to be correctly loaded:
INFO info.magnolia.jackrabbit.ProviderImpl ProviderImpl.java(init:176) 30.06.2009 16:23:26 Loading repository at /private/var/folders/Ca/Cay4JfEtFGyfVhgQhPjJ4U+++TI/-Tmp-/Jetty_0_0_0_0_9345_magnolia-bundled-webapp-3.6.6-SNAPSHOT.war__magnoliaAuthor__ovqsl9/webapp/repositories/magnolia (config file: /private/var/folders/Ca/Cay4JfEtFGyfVhgQhPjJ4U+++TI/-Tmp-/Jetty_0_0_0_0_9345_magnolia-bundled-webapp-3.6.6-SNAPSHOT.war__magnoliaAuthor__ovqsl9/webapp/WEB-INF/config/repo-conf/jackrabbit-bundle-derby-search.xml)
but the startup ends up failing with
2009-06-30 16:23:33.035::WARN: Failed startup of context org.mortbay.jetty.webapp.WebAppContext@d816d6{/magnoliaAuthor,jar:file:/Users/gjoseph/Dev/magnolia/svn-branches/magnolia-bundle-3.6/magnolia-bundled-webapp/target/magnolia-bundled-webapp-3.6.6-SNAPSHOT.war!/}
java.lang.RuntimeException: javax.jcr.PathNotFoundException: modules
at info.magnolia.module.ModuleManagerImpl.startModules(ModuleManagerImpl.java:346)
at info.magnolia.module.ui.ModuleManagerWebUI.onStartup(ModuleManagerWebUI.java:80)
at info.magnolia.cms.beans.config.ConfigLoader.load(ConfigLoader.java:138)
at info.magnolia.cms.beans.config.ConfigLoader.<init>(ConfigLoader.java:107)
at info.magnolia.cms.servlets.MgnlServletContextListener$1.exec(MgnlServletContextListener.java:178)
Verified this isn't test or jetty specific by simply renaming my apache-tomcat-5.5.27 folder to apache+tomcat-5.5.27 and saw exactly the same symptoms.
Checklists
Acceptance criteria