WebdavResource propfindMethod 仅在深度 > 时返回 404 1

发布于 2024-11-25 08:35:45 字数 270 浏览 7 评论 0原文

我最近继承了一个为浏览 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

我也只是我 2024-12-02 08:35:45

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?

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文