Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

webdav 无法在 Koreader 里面打开 #70

Closed
powersee opened this issue Jun 24, 2022 · 8 comments
Closed

webdav 无法在 Koreader 里面打开 #70

powersee opened this issue Jun 24, 2022 · 8 comments

Comments

@powersee
Copy link

您好,我最近发现这个项目挺高兴的,下载了可执行文件后,就可以在我的电脑上开启 web 服务,将里面的文件分享出来。

然后我平时有一个需求,就是使用开源的阅读器 https://github.com/koreader/koreader 来阅读。这个软件有手机版本,也有 kindle 版本,所以我平时使用频率挺高的。

里面有一个云存储的功能,可以添加 webdav 地址,这样就可以在手机或者 kindle,直接下载 webdav 服务器里面的书籍了。但是我发现在软件里,无法访问 dufs 开启的 webdav 服务。

如果我不设置密码,使用手机访问,电脑终端这边会显示

2022-06-24T13:46:55+08:00 INFO - 192.168.68.211 "PROPFIND //" - 404

如果我添加账号密码,则会显示这样

$dufs --allow-upload -a /@admin:123
Listening on:
  http://127.0.0.1:5000/
  http://192.168.68.4:5000/
  http://[::1]:5000/

2022-06-24T13:58:00+08:00 INFO - ::1 "GET /" - 401
2022-06-24T13:58:06+08:00 INFO - ::1 "GET /" - 200
2022-06-24T13:58:23+08:00 INFO - 192.168.68.211 "PROPFIND //" - 401
2022-06-24T14:00:14+08:00 INFO - 192.168.68.211 "PROPFIND //" - 401

我使用过另外一个 webdav 应用 https://github.com/hacdias/webdav
这个可以在 Koreader 里面访问。

不知道问题出现在哪,期待大佬的解答。

@sigoden
Copy link
Owner

sigoden commented Jun 24, 2022

日志显示 "PROPFIND //" ,你设置webdav地址时可以试下带上斜杠。

有些webdav客户端可能不支持 digest auth。你可以尝试--auth-method basic 切换到 basic auth。

@powersee
Copy link
Author

感谢大佬的回复,我按照你说的尝试了。依然还是显示 "PROPFIND //" - 404

$dufs --auth-method basic -a /@admin:123
Listening on:
  http://127.0.0.1:5000/
  http://192.168.68.4:5000/
  http://[::1]:5000/

2022-06-24T23:36:30+08:00 INFO - 192.168.68.211 "PROPFIND //" - 404
2022-06-24T23:36:40+08:00 INFO - 192.168.68.211 "PROPFIND //" - 404

我在手机上尝试了两次连接,就是加斜杠和不加,电脑这边提示的内容都一样。
IMG_20220624_233536

@sigoden
Copy link
Owner

sigoden commented Jun 24, 2022

webdav地址填写: http://192.168.68.4:5000/,下面的路径空着。然后你再试试。

@powersee
Copy link
Author

webdav地址填写: http://192.168.68.4:5000/,下面的路径空着。然后你再试试。

果然可以了,感谢大佬。

2022-06-25T00:59:15+08:00 INFO - 192.168.68.211 "PROPFIND /" - 207

@powersee
Copy link
Author

不好意思,昨晚发现加斜杠之后,可以访问,就把 issue 给关了。现在发现,其实关键在于地址那里加 / ,认证方式其实两者都可以。

不过我发现新的问题了,就是可以查看到文件,但是无法通过 webdav 来下载。

image

电脑端这边提示

2022-06-25T13:47:58+08:00 INFO - 192.168.68.178 "PROPFIND /" - 207
2022-06-25T13:48:04+08:00 INFO - 192.168.68.178 "GET //test.mobi" - 404
2022-06-25T13:50:51+08:00 INFO - 192.168.68.178 "GET //test.mobi" - 404

@powersee powersee reopened this Jun 25, 2022
@sigoden
Copy link
Owner

sigoden commented Jun 25, 2022

这明显是 koreader 的问题吧, 为什么访问时要多带个 /

@sigoden sigoden closed this as completed Jun 25, 2022
@sigoden
Copy link
Owner

sigoden commented Jun 25, 2022

更多细节:koreader/koreader#9061

@powersee
Copy link
Author

好的,谢谢大佬,目前我将 Koreader 升级到 2022.06,问题已经解决了,再次感谢。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants