Return-Path: X-Original-To: apmail-subversion-users-archive@minotaur.apache.org Delivered-To: apmail-subversion-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 73E3C12F7F for ; Sun, 11 May 2014 02:01:04 +0000 (UTC) Received: (qmail 13931 invoked by uid 500); 10 May 2014 23:27:28 -0000 Delivered-To: apmail-subversion-users-archive@subversion.apache.org Received: (qmail 48046 invoked by uid 500); 10 May 2014 23:15:03 -0000 Mailing-List: contact users-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@subversion.apache.org Received: (qmail 40192 invoked by uid 99); 10 May 2014 22:58:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 10 May 2014 22:58:54 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [212.227.15.3] (HELO mout.web.de) (212.227.15.3) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 07 May 2014 16:04:54 +0000 Received: from [192.168.2.23] ([79.197.204.83]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0MQNjQ-1WGX4W1vps-00TnCb; Wed, 07 May 2014 18:04:32 +0200 Subject: Re: "svn copy --parents" allows insertion of an errant '\' in http://path Mime-Version: 1.0 (Apple Message framework v1085) Content-Type: multipart/alternative; boundary=Apple-Mail-1-264671773 From: Tobias Bading In-Reply-To: Date: Wed, 7 May 2014 18:04:26 +0200 Cc: Dan Ellis Message-Id: <62A48BE0-E4B7-4743-AF2B-71ADAE9699EE@web.de> References: To: Subversion Users X-Mailer: Apple Mail (2.1085) X-Provags-ID: V03:K0:YTzhwjJw4yENcrDuPdMdeehh8ggFLR0xUO4sw3/muXNESwPcm2A X3Pk9VBNKt1qF2hFv58r8lhxFn7dJO0evNTVFj0P02IiOKvFTZOaotyBaJhqYoKrS4cIzXK IB1O6HVq+mtXTm4EnwjOqLCNdzL+a3P/RPRLMg2cGWguHIiPs93vJ9OY6bzOdljNYTRWqg7 1PRZdrnfj7lSKTwRxgdyQ== X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail-1-264671773 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Hi Dan, I just tried this on OS X (using svn 1.8.0) and I'm able to create a = directory in the repository with a backslash in its name and delete it = again. My guess would be that this works on other UNIXes as well. So if you = have access to a non-Windows machine, delete or rename the directory = from that machine. (Don't forget that you have to escape the backslash = with a second backslash for the shell.) Tobias On 07.05.2014, at 01:25, Dan Ellis wrote: > Hi, >=20 > I pulled a silly mistake just now... I accidentally let my windows = backslash enter into an http URL during an SVN copy operation. >=20 > copy --parents "C:\Project_files\sandbox\bar.c" = "http://svr/sandbox/A\B/bar1.c" -m "bad commit" >=20 > It successfully committed. >=20 > svn update now returns the following: >=20 > svn: E155000: 'A\B' is not a valid filename in directory = 'C:\Project_files\sandbox\' >=20 > First, I assume there should be a check to prevent this invalid = character for URLs. Second, how do I undo my error? >=20 > I'm on SVN 1.8.5 and the backslash should give me away as a windows = user (Win7 - 64bit). >=20 > Thanks for the help, > Dan >=20 >=20 --Apple-Mail-1-264671773 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii
Hi,

I = pulled a silly mistake just now...  I accidentally let my windows = backslash enter into an http URL during an SVN copy = operation.

copy --parents = "C:\Project_files\sandbox\bar.c" "http://svr/sandbox/A\B/bar1.c" = -m "bad commit"

It successfully = committed.

svn update now returns the = following:

svn: E155000: 'A\B' is not a valid = filename in directory 'C:\Project_files\sandbox\'

 First, I assume there should be a check to = prevent this invalid character for URLs.  Second, how do I undo my = error?

I'm on SVN 1.8.5 and the backslash = should give me away as a windows user (Win7 - 64bit).

Thanks for the = help,
Dan



= --Apple-Mail-1-264671773--