Could not PUT content to an URI, which path sections are already a Collection
-----------------------------------------------------------------------------
Key: CLEREZZA-122
URL: https://issues.apache.org/jira/browse/CLEREZZA-122
Project: Clerezza
Issue Type: Bug
Reporter: Tsuyoshi Ito
Priority: Blocker
Try to PUT an Image to the URI /test/test/foo/test.jpg
- /test/test/foo/test.jpg
java.lang.IllegalArgumentException: <http://localhost:8080/test/test/> is not a
Collection
at
org.apache.clerezza.platform.content.hierarchy.CollectionNode.<init>(CollectionNode.java:48)
at
org.apache.clerezza.platform.content.hierarchy.HierarchyService.getCollectionNode(HierarchyService.java:124)
at
org.apache.clerezza.platform.content.hierarchy.HierarchyNode.getParent(HierarchyNode.java:75)
at
org.apache.clerezza.platform.content.hierarchy.HierarchyService.checkExistence(HierarchyService.java:105)
at
org.apache.clerezza.platform.content.hierarchy.HierarchyService.getHierarchyNode(HierarchyService.java:99)
at
org.apache.clerezza.platform.content.hierarchy.HierarchyService.addToParent(HierarchyService.java:247)
at
org.apache.clerezza.platform.content.hierarchy.HierarchyService.createNonCollectionNode(HierarchyService.java:151)
at
org.apache.clerezza.platform.content.hierarchy.HierarchyService.createNonCollectionNode(HierarchyService.java:272)
at
org.apache.clerezza.platform.content.AbstractDiscobitsHandler.put(AbstractDiscobitsHandler.java:82)
at
org.apache.clerezza.platform.content.DiscobitsTypeHandler.putInfoDiscobit(DiscobitsTypeHandler.java:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.apache.clerezza.triaxrs.RootResourceExecutorImpl.handleWithMethod(RootResourceExecutorImpl.java:463)
at
org.apache.clerezza.triaxrs.RootResourceExecutorImpl.execute(RootResourceExecutorImpl.java:118)
at
org.apache.clerezza.triaxrs.JaxRsHandler.handle(JaxRsHandler.java:468)
at
org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler$RegisteredHandler.handle(PathMappingHandler.java:127)
at
org.wymiwyg.wrhapi.util.pathmappings.PathMappingHandler.handle(PathMappingHandler.java:102)
at
org.apache.clerezza.platform.xhtml2html.Xhtml2HtmlFilter.handle(Xhtml2HtmlFilter.java:52)
at
org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(FilterRunner.java:56)
at
org.apache.clerezza.platform.security.auth.AuthenticatingFilter$1.run(AuthenticatingFilter.java:97)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
at
org.apache.clerezza.platform.security.auth.AuthenticatingFilter.handle(AuthenticatingFilter.java:93)
at
org.wymiwyg.wrhapi.filter.impl.FilterRunner.handle(FilterRunner.java:56)
at
org.wymiwyg.wrhapi.osgi.OsgiWebServerFactory$1.service(OsgiWebServerFactory.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
at
org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:502)
at
org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:389)
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
at
org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181)
at
org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
at
org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
at
org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:64)
at
org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
at org.mortbay.jetty.Server.handle(Server.java:326)
at
org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:534)
at
org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:879)
at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:747)
at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
at
org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
at
org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:520)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.