Skip to content

fix: webdav error location#9266

Merged
alist666 merged 6 commits intoAlistGo:mainfrom
okatu-loli:fix/fix-webdav-error
Aug 15, 2025
Merged

fix: webdav error location#9266
alist666 merged 6 commits intoAlistGo:mainfrom
okatu-loli:fix/fix-webdav-error

Conversation

@okatu-loli
Copy link
Copy Markdown
Collaborator

fix: #9260

- Added logic to handle root permissions in WebDAV requests.
- Improved the user role fetching mechanism.
- Enhanced path checks and permission scopes in role_perm.go.
- Set FetchRole function to avoid import cycles between modules.
- Adjust path encoding in webdav.go to prevent connection reset.
- Utilize utils.EncodePath for correct path formatting.
- Ensure proper handling of directory paths with trailing slash.
- Adjust path encoding in webdav.go to prevent connection reset.
- Utilize utils.FixAndCleanPath for correct path formatting.
- Ensure proper handling of directory paths with trailing slash.
- Updated role permission logic to handle bidirectional subpaths.
- This adjustment fixes the issue where remote host terminates the
  handshake due to improper path matching.
…dav-error)

- Updated role permission logic to handle bidirectional subpaths,
  fixing handshake termination by remote host due to path mismatch.
- Refactored function naming for consistency and clarity.
- Enhanced filtering of objects based on user permissions.
- Updated role permission logic to handle bidirectional subpaths,
  fixing handshake termination by remote host due to path mismatch.
- Refactored function naming for consistency and clarity.
- Enhanced filtering of objects based on user permissions.
@alist666 alist666 merged commit fcfb336 into AlistGo:main Aug 15, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

WebDav 除了角色权限ADMIN, 其他添加得角色权限账号全部无法连接

3 participants