alist/server/webdav
千石 fcfb3369d1
fix: webdav error location (#9266)
* feat: improve WebDAV permission handling and user role fetching

- 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.

* fix(webdav): resolve connection reset issue by encoding paths

- 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.

* fix(webdav): resolve connection reset issue by encoding paths

- 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.

* fix: resolve webdav handshake error in permission checks

- Updated role permission logic to handle bidirectional subpaths.
- This adjustment fixes the issue where remote host terminates the
  handshake due to improper path matching.

* fix: resolve webdav handshake error in permission checks (fix/fix-webdav-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.

* fix: resolve webdav handshake error in permission checks

- 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.
2025-08-15 23:10:55 +08:00
..
internal/xml chore: add webdav package 2022-06-30 18:27:26 +08:00
buffered_response_writer.go fix:introduce buffered response writer for webdav, fix status/error return failed. (#2544) 2022-12-02 17:59:59 +08:00
file.go fix: webdav error location (#9266) 2025-08-15 23:10:55 +08:00
if.go chore: add webdav package 2022-06-30 18:27:26 +08:00
litmus_test_server.go chore: add webdav package 2022-06-30 18:27:26 +08:00
lock.go chore: add webdav package 2022-06-30 18:27:26 +08:00
lock_test.go chore: add webdav package 2022-06-30 18:27:26 +08:00
prop.go feat(webdav): support `oc:checksums` (#8064 close #7472) 2025-03-15 00:21:07 +08:00
util.go fix(webdav): make sure `Mtime` after `Ctime` (#6372 close #6371) 2024-04-24 17:13:30 +08:00
webdav.go fix: webdav error location (#9266) 2025-08-15 23:10:55 +08:00
xml.go chore: add webdav package 2022-06-30 18:27:26 +08:00
xml_test.go chore: add webdav package 2022-06-30 18:27:26 +08:00