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

Windows WebDAV Client Support #8

Closed
Akjo4712 opened this issue Dec 9, 2021 · 25 comments
Closed

Windows WebDAV Client Support #8

Akjo4712 opened this issue Dec 9, 2021 · 25 comments

Comments

@Akjo4712
Copy link

Akjo4712 commented Dec 9, 2021

We are using your Image for some days now, I know that the Windows WebDAV Client is a mess itselfe, but supporting Windows WebDAV is curcial for us, as we need native File Explorer integration for our Project. I would like to help you to find an solve all relevant Problems regarding Windows WebDAV Support. Shall I start one Issue for Windows Support overall, or one Issue for each Problem we face?

After rebooting Windows it is quiet impossible to get WebDAV up and running again. I am getting some generic Error Messages. It works quiet well when it works, but a reboot seems to trigger some Bug which is Hard to Workaround. Removing and readding the Drive, while changing some Parameters seems to get it running again, but I can't figure out what is causing it to work again. It seems as, as long as Windows still knows it is the same WebDAV Server the Issue is present, you need to change config Values until Windows can't determine that it is the same Server.

@Akjo4712
Copy link
Author

Akjo4712 commented Dec 9, 2021

#5 is also still around.

@dgraziotin
Copy link
Owner

dgraziotin commented Dec 9, 2021

Hello, so I managed to virtualize Windows 11. Connecting via Edge seems to work, at least for reading files. I can see relevant entries in NGINX logs:

nginxwebdav    | 172.18.0.1 - user [09/Dec/2021:11:05:41 +0100] "GET /share/test.txt HTTP/1.1" 200 5 "http://192.168.178.3:32080/share/" 
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.212 Safari/537.36 Edg/90.0.818.66

What would be the steps to connect via WebDAV using "Map Network Drive"? If I use \\ip:port I reach username and password, but after that, I receive "Error 0x80070043 - The network name cannot be found". The issue is that there is no connection attempt to NGINX. As Windows is not trying to connect, I am doing something wrong for sure.

@Akjo4712
Copy link
Author

Hi! There are various ways to connect with the WebDAV Drive, I will List the most common ways for me. I didn't manage to get all of them working, although I know it is possible with some other WebDAV Servers.

  1. Connect by entering the URL in the Location Field in Windows Explorer.
  2. Connect as Network Drive in this Computer
  3. Connect as Network Address in this Computer

Where the Option 1 is just a Quick Connection which is lost after you close the Explorer and Option 2 and 3 are persistet as a Drive in This Computer for later reuse. Give me a notice if you strugle with one or the other Option or if WebDAV isn't working (You don't see connections at the Server) at all, there are some pitfalls with WebDAV in Windows.

