Skip to content
New issue

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

x/net/webdav: Doesn't interoperate with Windows 7 explorer #23871

Closed
ncw opened this issue Feb 16, 2018 · 3 comments
Closed

x/net/webdav: Doesn't interoperate with Windows 7 explorer #23871

ncw opened this issue Feb 16, 2018 · 3 comments

Comments

@ncw
Copy link
Contributor

ncw commented Feb 16, 2018

What version of Go are you using (go version)?

go version go1.9.2 linux/amd64 with the latest golang.org/x/net/webdav

Does this issue reproduce with the latest release?

Yes.

What operating system and processor architecture are you using (go env)?

This is Windows 7 386 running on VirtualBox.

X:\go\src\github.com\ncw\rclone>go env
set GOARCH=386
set GOBIN=
set GOEXE=.exe
set GOHOSTARCH=386
set GOHOSTOS=windows
set GOOS=windows
set GOPATH=C:\Users\Dev\go
set GORACE=
set GOROOT=C:\Go
set GOTOOLDIR=C:\Go\pkg\tool\windows_386
set GCCGO=gccgo
set GO386=
set CC=gcc
set GOGCCFLAGS=-m32 -mthreads -fmessage-length=0 -fdebug-prefix-map=C:\Users\Dev
\AppData\Local\Temp\go-build996106411=/tmp/go-build -gno-record-gcc-switches
set CXX=g++
set CGO_ENABLED=1
set PKG_CONFIG=pkg-config
set CGO_CFLAGS=-g -O2
set CGO_CPPFLAGS=
set CGO_CXXFLAGS=-g -O2
set CGO_FFLAGS=-g -O2
set CGO_LDFLAGS=-g -O2

What did you do?

Compiled this program which is a very simple webdav server to serve a directory over webdav.

I ran this in a command window with webdavd.exe -p 8081 -d c:\path\to\test\dir

I then pointed windows explorer at it by putting in the url \\localhost:8081\. Windows explorer sees all the directories but none of the files and an attempt to click on a directory gives a permissions error.

Source directory

image

Directory when viewed via the webdav server. I expected to see all the files and the folders here.

image

And the error message you get when clicking on a directory

image

And here is the server running in the cmd window

image

I originally discovered this while trying out rclone serve webdav which has exactly the same problem.

@gopherbot gopherbot added this to the Unreleased milestone Feb 16, 2018
@alexbrainman
Copy link
Member

Sorry I do not know much about webdav. But maybe @mattn can help you.

Alex

@mattn
Copy link
Member

mattn commented Feb 17, 2018

@ncw Sorry, I don't know the your way that refer location to the webdav. (open \localhost:8081\ on the Explorer)

The way I know is,

  1. Open Explorer
  2. Right-click on "This PC" (or "Computer" in Windows 7) and select "Add Network Location."
  3. Click "Next" on the wizard
  4. Select "Choose a custom network location" and click "Next."
  5. Type in the address "http://localhost:8081/"

Then, you will see the Explorer opened the address.

image

@ncw
Copy link
Contributor Author

ncw commented Feb 18, 2018

@mattn - I can confirm that adding the WebDAV share the way you suggested works perfectly.

Sorry for inflicting my Windows incompetence on you all!

Thanks for your help.

I'm going to close this now.

@ncw ncw closed this as completed Feb 18, 2018
@golang golang locked and limited conversation to collaborators Feb 18, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants