DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 51M7bceD1266680 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 51M7bceD1266680 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=HeOk6at+ X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AC1C1385840F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1740209857; bh=dypJNRSeF+TeTqeW+hsBrCsxH3UISgA18yome4BdEh4=; h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=HeOk6at+/eQ17ZKv3Wft7J71RzNk2fQWTS6wChByxe6yER4iuhMqpOjqoUXxJLzlt 2cVXgrufWsVeOZ6HZCecfRCfNIcW6e6bpuSqsWQoZp7fiy5QEyXC+8+SGYlTlo3QMf HIW2v1nvHPYtOBv6gmz9Psk9Ice2Ai2E20bv9E8M= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5F2EC3858D20 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 5F2EC3858D20 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740209795; cv=none; b=TsBT2tTjLvCmmG8KG5u1oKtgdORAF0ytYZPBDIgHHeIQdpIaO95zAJgxtOpTdO6V5p05wXJYfSWm9SQXpFyHBcCn5UCliTSrBiaNFk8reYykukc3+RsCLleFPsH65bIDQ7Y2XTnWIEhYnHa9cFhjKB+AEsx8ouORDvI31cWyLm4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740209795; c=relaxed/simple; bh=ThcNJavT6cty78SIHJ+DjfXKkhDHqE9lZ19Is32DrcY=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=D3xb1+qXewoZewiL7EWTSMEG3wZ5Vbte+4Uqy2kp5LqmBWd+kp9GjVAv7Q0t05fRyxjBUGkKBDPU+vfNCY05UpXvHj75iVcpfxyqQ48JPkazBp/jRCKBmQEfD4+Qpy3Yakt3YSRwqGcFRZVEDfFL4hk3q1Djjh2s9ePK/2peoNU= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5F2EC3858D20 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740209794; x=1740814594; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ZsWZVA4vBidnRHajUXXhEPWkc//grGaL/WLkw3uhkQs=; b=pVeI6t3Wk16Wgkz1u6B/Kn6FL6lIfwAmJnRyqDu/vs7OZlIa57iJ/ExVy7Z1rjPdl6 YUZGVBFSXBjBN7qOzXdWCHYpA7nm8/nJWWbJ365vp65lSUXTfOxxPSQcNyDchKHqHyKN kascisqwMSnQZrDgoM9HeLr8t1ssCuVQFRz9t4l+bkfdG3DKqao81ah6ktTU9aNW2wmD oOadJhDYleKQhTZMN1KlBFwyDce8Po0R6EEutFMp6gCUANCjut97qC84oS+ISIU6yW1Y SlUju4ruPQd8ri/U94zqqoduVeeuilY4Ied/0z4xhOoI6XJ0pFBfw5U87PK0R9PjYcZd f1jQ== X-Gm-Message-State: AOJu0YyToLzabsWy+2jq+bDI/l88jCb2JbJp+ZuBWLCe8N0ggdDPCQb+ JbuHJoPUiUHrkxAM01O7EjYZwp1UQvIp2JeQnUj/PpZv5jRG2ViBQBXLGT/+FzjgqK1eQGgLk+k p5iZbX33VLO1SLrZIttdztsAGHjyBPA== X-Gm-Gg: ASbGncuznB2RY3WiUGFUzx1gb1fZJu4n8S0kyi9keXU/lr5WexOl82A/JAKzRAdBe1Y dv+g/ctz1i33/a7fbLgIuu7mz3OVM1deblDY/ucn1lMHFt83vw7j4aoM1H5Vg3y9YVHFjqNn9nR XCsl2/gUhs X-Google-Smtp-Source: AGHT+IH61SiTSpKW/jYHRG6RVzYwDE6WmKSk8kl+6DPUW8RCV4UEIMkoghCTINIyqqfijYpG9pPjRw47ceg+Y/Twi7Y= X-Received: by 2002:a17:90b:1f8c:b0:2ee:e317:69ab with SMTP id 98e67ed59e1d1-2fce75eb4f0mr12199140a91.0.1740209794106; Fri, 21 Feb 2025 23:36:34 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: Date: Sat, 22 Feb 2025 08:35:00 +0100 X-Gm-Features: AWEUYZnbGCduB4RmGJV9yOTDF0LQLxOAtf0vTxO7m7rgc206DMszHpumTJDsAYQ Message-ID: Subject: Re: UNC path for WebDAV with cd '\\webdavsrv AT SSL\path' or cd '\\webdavsrv AT 23456\path' will not work To: cygwin AT cygwin DOT com X-BeenThere: cygwin AT cygwin DOT com X-Mailman-Version: 2.1.30 List-Id: General Cygwin discussions and problem reports List-Archive: List-Post: List-Help: List-Subscribe: , From: Cedric Blancher via Cygwin Reply-To: Cedric Blancher Content-Type: text/plain; charset="utf-8" Sender: "Cygwin" Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 51M7bceD1266680 On Fri, 21 Feb 2025 at 22:09, Corinna Vinschen via Cygwin wrote: > > 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. Please add this patch to the cygwin-3.5-branch too. Ced -- Cedric Blancher [https://plus.google.com/u/0/+CedricBlancher/] Institute Pasteur -- 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