URL in Windows Explorer

  1. Launch Windows Explorer
  2. Enter URL in Location Field (e.g. https://xxx.xxxxxx.xx:10443/)

image

Network Drive

  1. Launch Windows Explorer
  2. Go to This Computer
  3. In the Context Menue you will find the Option add as Network Drive

image

Network Address

  1. Launch Windows Explorer
  2. Go to This Computer
  3. In the Context Menue you will find the Option add as Network Address

image

@dgraziotin
Copy link
Owner

Thank you for the great details, @Akjo4712! I am now able to attempt a connection and will try to see what I can fix. I will open new issues if I find different ones and/or come back here in case I need to ask something generic.

@dgraziotin
Copy link
Owner

dgraziotin commented Dec 10, 2021

I made some changes but I have not built any new image yet.

Before that, could you keep the image you are already using and tell me if you have ever applied this?

If you are unable to connect to this shared folder via WebDAV, you may need to modify the basic authentication level in Registry Editor.
Right-click Start and select Run. Type regedit and click OK.
In Registry Editor, go to HKEY_LOCAL_MACHINE > SYSTEM > CurrentControlSet > Services > WebClient > Parameters.
Open BasicAuthLevel and set the value data to 2.
Restart your computer and try connecting to the shared folder using WebDAV again.

(source)

If not, could you please try this out with your current image and tell me if it works already?

I am asking because I made several changes and then discovered that disabling authentication makes everything work with Windows/Explorer (sort of). And this explains why this solution by @bertmelis is working for them (no auth). To me using that different registry value makes the whole work, with auth.

@Akjo4712
Copy link
Author

Setting BasicAuthLevel to 2 seems to fix the Issue where I am unable to reconnect to WebDAV after reboot, although I am prompted with a Login Mask. But Setting BasicAuthLevel to 2 is no good Idea, as it basically only allows Windows to send Basic Authentication Credentials over an unsecure Connection, which is no good Idea as Username and Password are sent in clear text.

Windows 7 and Vista will fail to connect to the server using insecure Basic authentication. It will not even display any login dialog. Windows 7 and Vista requires SSL / HTTPS connection to be used with Basic. If you try to connect via Add Network Location Wizard you will get the following error: "The folder you entered does not appear to be valid. Please choose another". However, you still can connect if you set the following registry key on a client machine: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\WebClient\Parameters\BasicAuthLevel to 2. The BasicAuthLevel can be set to the following values:

  • 0 - Basic authentication disabled
  • 1 - Basic authentication enabled for SSL shares only
  • 2 or greater - Basic authentication enabled for SSL shares and for non-SSL shares

I am using an Nginx Reverse Proxy infront of my WebDAV Server which only Listens on the HTTPS Port, HTTP Port is not available. So i am curious why this is improving anything? Windows shouldn't be thinking I am using a HTTP Connection at all. Is it possible, that the WebDAV Backend, as we are Communicationg with HTTP between Reverse Proxy and backend is somehow sending the wrong Protocol (HTTP) in the Location Header or anything else?

@dgraziotin
Copy link
Owner

@Akjo4712 I wish I knew the answer, but that is the suggested fix by some sources. Perhaps it also changes other behaviors, not only the one to also allow unsecure connections.

I do not see issues, though. if you are serving only over SSL/TLS and configure a "https://" endpoint, it will go through SSL/TLS only. Those who might want to use my image with plain connections still require that change.

Now, thanks for confirming. Let's move to the next step. Could you try using my dgraziotin/nginx-webdav-nononsense:windows image with its builtin nginx.conf? This one contains all fixes I could find for making it work under Windows and Explorer, and it works fine with macOS Finder, too. It still does not have CORS, though, which I will add as a final step.

@Akjo4712
Copy link
Author

I will gather some Feedback and will come back to you tomorrow. Once again, thanks for your great work on this Image!

@Akjo4712
Copy link
Author

Akjo4712 commented Dec 14, 2021

@dgraziotin: I will List Issues I find in this Post as I find them. I will be testing for the next few Minutes.

  1. Error Message in Windows Explorer when doing Cut (STRG + X) and Paste (STRG + V) operation. Copy and Past works fine!
  2. Setting BasicAuthLevel to 2 lowers Security Standards for all WebDAV connections. I know that it won't be a Problem with my WebDAV Server, as I only accept HTTPS connctions, but this doesn't prevent my colleagues to now access a HTTP WebDAV Server and sending Username and Password in cleartext. --> I think we should ignore this Point for now, I will investigate this after the Image is Windows Explorer compatible.
  3. Editing Files seems to be broken. Try to Edit a Text File with Notepad++, you will see, that Notepad will prompt you (maybe you need to switch to another Tab) to reload the File, as it was Edited externaly. This will then reload a Empty File. Furthermore, Excel states that saving was not successful with no more detailed Message when saving.
  4. .bak Files appear when saving a File. Maybe a side effect of Number 3? --> Not related to WebDAV, was a Notepad++ Setting.
  5. Creating a Folder results in Error Message

@dgraziotin
Copy link
Owner

Point 2 won't likely be solved. It simply allows Windows/Explorer to connect over a non SSL/TLS port. It does not lower security per se. A person takes the decision to serve over a non-SSL/TLS port and that is it. Whether this also unlocks Explorer to somehow access over authenticated SSL/TLS, I have no idea, but it seems to work, and I have seen it recommended in various places.

On the remaining points. I cannot reproduce these issues with the -windows image.

Here is what the logs say when I attempt the following operations via Explorer.

Creation of a new folder (default "New%20folder"), then renamed to "test folder"

nginxwebdav  | 172.21.0.1 - - [14/Dec/2021:13:58:31 +0100] "PROPFIND / HTTP/1.1" 207 812 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - - [14/Dec/2021:13:58:31 +0100] "PROPFIND /New%20folder HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - - [14/Dec/2021:13:58:31 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - - [14/Dec/2021:13:58:31 +0100] "MKCOL /New%20folder HTTP/1.1" 401 179 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:58:31 +0100] "MKCOL /New%20folder HTTP/1.1" 201 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:58:31 +0100] "PROPPATCH /New%20folder HTTP/1.1" 207 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:58:31 +0100] "PROPFIND /New%20folder HTTP/1.1" 207 445 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:58:31 +0100] "PROPFIND /New%20folder/desktop.ini HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:58:36 +0100] "PROPFIND / HTTP/1.1" 207 1170 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:58:36 +0100] "PROPFIND /New%20folder HTTP/1.1" 207 445 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:58:36 +0100] "MOVE /New%20folder HTTP/1.1" 201 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:58:36 +0100] "PROPFIND /test%20folder HTTP/1.1" 207 447 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:58:36 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"

File -> New -> OpenDocument Text (New%20OpenDocument%20Text.odt), then renamed to "test document".

nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:17 +0100] "PROPFIND / HTTP/1.1" 207 1172 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:17 +0100] "PROPFIND /New%20OpenDocument%20Text.odt HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:17 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:17 +0100] "PUT /New%20OpenDocument%20Text.odt HTTP/1.1" 201 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:17 +0100] "LOCK /New%20OpenDocument%20Text.odt HTTP/1.1" 200 407 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - - [14/Dec/2021:13:59:17 +0100] "HEAD /New%20OpenDocument%20Text.odt HTTP/1.1" 401 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:17 +0100] "HEAD /New%20OpenDocument%20Text.odt HTTP/1.1" 200 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:17 +0100] "PUT /New%20OpenDocument%20Text.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:17 +0100] "PROPPATCH /New%20OpenDocument%20Text.odt HTTP/1.1" 207 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:17 +0100] "UNLOCK /New%20OpenDocument%20Text.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:18 +0100] "PROPFIND /New%20OpenDocument%20Text.odt HTTP/1.1" 207 508 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:18 +0100] "LOCK /New%20OpenDocument%20Text.odt HTTP/1.1" 200 407 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:18 +0100] "UNLOCK /New%20OpenDocument%20Text.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:25 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:25 +0100] "PROPFIND / HTTP/1.1" 207 1592 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:25 +0100] "MOVE /New%20OpenDocument%20Text.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:25 +0100] "PROPFIND /Family HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:25 +0100] "PROPFIND /test%20document.odt HTTP/1.1" 207 490 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:13:59:25 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"

Opening the document (double click on it), writing some lines, saving, closing

nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:33 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:33 +0100] "PROPFIND /test%20document.odt HTTP/1.1" 207 490 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:33 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:37 +0100] "GET /test%20document.odt HTTP/1.1" 200 7334 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:47 +0100] "PROPFIND /test%20folder HTTP/1.1" 207 447 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:47 +0100] "PROPFIND /Family HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "LOCK /test%20document.odt HTTP/1.1" 200 399 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "PROPFIND / HTTP/1.1" 207 1574 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "PROPFIND /.~lock.test%20document.odt%23 HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "PUT /.~lock.test%20document.odt%23 HTTP/1.1" 201 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - - [14/Dec/2021:14:00:53 +0100] "HEAD /.~lock.test%20document.odt%23 HTTP/1.1" 401 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "HEAD /.~lock.test%20document.odt%23 HTTP/1.1" 200 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "PUT /.~lock.test%20document.odt%23 HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "PROPPATCH /.~lock.test%20document.odt%23 HTTP/1.1" 207 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "PROPFIND /.~lock.test%20document.odt%23 HTTP/1.1" 207 507 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:53 +0100] "PROPPATCH /.~lock.test%20document.odt%23 HTTP/1.1" 207 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:54 +0100] "PROPFIND /Desktop.ini HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:54 +0100] "PROPFIND /AutoRun.inf HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:00:54 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "UNLOCK /test%20document.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "GET /.~lock.test%20document.odt%23 HTTP/1.1" 200 110 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "DELETE /.~lock.test%20document.odt%23 HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPFIND / HTTP/1.1" 207 1574 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PUT /.~lock.test%20document.odt%23 HTTP/1.1" 201 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - - [14/Dec/2021:14:01:00 +0100] "HEAD /.~lock.test%20document.odt%23 HTTP/1.1" 401 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "HEAD /.~lock.test%20document.odt%23 HTTP/1.1" 200 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PUT /.~lock.test%20document.odt%23 HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPPATCH /.~lock.test%20document.odt%23 HTTP/1.1" 207 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPFIND /.~lock.test%20document.odt%23 HTTP/1.1" 207 507 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPPATCH /.~lock.test%20document.odt%23 HTTP/1.1" 207 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "LOCK /test%20document.odt HTTP/1.1" 200 399 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - - [14/Dec/2021:14:01:00 +0100] "HEAD /test%20document.odt HTTP/1.1" 401 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "HEAD /test%20document.odt HTTP/1.1" 200 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PUT /test%20document.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPPATCH /test%20document.odt HTTP/1.1" 207 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "UNLOCK /test%20document.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPFIND / HTTP/1.1" 207 1571 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPFIND /test%20document.odt HTTP/1.1" 207 487 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPFIND /test%20document.odt HTTP/1.1" 207 487 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "LOCK /test%20document.odt HTTP/1.1" 200 399 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - - [14/Dec/2021:14:01:00 +0100] "HEAD /test%20document.odt HTTP/1.1" 401 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "HEAD /test%20document.odt HTTP/1.1" 200 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PUT /test%20document.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPPATCH /test%20document.odt HTTP/1.1" 207 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "UNLOCK /test%20document.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "PROPFIND /test%20document.odt HTTP/1.1" 207 490 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "LOCK /test%20document.odt HTTP/1.1" 200 399 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "UNLOCK /test%20document.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:00 +0100] "LOCK /test%20document.odt HTTP/1.1" 200 399 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:47 +0100] "UNLOCK /test%20document.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:47 +0100] "GET /.~lock.test%20document.odt%23 HTTP/1.1" 200 110 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:48 +0100] "DELETE /.~lock.test%20document.odt%23 HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:01:49 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"

Cutting the file, entering the folder, pasting into it:

nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:02:16 +0100] "PROPFIND /test%20folder HTTP/1.1" 207 447 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:02:16 +0100] "PROPFIND /test%20folder/desktop.ini HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:02:16 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:02:17 +0100] "PROPFIND / HTTP/1.1" 207 1574 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:02:17 +0100] "MOVE /test%20document.odt HTTP/1.1" 204 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:02:17 +0100] "PROPFIND /test%20folder/test%20document.odt HTTP/1.1" 207 504 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
nginxwebdav  | 172.21.0.1 - user [14/Dec/2021:14:02:18 +0100] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"

Please note that I am doing all these things via HTTP Port 80 as the image is thought to be used that way primarily. I will provide CORS headers for reverse proxy usage, but adding a proxy brings things outside my control.

A reverse proxy might, for example, block some HTTP request methods that Explorer wants to use (I know, for example, that Cloudflare Tunnels do not allow MKCOL for creating folders). For these usages, you need to switch WebDAV client and hope it uses other ways that also work with my image.

Just to check: how are you providing SSL/TLS to the running container?

@dgraziotin
Copy link
Owner

@Akjo4712 apologies, the inability to create folders and move files into folders via SSL/TLS is still an issue that I can correct from my side. It is still issue #5. The difference now is that it works with HTTP, not with HTTPS. I'll see what I can do. Please tell me anyway how you proxy to the container.

@Akjo4712
Copy link
Author

For now I can't reproduce Points 3 and 5, unsure why. WebDAV in Windows is a real mess 🤕.

