[GH-ISSUE #192] Can't open Webdav with Kodi #96

Closed
opened 2026-04-08 16:50:18 +03:00 by zhus · 9 comments
Owner

Originally created by @289699522 on GitHub (Mar 11, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/192

Problem
When use Kodi to mount the dufs's Webdav server,it didn' work.
Kodi无法打开dufs的Webdav服务器,但是kodi可以打开其他Webdav服务器。

Log
Dufs's log shows the status code is 401.

Environment:

  • Dufs version: v0.32.0
  • Browser/Webdav Info: Kodi无法打开
  • OS Info: dufs-v0.32.0-aarch64-unknown-linux-musl.tar.gz
Originally created by @289699522 on GitHub (Mar 11, 2023). Original GitHub issue: https://github.com/sigoden/dufs/issues/192 **Problem** When use Kodi to mount the dufs's Webdav server,it didn' work. Kodi无法打开dufs的Webdav服务器,但是kodi可以打开其他Webdav服务器。 **Log** Dufs's log shows the status code is 401. **Environment:** - Dufs version: v0.32.0 - Browser/Webdav Info: Kodi无法打开 - OS Info: dufs-v0.32.0-aarch64-unknown-linux-musl.tar.gz
zhus closed this issue 2026-04-08 16:50:18 +03:00
Author
Owner

@sigoden commented on GitHub (Mar 11, 2023):

I specifically downloaded kodi, tested it and did not find any issues.

dufs -a /@admin:admin

image

If you still have question, please provide more details

  • Command
  • Logs
  • You kodi config
<!-- gh-comment-id:1464940408 --> @sigoden commented on GitHub (Mar 11, 2023): I specifically downloaded kodi, tested it and did not find any issues. ``` dufs -a /@admin:admin ``` ![image](https://user-images.githubusercontent.com/4012553/224494084-e9287e4e-faaa-434f-bc17-50d1f1b441f4.png) If you still have question, please provide more details - Command - Logs - You kodi config
Author
Owner

@289699522 commented on GitHub (Mar 11, 2023):

I tested again, found the problem is not caused by kodi.
I set two users, user1 and user2. I plan to use user1 to access the whole disk, user2 only access the qbittorrent dictionary.
My hard disk is mounted at /media/st_disk, the qbittorrent dictionary is located at /media/st_disk/qbittorrent.
./dufs -a /@user1:pass1 -a /qbittorrent/@user2:pass2 /media/st_disk
Only user1 can login. user2 can't login both in the browser and WebDAV clients.

<!-- gh-comment-id:1464955972 --> @289699522 commented on GitHub (Mar 11, 2023): I tested again, found the problem is not caused by kodi. I set two users, user1 and user2. I plan to use user1 to access the whole disk, user2 only access the `qbittorrent` dictionary. My hard disk is mounted at `/media/st_disk`, the `qbittorrent` dictionary is located at `/media/st_disk/qbittorrent`. `./dufs -a /@user1:pass1 -a /qbittorrent/@user2:pass2 /media/st_disk` Only user1 can login. user2 can't login both in the browser and WebDAV clients.
Author
Owner

@sigoden commented on GitHub (Mar 12, 2023):

How do you config webdav?

A screenshot please.

Or paste you configuration.

<!-- gh-comment-id:1465043076 --> @sigoden commented on GitHub (Mar 12, 2023): How do you config webdav? A screenshot please. Or paste you configuration.
Author
Owner

@289699522 commented on GitHub (Mar 12, 2023):

Thank you for your reply. But I found a new problem about --auth-method basic.

./dufs -a /@u1:p1 --auth-method basic
The browser repeatedly pops up the login boxand and WebDAV clients also cannot log in.

./dufs -a /@u1:p1 --auth-method digest
The browser and WebDAV clients support digest can login.

<!-- gh-comment-id:1465083052 --> @289699522 commented on GitHub (Mar 12, 2023): Thank you for your reply. But I found a new problem about `--auth-method basic`. `./dufs -a /@u1:p1 --auth-method basic` The browser repeatedly pops up the login boxand and WebDAV clients also cannot log in. `./dufs -a /@u1:p1 --auth-method digest` The browser and WebDAV clients support digest can login.
Author
Owner

@sigoden commented on GitHub (Mar 12, 2023):

This is not a problem with dufs.

DUFS supports two login methods. Browsers also support both. As for which one webdav mainly supports, it's hard to say, but digest supports more.

<!-- gh-comment-id:1465083957 --> @sigoden commented on GitHub (Mar 12, 2023): This is not a problem with dufs. DUFS supports two login methods. Browsers also support both. As for which one webdav mainly supports, it's hard to say, but digest supports more.
Author
Owner

@sigoden commented on GitHub (Mar 12, 2023):

If there are no other questions, please close the issue.

<!-- gh-comment-id:1465084033 --> @sigoden commented on GitHub (Mar 12, 2023): If there are no other questions, please close the issue.
Author
Owner

@289699522 commented on GitHub (Mar 12, 2023):

Sorry, I didn't explain clearly. I main that when I use --auth-method basic, browsers also can't login.
# $ ./dufs -a /@u1:p1 --auth-method basic

# $ curl http://127.0.0.1:5000/ -I --user u1:p1
HTTP/1.1 401 Unauthorized
allow: GET,HEAD,PUT,OPTIONS,DELETE,PROPFIND,COPY,MOVE
dav: 1,2
connection: close
www-authenticate: Basic realm="DUFS"
<!-- gh-comment-id:1465087270 --> @289699522 commented on GitHub (Mar 12, 2023): Sorry, I didn't explain clearly. I main that when I use `--auth-method basic`, browsers also can't login. `# $ ./dufs -a /@u1:p1 --auth-method basic` ``` # $ curl http://127.0.0.1:5000/ -I --user u1:p1 HTTP/1.1 401 Unauthorized allow: GET,HEAD,PUT,OPTIONS,DELETE,PROPFIND,COPY,MOVE dav: 1,2 connection: close www-authenticate: Basic realm="DUFS" ```
Author
Owner

@sigoden commented on GitHub (Mar 12, 2023):

I have identified the issue, thank you.

I usually tested it with dufs -a /@user:pass-A --auth-method basic and haven't noticed any problems.

In previous version, I updated a base64 library, and some configuration adjustments were not noticed, resulting in this issue.

thank you again.

<!-- gh-comment-id:1465090791 --> @sigoden commented on GitHub (Mar 12, 2023): I have identified the issue, thank you. I usually tested it with `dufs -a /@user:pass-A --auth-method basic` and haven't noticed any problems. In previous version, I updated a base64 library, and some configuration adjustments were not noticed, resulting in this issue. thank you again.
Author
Owner

@sigoden commented on GitHub (Mar 12, 2023):

#194 solved this.

<!-- gh-comment-id:1465093436 --> @sigoden commented on GitHub (Mar 12, 2023): #194 solved this.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#96