DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51LLAHq41022188 Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 51LLAHq41022188 Authentication-Results: delorie.com; dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=sCOsLpfN X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B13E43858404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1740172216; bh=1vglLT6RYTLXzxvoHJggD+cv/+rl1Pwq0SAUU9q/PDY=; h=Date:To:Subject:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=sCOsLpfNY8Od4KZJ7TUk1ZkssARapSYq1u/gTQI70XcOPpEdsr/mkcllporuVhod5 RciBxK+luNi25YTduf3dPq9/FAu3C7qdaseN8EGnALWXHjSMUrZMhJwX/nTxTNmzlr S280Uthp+hmvBKZ8fqhSrtJpAWmwqBXSOyFzenu8= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 697C53858D20 Date: Fri, 21 Feb 2025 22:08:38 +0100 To: cygwin AT cygwin DOT com Subject: Re: UNC path for WebDAV with cd '\\webdavsrv AT SSL\path' or cd '\\webdavsrv AT 23456\path' will not work Message-ID: Mail-Followup-To: cygwin AT cygwin DOT com References: MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Corinna Vinschen via Cygwin Reply-To: cygwin AT cygwin DOT com Cc: Corinna Vinschen Content-Type: text/plain; charset="utf-8" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51LLAHq41022188 On Feb 21 12:50, Martin Wege via Cygwin wrote: > On Fri, Feb 21, 2025 at 11:29 AM Corinna Vinschen via Cygwin > wrote: > > On Feb 20 23:36, Martin Wege via Cygwin wrote: > > > And speaking of the "hostname", is this the \\hostname\path of an UNC? > > > In that case this will not work with WebDAV/SSL or WebDAV with custom > > > port, which might be \\webdavserver AT SSL\path or > > > \\webdavserver AT 23456\path, or \\webdavserver AT SSL@23456\path > > > You need to replace the L'@' with L'\0' before calling GetAddrInfoW(), > > > or it is not going to work with WebDAV > > > > I never saw that before. Is that syntax really usable? > > > > I just spent half an hour trying to connect to a nextcloud instance > > using this syntax, but to no avail. https://... works. > > 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 DOT somedomain AT ssl $ cd //cloud DOT somedomain AT 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. Thanks for the input in terms of Webdav. Corinna -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation: https://cygwin.com/docs.html Unsubscribe info: https://cygwin.com/ml/#unsubscribe-simple