[GH-ISSUE #662] 500 error code answer and not 404 for non existing files/folders #405

Closed
opened 2026-04-08 16:52:39 +03:00 by zhus · 2 comments
Owner

Originally created by @GDXbsv on GitHub (Jan 18, 2026).
Original GitHub issue: https://github.com/sigoden/dufs/issues/662

Problem
dufs returns 500 for non existing folders files and not 404

Configuration
- /mnt/ext
- --hidden
- ".*"
- -A
- --render-spa
- --render-try-index
- -a
- kopia:pass@/Backup/kopia-laptop-full:rw

Log

"GET /Backup/kopia-laptop-full/.shards" 500 No such file or directory (os error 2)

Environment Information

  • Dufs version: 0.45.0
  • Browser/Webdav info: kopia, but works with curl in the same way
  • OS info: Docker + cachyOs
  • Proxy server (if any): zoraxy
Originally created by @GDXbsv on GitHub (Jan 18, 2026). Original GitHub issue: https://github.com/sigoden/dufs/issues/662 **Problem** dufs returns 500 for non existing folders files and not 404 **Configuration** - /mnt/ext - --hidden - ".*" - -A - --render-spa - --render-try-index - -a - kopia:pass@/Backup/kopia-laptop-full:rw **Log** "GET /Backup/kopia-laptop-full/.shards" 500 No such file or directory (os error 2) **Environment Information** - Dufs version: 0.45.0 - Browser/Webdav info: kopia, but works with curl in the same way - OS info: Docker + cachyOs - Proxy server (if any): zoraxy
zhus closed this issue 2026-04-08 16:52:39 +03:00
Author
Owner

@GDXbsv commented on GitHub (Jan 18, 2026):

https://datatracker.ietf.org/doc/html/rfc4918#section-9.6

   Thus, after a successful DELETE operation (and in the absence of
   other actions), a subsequent GET/HEAD/PROPFIND request to the target
   Request-URI MUST return 404 (Not Found).
<!-- gh-comment-id:3764366584 --> @GDXbsv commented on GitHub (Jan 18, 2026): https://datatracker.ietf.org/doc/html/rfc4918#section-9.6 ``` Thus, after a successful DELETE operation (and in the absence of other actions), a subsequent GET/HEAD/PROPFIND request to the target Request-URI MUST return 404 (Not Found). ```
Author
Owner

@GDXbsv commented on GitHub (Jan 18, 2026):

Solved
I removed

  • --render-spa
  • --render-try-index
<!-- gh-comment-id:3764372031 --> @GDXbsv commented on GitHub (Jan 18, 2026): Solved I removed - --render-spa - --render-try-index
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#405