Java通过URL访问DFS文件系统中的文件
我们正在我们的开发环境中测试一个系统,我们正在将文件系统移动到 DFS 叶子。一切工作正常,除了尝试通过 URL 而不是 UNC 路径访问图像时(对于预览图像 - 它们显示为损坏的链接)。我们认为这是开发服务器上某个根深蒂固的配置问题,与文件系统设置的更改无关,因为当我将其更改为通过 UNC 路径而不是 URL 指向图像时,图像预览会起作用,但我们有过去在 Java 和 DFS 系统中遇到过奇怪的问题( File.getFreeSpace() 不返回正确的值)所以我想知道是否有任何类型的 Java 文档说明通过 URL 通过 DFS 访问文件应该不是问题。谢谢。
We are testing a system in our development environment where we are moving file system to DFS leaves. Everything is working fine except for when images are trying to be accessed via a URL instead of a UNC path (For previewing images - they show up as broken links). We believe it's a deep-rooted configuration issue somewhere on the development servers and not related to the change in the file system setup as the image previews work when I change it to point to the images via UNC path instead of the URL, but we have run into odd problems with Java and DFS systems in the past ( File.getFreeSpace() Not returning correct value) so I was wondering if there was any sort of documentation for Java saying that accessing a file through DFS via a URL should not be an issue. Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗯,问题出在 IIS 设置上,因此通过 Java 中的 URL 访问 DFS 文件系统没有问题:)
Well, the issue was an IIS setting, so there is no issue with accessing a DFS filesystem via URL in Java :)