Item13799: fails to connect network drive on Windows 7
Priority: Enhancement
Current State: Closed
Released In: n/a
Target Release:
Trying to connect to WebDAV from Windows 7's Explorer (via Network -> connect network drive) is not possible: after asking for username and password three times, the message "The network drive could not be connected due to the following error" and, variably "Ein an das System angeschlossenes Gerät funktioniert nicht" (a device connected to the system does not work) or "Der eingegebene Order ist ungültig" (the entered folder is invalid). Connecting to WebDAV from Internet Explorer, or from a Linux box with cadaver / nautilus / ... works fine.
The following patch fixes the problem for us:
--- a/lib/HTTP/WebDAV.pm
+++ b/lib/HTTP/WebDAV.pm
@@ -48,8 +48,10 @@ my @METHODS = qw( COPY DELETE GET HEAD MKCOL MOVE OPTIONS POST PROPFIND
# The list of live properties specified by RFC4918
my %default_props = map { ( '{DAV:}' . $_ => 1 ) } (
- 'creationdate', 'displayname',
- 'getcontentlanguage', 'getcontentlength',
+ 'creationdate',
+ #'displayname',
+ #'getcontentlanguage',
+ 'getcontentlength',
'getcontenttype', 'getetag',
'getlastmodified', 'lockdiscovery',
'resourcetype', 'supportedlock'
The root cause seems to be that the functions
_prop_displayname
and
_prop_getcontentlanguage
are commented out as UNWANTED, so the corresponding method calls fail adding "HTTP/1.1 404 Not Found" status elements to the DAV response, ultimately tripping up the Microsoft-WebDAV-MiniRedir client.
--
FlorianSchlichting - 06 Oct 2015
Which version of MiniRedir have you got?
--
MichaelDaum - 06 Oct 2015
according to the debug logging:
User-Agent: Microsoft-WebDAV-MiniRedir/6.1.7601
--
FlorianSchlichting - 06 Oct 2015
Same one I got over here but I wasn't as successful to get it running even with your patches applied ...
--
MichaelDaum - 06 Oct 2015
You should be able to verify that the multistatus response no longer contains those
HTTP/1.1 404 Not Found
, as well as the absence of
Error: No function for {DAV:}getcontentlanguag
Error: No function for {DAV:}displayname
no? And you've probably seen
http://foswiki.org/Extensions/WebDAVAndWindowsClient ...
I'm still on Foswiki 1.1.9 with a latin1 store, and use
WebDAVContrib 2.0.0 with FCGI.
--
FlorianSchlichting - 07 Oct 2015
It failed to accept my self-signed ssl certificate but didn't say so (error 1790). Switching
BasicAuthLevel
to 2 allows me to mount the web drive over http using basic auth just to verify that this part works ... which it does
However Office refuses to edit any document from that drive as it loads via http and not
https ... something I wasn't able to resolve yet on my local machine using a self-signed certificate.
--
MichaelDaum - 07 Oct 2015
Thank you, because it does show that it's not me alone who didn't get it up and running yet.
BTW: Integration in
NatSkin and
TopicInteractionPlugin would be very nice and welcome.
--
FranzJosefGigler - 07 Oct 2015
Crawford, any objections creating a new release?
--
MichaelDaum - 08 Mar 2016
Go for it.
--
Main.CrawfordCurrie - 11 Apr 2016 - 19:52