[GH-ISSUE #338] When using webdav, unauthorized directories are still visible. #182

Closed
opened 2026-04-08 16:50:55 +03:00 by zhus · 1 comment
Owner

Originally created by @EdenHell on GitHub (Jan 9, 2024).
Original GitHub issue: https://github.com/sigoden/dufs/issues/338

Problem

The unauthorized directory can still be displayed in Kodi, although the files inside cannot be viewed. However, I do not want it to be shown.

无标题

The expected effect is achieved when browsing in a web browser.

image

Conf

serve-path: '/root'
port: 19999
auth:
  - admin:dummy_pwd@/:rw
  - user:fake_pwd@/videos/Movie,/videos/TV series
allow-all: false
allow-upload: true
allow-delete: false
allow-search: true
allow-archive: true
enable-cors: true
render-try-index: true

Environment:

  • Dufs version: docker v0.38.0
  • Browser/Webdav Info: kodi
  • OS Info: Android
Originally created by @EdenHell on GitHub (Jan 9, 2024). Original GitHub issue: https://github.com/sigoden/dufs/issues/338 **Problem** The unauthorized directory can still be displayed in Kodi, although the files inside cannot be viewed. However, I do not want it to be shown. ![无标题](https://github.com/sigoden/dufs/assets/5779655/7eb2a900-b1b2-42c6-935f-54321afb5cc3) The expected effect is achieved when browsing in a web browser. ![image](https://github.com/sigoden/dufs/assets/5779655/8158a490-aa39-4b02-8ced-400712121adb) **Conf** ```yml serve-path: '/root' port: 19999 auth: - admin:dummy_pwd@/:rw - user:fake_pwd@/videos/Movie,/videos/TV series allow-all: false allow-upload: true allow-delete: false allow-search: true allow-archive: true enable-cors: true render-try-index: true ``` **Environment:** - Dufs version: docker [v0.38.0](https://hub.docker.com/layers/sigoden/dufs/v0.38.0/images/sha256-5f64acd74ce48cf92f28ec7f138d2f8aeedfaa8972e9786d3fe10dbb6e3a2be1?context=explore) - Browser/Webdav Info: kodi - OS Info: Android
zhus closed this issue 2026-04-08 16:50:55 +03:00
Author
Owner

@sigoden commented on GitHub (Jan 9, 2024):

similar to #263 #268

Webdav must be designed like this.

This is because some webdav clients do not carry the Authorization header when listing files.

<!-- gh-comment-id:1883009674 --> @sigoden commented on GitHub (Jan 9, 2024): similar to #263 #268 Webdav must be designed like this. This is because some webdav clients do not carry the Authorization header when listing files.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#182