We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
go version
$ go version go version go1.12 linux/amd64
yes
go env
$ go env GOARCH="amd64" GOBIN="" GOCACHE="/home/mlesyk/.cache/go-build" GOEXE="" GOFLAGS="" GOHOSTARCH="amd64" GOHOSTOS="linux" GOOS="linux" GOPATH="/home/mlesyk/go" GOPROXY="" GORACE="" GOROOT="/usr/lib/go-1.12" GOTMPDIR="" GOTOOLDIR="/usr/lib/go-1.12/pkg/tool/linux_amd64" GCCGO="gccgo" CC="gcc" CXX="g++" CGO_ENABLED="1" GOMOD="" CGO_CFLAGS="-g -O2" CGO_CPPFLAGS="" CGO_CXXFLAGS="-g -O2" CGO_FFLAGS="-g -O2" CGO_LDFLAGS="-g -O2" PKG_CONFIG="pkg-config" GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build990918272=/tmp/go-build -gno-record-gcc-switches"
Using simplest webdav server ( source here: https://gist.github.com/lesykm/e21c765331fa5af7dd00652dfe671eb5 )
go get golang.org/x/net/webdav
curl -qs https://gist.githubusercontent.com/lesykm/e21c765331fa5af7dd00652dfe671eb5/raw/e967a66d5018e2f456ead82132f412c475b59401/main.go --output main.go
go run main.go
echo '<?xml version="1.0"?><a:propfind xmlns:a="DAV:"><a:prop><a:resourcetype/></a:prop></a:propfind>' | curl -qs -X PROPFIND http://127.0.0.1:8080/ --upload-file - | xmllint --format -
<?xml version="1.0" encoding="UTF-8"?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>/</D:href> <D:propstat> <D:prop> <D:resourcetype> <D:collection xmlns:D="DAV:"/> </D:resourcetype> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus>
<?xml version="1.0" encoding="UTF-8"?> <D:multistatus xmlns:D="DAV:"> <D:response> <D:href>//</D:href> <D:propstat> <D:prop> <D:resourcetype> <D:collection xmlns:D="DAV:"/> </D:resourcetype> </D:prop> <D:status>HTTP/1.1 200 OK</D:status> </D:propstat> </D:response> </D:multistatus>
Difference:
@@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8"?> <D:multistatus xmlns:D="DAV:"> <D:response> - <D:href>/</D:href> + <D:href>//</D:href> <D:propstat> <D:prop> <D:resourcetype>
Breaking change was introduced in golang/net#32
This leads to incorrect display of root directory source in different webdav clients.
The text was updated successfully, but these errors were encountered:
Change https://golang.org/cl/176737 mentions this issue: webdav: remove redundant trailing slash for root directory
webdav: remove redundant trailing slash for root directory
Sorry, something went wrong.
golang/net@1492cef
0d34ec0
Fixes golang/go#31983 Change-Id: I9925f392ea98cd6618551e936e1dbd5a2a9324c9 GitHub-Last-Rev: dba5c6876ce84ff539c322fb7ab2a37b766f0661 GitHub-Pull-Request: golang/net#42 Reviewed-on: https://go-review.googlesource.com/c/net/+/176737 Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Successfully merging a pull request may close this issue.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Using simplest webdav server ( source here: https://gist.github.com/lesykm/e21c765331fa5af7dd00652dfe671eb5 )
go get golang.org/x/net/webdav
curl -qs https://gist.githubusercontent.com/lesykm/e21c765331fa5af7dd00652dfe671eb5/raw/e967a66d5018e2f456ead82132f412c475b59401/main.go --output main.go
go run main.go
echo '<?xml version="1.0"?><a:propfind xmlns:a="DAV:"><a:prop><a:resourcetype/></a:prop></a:propfind>' | curl -qs -X PROPFIND http://127.0.0.1:8080/ --upload-file - | xmllint --format -
What did you expect to see?
What did you see instead?
Difference:
Breaking change was introduced in golang/net#32
This leads to incorrect display of root directory source in different webdav clients.
The text was updated successfully, but these errors were encountered: