WebdavResource propfindMethod 仅在深度 > 时返回 404 1
我最近继承了一个为浏览 Webdav 文件结构而构建的 Tomcat 应用程序。在某一时刻,应用程序请求目录树的根(/slide/files/)来构建可视目录树。 为此,调用 WebdavResource 对象的 propfindMethod()。当我调用深度为 1 的方法时,我得到状态 207 和第一级文件的列表。但是当我超过 1 或使用 DepthSupport.DEPTH_INFINITY 时,我得到的只是状态 404。
如果需要有关此问题的任何方面的进一步信息,请询问,因为我什至不确定从哪里开始。
I recently inherited a Tomcat application built to browse a Webdav file structure. At one point, the app requests the root of the directory tree (/slide/files/) to build a visual directory tree.
To do this, the propfindMethod() of a WebdavResource-object is called. When I call the method with a depth of 1, I get status 207 and a list of the 1st level files. But when I go over 1 or use DepthSupport.DEPTH_INFINITY, all I get is status 404.
If further information on any aspect of this problem is needed, just ask, because I'm not even really sure where to start.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
WebDAV PROPFIND 中没有“超过 1”,只有 0、1 或无穷大。
话虽如此,出于性能原因,某些服务器已知不支持无限深度(但在这种情况下,您不应该得到 404)。
你有 HTTP 跟踪吗?
There is no "over 1" in WebDAV PROPFIND, just 0, 1, or infinity.
That being said, some servers are known not to support depth infinity for performance reasons (but in that case, you shouldn't get a 404).
Do you have an HTTP trace?