[GH-ISSUE #306] dufs doesn't support having just @/ (allow all users to read/view) as a value inside auth in a configuration file. #160

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

Originally created by @wearrrrr on GitHub (Nov 30, 2023).
Original GitHub issue: https://github.com/sigoden/dufs/issues/306

Problem

When using YML to define a dufs config file, using something like

auth:
  - <actual user data>
  - @/
 <rest of the config>

will cause dufs to panic upon starting the server with the following message:

Error: Failed to load config at dufs.cfg

Caused by:
    found character that cannot start any token at line 3 column 5, while scanning for the next token

Line 3 column 5 being the @ symbol in my config file.

Log

N/A, seems to be an issue with how dufs parses the yml differing from how cli args are parsed.

Environment:

  • Dufs version: 0.38.0
  • Browser/Webdav Info: 119.0.6045.159 (Official Build) Arch Linux (64-bit) (client)
  • OS Info: Linux wearr-dev 5.15.0-82-generic #91-Ubuntu SMP Mon Aug 14 14:14:14 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux (kernel running on the server)

If you need any other info please let me know! This is a pretty simple issue to replicate though.

Originally created by @wearrrrr on GitHub (Nov 30, 2023). Original GitHub issue: https://github.com/sigoden/dufs/issues/306 **Problem** When using YML to define a dufs config file, using something like ``` auth: - <actual user data> - @/ <rest of the config> ``` will cause dufs to panic upon starting the server with the following message: ``` Error: Failed to load config at dufs.cfg Caused by: found character that cannot start any token at line 3 column 5, while scanning for the next token ``` Line 3 column 5 being the @ symbol in my config file. **Log** N/A, seems to be an issue with how dufs parses the yml differing from how cli args are parsed. **Environment:** - Dufs version: `0.38.0` - Browser/Webdav Info: `119.0.6045.159 (Official Build) Arch Linux (64-bit)` (client) - OS Info: `Linux wearr-dev 5.15.0-82-generic #91-Ubuntu SMP Mon Aug 14 14:14:14 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux` (kernel running on the server) If you need any other info please let me know! This is a pretty simple issue to replicate though.
zhus closed this issue 2026-04-08 16:50:46 +03:00
Author
Owner

@sigoden commented on GitHub (Dec 1, 2023):

quote @/

auth:
  - <actual user data>
  - "@/"
<!-- gh-comment-id:1834592071 --> @sigoden commented on GitHub (Dec 1, 2023): quote `@/` ``` auth: - <actual user data> - "@/" ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#160