UNC path for WebDAV with cd '\\webdavsrv@SSL\path' or cd '\\webdavsrv@23456\path' will not work
Corinna Vinschen
corinna-cygwin@cygwin.com
Sat Feb 22 11:23:47 GMT 2025
On Feb 22 08:35, Cedric Blancher via Cygwin wrote:
> On 2025年2月21日 at 22:09, Corinna Vinschen via Cygwin
> <cygwin@cygwin.com> wrote:
> > On Feb 21 12:50, Martin Wege via Cygwin wrote:
> > > Full command line, please.
> >
> > Turns out, this wasn't working because I hadn't installed the CA
> > certificate for the nextcloud instance. The browser let me access the
> > cloud instance nevertheless, but with net use...
> >
> > $ net use https://cloud.somedomain/remote.php/dav/files/corinna \
> > /user:corinna somepassword
> > System error 1244 has occurred.
> >
> > As soon as I installed the certificate it started working!
> >
> > $ net use https://cloud.somedomain/remote.php/dav/files/corinna \
> > /user:corinna somepassword
> > The command completed successfully.
> >
> > And it started working in Cygwin with the patch removing the at-sign
> > prior to calling GetAddrInfoW:
> >
> > $ ls -l // | grep cloud
> > dr-xr-xr-x 1 corinna vinschen 0 Feb 21 21:41 cloud01.somedomain@ssl
> >
> > $ cd //cloud.somedomain@ssl/remote.php/dav/files/corinna
> > $ ls | head -1
> > Backup Musik 'Reasons to use Nextcloud.pdf'
> >
> > > *PLEASE* push the patch to cut off the L'@'
> >
> > Now that it works for me and I could actually test it, done. This will
> > be in test release 3.6.0-0.387.g8cebbb2b42bf.
>> Please add this patch to the cygwin-3.5-branch too.
Apart from the fact that we won't do YA 3.5 release, that's not
possible. The netdrive code in 3.6 changed considerably, now
using the Network Discovery Protocol, rather than the SMBv1 ABI.
Corinna
More information about the Cygwin
mailing list