https://bz.apache.org/bugzilla/show_bug.cgi?id=69365
Bug ID: 69365 Summary: Expose option for WebResource to determine it is read-only/read-write for DefaultServlet/WebdavServlet Product: Tomcat 9 Version: 9.0.95 Hardware: All OS: All Status: NEW Severity: enhancement Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: micha...@apache.org Target Milestone: ----- Both servlets have the method determineMethodsAllowed(). It considers the global flag readOnly, but if the flag is false AND a resource set is explicitly mounted as readOnly=true the modification operation like PUT, DELETE, etc. will fail. Ideally we could do: if (!readOnly || !resource.isReadOnly()) { methodsAllowed.append(", DELETE"); if (!resource.isDirectory()) { methodsAllowed.append(", PUT"); } } References: * https://lists.apache.org/thread/od5b3pn4r39dznls542b3y37f3p5zz39 * https://lists.apache.org/thread/6tz7l2f08z2fs8mmkztxvjxcdqv5642n Maybe there are better ideas to solve that. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org