Skip to content

Commit 97d4f79

Browse files
okatu-lolialist666
andauthored
fix: resolve webdav decode issue (#9268)
* 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. - Modified `makePropstatResponse` to preserve encoded href paths. - Added test for `makePropstatResponse` to ensure href encoding. * Delete server/webdav/makepropstatresponse_test.go * ci(workflow): set GOPROXY for Go builds on GitHub Actions - Use `GOPROXY=https://proxy.golang.org,direct` to speed up module downloads - Mitigates network flakiness (e.g., checksum DB timeouts/rate limits) - `,direct` provides fallback for private/unproxyable modules - No build logic changes; only affects dependency resolution across all matrix targets --------- Co-authored-by: AlistGo <opsgit88@gmail.com>
1 parent fcfb336 commit 97d4f79

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
- android-arm64
2626
name: Build
2727
runs-on: ${{ matrix.platform }}
28+
env:
29+
GOPROXY: https://proxy.golang.org,direct
2830
steps:
2931

3032
- name: Checkout

server/webdav/webdav.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -833,7 +833,7 @@ func (h *Handler) handleProppatch(w http.ResponseWriter, r *http.Request) (statu
833833

834834
func makePropstatResponse(href string, pstats []Propstat) *response {
835835
resp := response{
836-
Href: []string{(&url.URL{Path: href}).EscapedPath()},
836+
Href: []string{href},
837837
Propstat: make([]propstat, 0, len(pstats)),
838838
}
839839
for _, p := range pstats {

0 commit comments

Comments
 (0)