Ticket #883 (closed Defect: fixed)
dm4-files: changing the filerepo path config, creating new file browser throws 405
Reported by: | Malte | Owned by: | |
---|---|---|---|
Priority: | Major | Milestone: | Release 4.8 |
Component: | DeepaMehta Standard Distribution | Version: | 4.7 |
Keywords: | Cc: | jri, JuergeN | |
Complexity: | 3 | Area: | |
Module: | deepamehta-files |
Description
Just downloaded a fresh 4.7 release, started it with default config, create my first file browser, stopped it, changed the filerepo path to another path, restarted the engine, now it seems that i cannot create a new file browser, because i get a "Method not allowed".
per-workspace filerepos are OFF
I couldnt find a similar ticket and maybe this is a duplicate but here is the log:
INFORMATION: ##### Logging in as "admin" => SUCCESSFUL! Nov 11, 2015 10:45:33 PM de.deepamehta.plugins.accesscontrol.AccessControlPlugin _login INFORMATION: ##### Creating new session 5i588ic1px8jpqwtlhm6wlv2 (username=admin) Nov 11, 2015 10:45:33 PM de.deepamehta.plugins.topicmaps.TopicmapsPlugin getTopicmap INFORMATION: Loading topicmap 1508 (includeChilds=false) Nov 11, 2015 10:45:37 PM de.deepamehta.plugins.files.FilesPlugin getFolderTopic INFORMATION: Creating Folder topic for repository path "/" Nov 11, 2015 10:45:37 PM de.deepamehta.plugins.files.FilesPlugin checkPath INFORMATION: Checking path "/home/malted/Schreibtisch/filerepo-test" dm4.filerepo.path="/home/malted/Schreibtisch/filerepo-test" => PATH OK Nov 11, 2015 10:45:37 PM de.deepamehta.plugins.files.FilesPlugin checkExistence INFORMATION: Checking existence of "/home/malted/Schreibtisch/filerepo-test" => EXISTS Nov 11, 2015 10:45:37 PM de.deepamehta.plugins.workspaces.WorkspacesPlugin workspaceAssignmentIsSuppressed INFORMATION: Standard workspace assignment for topic 3058 (typeUri="dm4.files.folder_name", uri="") SUPPRESSED Nov 11, 2015 10:45:37 PM de.deepamehta.plugins.workspaces.WorkspacesPlugin workspaceAssignmentIsSuppressed INFORMATION: Standard workspace assignment for association 3061 (typeUri="dm4.core.composition") SUPPRESSED Nov 11, 2015 10:45:37 PM de.deepamehta.plugins.workspaces.WorkspacesPlugin workspaceAssignmentIsSuppressed INFORMATION: Standard workspace assignment for topic 3063 (typeUri="dm4.files.path", uri="") SUPPRESSED Nov 11, 2015 10:45:37 PM de.deepamehta.plugins.workspaces.WorkspacesPlugin workspaceAssignmentIsSuppressed INFORMATION: Standard workspace assignment for association 3066 (typeUri="dm4.core.composition") SUPPRESSED Nov 11, 2015 10:45:37 PM de.deepamehta.plugins.workspaces.WorkspacesPlugin workspaceAssignmentIsSuppressed INFORMATION: Standard workspace assignment for topic 3057 (typeUri="dm4.files.folder", uri="") SUPPRESSED Nov 11, 2015 10:42:56 PM de.deepamehta.core.util.UniversalExceptionMapper logException SCHWERWIEGEND: Request "GET /files/" failed. Responding with 405 (Method Not Allowed). The original exception/error is: javax.ws.rs.WebApplicationException at com.sun.jersey.server.impl.uri.rules.TerminatingRule.accept(TerminatingRule.java:66) at com.sun.jersey.server.impl.uri.rules.ResourceObjectRule.accept(ResourceObjectRule.java:100) at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) at com.sun.jersey.server.impl.uri.rules.RootResourceClassesRule.accept(RootResourceClassesRule.java:84) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1480) at com.sun.jersey.server.impl.application.WebApplicationImpl._handleRequest(WebApplicationImpl.java:1411) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1360) at com.sun.jersey.server.impl.application.WebApplicationImpl.handleRequest(WebApplicationImpl.java:1350) at com.sun.jersey.spi.container.servlet.WebComponent.service(WebComponent.java:416) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:538) at com.sun.jersey.spi.container.servlet.ServletContainer.service(ServletContainer.java:716) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.apache.felix.http.base.internal.handler.ServletHandler.doHandle(ServletHandler.java:339) at org.apache.felix.http.base.internal.handler.ServletHandler.handle(ServletHandler.java:300) at org.apache.felix.http.base.internal.dispatch.ServletPipeline.handle(ServletPipeline.java:93) at org.apache.felix.http.base.internal.dispatch.InvocationFilterChain.doFilter(InvocationFilterChain.java:50) at org.apache.felix.http.base.internal.dispatch.HttpFilterChain.doFilter(HttpFilterChain.java:31) at org.apache.felix.http.base.internal.dispatch.FilterPipeline.dispatch(FilterPipeline.java:76) at org.apache.felix.http.base.internal.dispatch.Dispatcher.dispatch(Dispatcher.java:49) at org.apache.felix.http.base.internal.DispatcherServlet.service(DispatcherServlet.java:67) at javax.servlet.http.HttpServlet.service(HttpServlet.java:722) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:684) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:501) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:229) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1086) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:428) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1020) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:255) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:116) at org.eclipse.jetty.server.Server.handle(Server.java:370) at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:494) at org.eclipse.jetty.server.AbstractHttpConnection.headerComplete(AbstractHttpConnection.java:971) at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1033) at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:644) at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235) at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82) at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:667) at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543) at java.lang.Thread.run(Thread.java:745)
Have you encountered this before? I hope this helps.
Change History
comment:2 Changed 9 years ago by Malte
I just tried it again and now my guess would be, any other value than "/" configured as a filerepo path with per_workspace repos OFF, is going to throw this error.
No matter what i am trying, with a fresh 4.7 and no per_workspace filerepos i could not (yet) succeed to "create" > "new file browser" for any other path than "/" on my hard disk.
Can you reproduce this?
comment:4 Changed 9 years ago by jri
This is a severe bug introduced in 4.7.
In was not there in 4.6.1
We should release 4.7.1 soon.
Thank you for testing!
No difference when i clear/reset the database, so this should/could happen at first boot, too.
Could be a permission issue with the folder on my hard-disk but i "own" it.