I receive the following Error in Logs when moving a File with WebDAV. I am not sure what is wrong with the Destination Header. Is it the Protocol beeing HTTPS although it expects it to be HTTP, or is it the Port which is 10443 although 80 is expected.
image

SSL Termination is done on a NGINX Container which then Proxies the Requests to the WebDAV Container. Basically it then is NGINX behind NGINX 😆.

What I have observed, and this makes me little bit nervous, when i Browse through WebDAV sometimes I don't see my Username in the Logs, so it seems I am Browsing annonymous through the Folders and I can enumerate the File List without authentication. Might there be a Security Issue?

@dgraziotin
Copy link
Owner

dgraziotin commented Dec 14, 2021

@Akjo4712 I think I fixed it :-) pull dgraziotin/nginx-webdav-nononsense:windows again and restart it. It is working for me, both HTTP and HTTPS.

CORS still missing.

Edit: OK, I see that you use a non-default port for HTTPS. That I have not tested yet. With 80/443 it is working. Your screenshot, by the way, is a variation of bug #5.

@Akjo4712
Copy link
Author

Hmmm, still not working for me on my non-default HTTPS Port. I don't exactly understand what the Nginx Error is handled by different repository than the source URI means.

172.18.0.3 - user [15/Dec/2021:05:40:44 +0000] "PROPFIND / HTTP/1.1" 207 2192 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:44 [error] 7#7: *22 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/Test.txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:44 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:44 [error] 7#7: *23 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/Test.txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:44 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:44 [error] 7#7: *24 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/Test.txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1" 
172.18.0.3 - user [15/Dec/2021:05:40:44 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:44 [error] 7#7: *25 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/Test.txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:44 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:47 [error] 7#7: *26 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/Test.txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:47 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:47 [error] 7#7: *27 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/Test.txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:47 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
172.18.0.3 - user [15/Dec/2021:05:40:47 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:47 [error] 7#7: *28 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/Test.txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1" 
172.18.0.3 - user [15/Dec/2021:05:40:47 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:47 [error] 7#7: *29 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/Test.txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:56 +0000] "PROPFIND /test/api HTTP/1.1" 207 9366 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
172.18.0.3 - user [15/Dec/2021:05:40:56 +0000] "PROPFIND /test/api/desktop.ini HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
172.18.0.3 - user [15/Dec/2021:05:40:56 +0000] "PROPFIND / HTTP/1.1" 207 2192 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
172.18.0.3 - user [15/Dec/2021:05:40:56 +0000] "GET /test/Textdokument%20(neu).txt HTTP/1.1" 200 0 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:56 [error] 7#7: *34 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/api/Textdokument%2520(neu).txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:56 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:56 [error] 7#7: *35 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/api/Textdokument%2520(neu).txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:56 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
172.18.0.3 - user [15/Dec/2021:05:40:56 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:56 [error] 7#7: *36 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/api/Textdokument%2520(neu).txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:56 +0000] "MOVE /test/Textdokument%20(neu).txt HTTP/1.1" 400 157 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" 2021/12/15 05:40:56 [error] 7#7: *37 "Destination" URI "http://xx.xxxxxxx.xx:10443/test/api/Textdokument%2520(neu).txt" is handled by different repository than the source URI, client: 172.18.0.3, server: localhost, request: "MOVE /test/Textdokument%20(neu).txt HTTP/1.1", host: "wwms_webdav_1"
172.18.0.3 - user [15/Dec/2021:05:40:56 +0000] "PROPFIND /test/Thumbs.db HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
172.18.0.3 - user [15/Dec/2021:05:41:00 +0000] "PROPFIND /test HTTP/1.1" 207 1192 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000" is handled by different repository than the source URI172.18.0.3 - user [15/Dec/2021:05:45:38 +0000] "PROPFIND /Desktop.ini HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
172.18.0.3 - user [15/Dec/2021:05:45:38 +0000] "PROPFIND /AutoRun.inf HTTP/1.1" 404 153 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
172.18.0.3 - user [15/Dec/2021:05:45:38 +0000] "PROPFIND / HTTP/1.1" 207 424 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"
172.18.0.3 - user [15/Dec/2021:05:45:39 +0000] "PROPFIND /test HTTP/1.1" 207 431 "-" "Microsoft-WebDAV-MiniRedir/10.0.22000"

Seems to be triggerd by this Code.

    if (ngx_strncmp(host, r->headers_in.server.data, len) != 0) {
        ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
                      "\"Destination\" URI \"%V\" is handled by "
                      "different repository than the source URI",
                      &dest->value);
        return NGX_HTTP_BAD_REQUEST;
    }

@dgraziotin
Copy link
Owner

@Akjo4712 hmm that is weird. You are having the issue that I supposedly fixed with the last commit. Could you verify for me that the /etc/nginx/nginx.conf file of the container looks like this one (docker exec <container_name> cat /etc/nginx/nginx.conf)? In particular, that there is any mention of a variable called $new_path?.

@Akjo4712
Copy link
Author

I can see the usage of a Variable $new_path. In the Logs I can see that the Port Number (10443) is still included in the Uri. although the Protocol was rewritten to http. Is this the Issue?

Find my reverse Proxy configuration below. Is there anything I can do in my reverse Proxy in order to resolve those Issues?

server
{
  listen 10443 ssl;
  server_name xx.*;

  resolver 127.0.0.11 valid=60s;
  set $webdav_upstream wwms_webdav_1:80;

  allow XXX.XXX.XXX.XXX;
  deny all;

  ssl_certificate /etc/letsencrypt/live/xx.xxxxxxx.xx/fullchain.pem;
  ssl_certificate_key /etc/letsencrypt/live/xx.xxxxxxx.xx/privkey.pem;

  proxy_http_version 1.1;
  proxy_set_header X-Real-IP $remote_addr;
  proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
  proxy_set_header X-Forwarded-Proto $scheme;
  proxy_set_header X-Forwarded-Host $host;
  proxy_set_header X-Forwarded-Port 10443;
  proxy_set_header X-Frame-Options SAMEORIGIN;

  location /
  {
    proxy_pass http://$webdav_upstream;
  }
}

@dgraziotin
Copy link
Owner

dgraziotin commented Dec 15, 2021

Setting the protocol to HTTP internally is not an issue, no. It is actually correct now (corrected by my previous commit) as my image does not use HTTPS.

This is my long shot, without having access to your server. Add:

proxy_set_header Host $host;

To your location / entry. And restart your nginx proxy, obviously.

I just tried both Caddy (transparent reverse proxy) and Nginx Proxy Manager. Everything works under Windows (and Finder).

If the proxy_set_header directive does not work, feel free to contact me at daniel AT ineed DOT coffee and I will send you the details of a test server that runs the latest commit. Just to be sure that it's neither your reverse proxy nor your Windows (for some reason).

@Akjo4712
Copy link
Author

I think it was a combination of two Issues which triggerd is handled by different repository than the source URI. All my Issues Listed above seem to be fixed now.

  • Until now I had no Value set for SERVER_NAMES, added the correct Host Name
  • Added proxy_set_header Host $host; to my NGINX Reverse Proxy Configuration

But I am still afraid that there might be a Security Issue in your recent changes. It looks like somehow Windows is not sending any Authentication Information which is ignored by the Server and you can Navigate through Folders. Windows seems to not send any authentication when you open, move, delete or create a File, which is not ignored by the Server and is returned with a 401 Unauthenicated, which leads to a Error Messages in Explorer.

That you get a 401 when unauthenticated and trying to open, move, delete or create a File of course is correct, but why can i navigate through Folders an enumarete Files when i am unauthenciated and furthermore, why is Windows thinking that it mustn't send authentication in the first place?

The Screenshot below shows Log Entrys while I Navigate throught Folders. I can navigate through Folders an enumarete Files. No Authenticated User is logged.
image

The Screenshot below shows Log Entrys when I open, move, delete or create a File, the Server is responding with 401 Unauthorized
image

How to reproduce this Issue on my Computer

  1. Mount WebDAV Location as Network Drive
  2. Restart Computer or restart WebClient Service
  3. You can observer the Issue described above

How to temporarly resolve the Issue

  1. Remove Network Drive
  2. Add Netwrok Drive
  3. Everything is working now again

I will do some additional Tests in the next minutes, but as I can enumarate through Folders without Authentication Information beeing logged, my first Guess would be that this must be some Security Issue in the Image.

@dgraziotin
Copy link
Owner

dgraziotin commented Dec 17, 2021

Great that it is working now!

On your issue, thanks. I gave a look at it, and here is what I found out, using PAW for raw HTTP(S) requests.

GET, HEAD, PUT, POST requests unauthenticated get blocked with a 401 Unauthorized (correct).

OPTIONS requests must go through without authentication as per CORS specification, but in general, this behavior is anyway recommended as it enables identifying allowed request methods. This is what I do here.

PROPFIND requests go through unauthorized for /, but no useful information is shown, and in case a file name is guessed, and here all useful things returned are size and that it exists. This latter is a less severe issue, but I dislike it nonetheless. I'll investigate if it is required behavior or not, and if I am able to correct for it.

Now, one serious that I found out: DELETE requests work unauthenticated. In the sense that a DELETE https://domain.com/ returns HTTP/1.1 403 Forbidden, correctly. But, any file (non dir) at the root is actually deleted 👎 . I will open an issue for this one and see why it happens.

Other than this little security issue (lol, sorry), we can conclude that it otherwise works, can we?

EDIT/PS: I see that Explorer re-connects without asking for username/password, as you describe, if you recreate the share. My suspect is that it caches credentials and reuses them. Indeed, it writes "Connect using different credentials" which implies that the previous ones are stored somewhere

CleanShot 2021-12-17 at 13 59 10@2x

But you did help me find quite an issue here, #15!

@dgraziotin
Copy link
Owner

#15 Fixed and pushed to dgraziotin/nginx-webdav-nononsense:windows (phew!)

@dgraziotin
Copy link
Owner

@Akjo4712 you can test dgraziotin/nginx-webdav-nononsense:allfixed that also includes CORS and restores my image to its working status (finally).

@Akjo4712
Copy link
Author

Perfect, think we found and fixed quiet a few Issues (more you than me/we). Seems to be in a usable and stable state for Windows for now.

You are correct, Windows maintains a Credential Cache for previous connections.

I will test the Image with the Tag allfixed in some days, will be skiing for the next few days. ⛷️😃

@dgraziotin
Copy link
Owner

@Akjo4712 thank YOU for taking the time to repot on the issues and for having patience. The image was basically not usable for Microsoft Explorer before you opened your issues. Now it seems to be fine! You can actually go back to the normal tags, I tested further, and there is nothing left for me to be done. I am also closing this issue, but you are welcome to open new ones for each new problem.

Have a nice skiing period and great Winter holidays!

@plashenkov
Copy link

plashenkov commented Feb 22, 2022

Hey @dgraziotin

I am still having the "Error 0x80070043 - The network name cannot be found" problem in Windows 10 Explorer.
I am using dgraziotin/nginx-webdav-nononsense:1.21.6 behind Caddy reverse proxy, which adds https.

Other clients (browser, WinSCP) work well.

Do we still need to patch Windows registry to make it work?
Some other clients work well in this situation (though don't work well in other situations, e.g. have no web interface).

@dgraziotin
Copy link
Owner

dgraziotin commented Feb 23, 2022

Hi @plashenkov, thanks for reporting this. I think it’s time for a new issue. Before opening it, could you kindly see if

  1. It fixes itself with the registry edit, with Caddy+HTTPS
  2. It works without reverse proxy (HTTP direct) and without registry edit
    ?

If the first one fixes it, I’m afraid that this is the fix as reported by WebDAV providers.

If the second one fixes it, it is likely something that happens with the reverse proxy OR how I’m setting CORS for some reason.

If nothing fixes it, definitely new issue request.

Thank you!

dgraziotin pushed a commit that referenced this issue May 18, 2022
…cosign-installer-2.2.1

Bump sigstore/cosign-installer from 2.1.0 to 2.2.1
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

No branches or pull requests

3 participants