[PR #325] [MERGED] fix: auth precedence #567

Closed
opened 2026-04-08 16:53:28 +03:00 by zhus · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/sigoden/dufs/pull/325
Author: @sigoden
Created: 12/21/2023
Status: Merged
Merged: 12/21/2023
Merged by: @sigoden

Base: mainHead: feat-auth


📝 Commits (1)

📊 Changes

3 files changed (+68 additions, -31 deletions)

View changed files

📝 src/auth.rs (+46 -28)
📝 src/server.rs (+3 -3)
📝 tests/auth.rs (+19 -0)

📄 Description

The more specific a path is, the higher its priority.

Let me take user:pass@/dir1:rw,/dir1/test.txt as an example:
/dir1/test.txt will be readonly, as /dir1/test.txt is more specific than /dir1:rw.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/sigoden/dufs/pull/325 **Author:** [@sigoden](https://github.com/sigoden) **Created:** 12/21/2023 **Status:** ✅ Merged **Merged:** 12/21/2023 **Merged by:** [@sigoden](https://github.com/sigoden) **Base:** `main` ← **Head:** `feat-auth` --- ### 📝 Commits (1) - [`7d97e04`](https://github.com/sigoden/dufs/commit/7d97e045538cf660495cefaa062190daf37cdde9) feat: auth precedence ### 📊 Changes **3 files changed** (+68 additions, -31 deletions) <details> <summary>View changed files</summary> 📝 `src/auth.rs` (+46 -28) 📝 `src/server.rs` (+3 -3) 📝 `tests/auth.rs` (+19 -0) </details> ### 📄 Description The more specific a path is, the higher its priority. Let me take `user:pass@/dir1:rw,/dir1/test.txt` as an example: `/dir1/test.txt` will be readonly, as `/dir1/test.txt` is more specific than `/dir1:rw`. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
zhus added the pull-request label 2026-04-08 16:53:28 +03:00
zhus closed this issue 2026-04-08 16:53:28 +03:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sigoden/dufs#567