Return-Path: Delivered-To: apmail-jackrabbit-users-archive@locus.apache.org Received: (qmail 2694 invoked from network); 29 Jul 2008 09:11:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 29 Jul 2008 09:11:29 -0000 Received: (qmail 30470 invoked by uid 500); 29 Jul 2008 09:11:27 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 30449 invoked by uid 500); 29 Jul 2008 09:11:27 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 30438 invoked by uid 99); 29 Jul 2008 09:11:27 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2008 02:11:27 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of anchela@day.com designates 62.192.10.254 as permitted sender) Received: from [62.192.10.254] (HELO goobak01.day.com) (62.192.10.254) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2008 09:10:32 +0000 Received: by goobak01.day.com (Postfix, from userid 1212) id 0A6EC50838; Tue, 29 Jul 2008 11:10:02 +0200 (CEST) Received: from ik-out-1112.google.com (ik-out-1112.google.com [66.249.90.181]) by goobak01.day.com (Postfix) with ESMTP id C699050823 for ; Tue, 29 Jul 2008 11:10:00 +0200 (CEST) Received: by ik-out-1112.google.com with SMTP id c21so5723377ika.1 for ; Tue, 29 Jul 2008 02:10:56 -0700 (PDT) Received: by 10.210.24.7 with SMTP id 7mr7251420ebx.178.1217322655944; Tue, 29 Jul 2008 02:10:55 -0700 (PDT) Received: from ?10.0.0.148? ( [62.192.10.254]) by mx.google.com with ESMTPS id h6sm31186271nfh.29.2008.07.29.02.10.54 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 29 Jul 2008 02:10:55 -0700 (PDT) Message-ID: <488EDF0C.5010109@day.com> Date: Tue, 29 Jul 2008 11:12:44 +0200 From: Angela Schreiber User-Agent: Thunderbird 1.5.0.10 (Windows/20070221) MIME-Version: 1.0 To: users@jackrabbit.apache.org Subject: Re: Submit file with forbidden chars in name to WebDAV References: <8f70390807290044h78cb2328pbaf249071f299989@mail.gmail.com> In-Reply-To: <8f70390807290044h78cb2328pbaf249071f299989@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Paco Avila wrote: > There are some forbidden chars in node names (:, [, ], *, \, ", |) How deal > WebDAV with these files? Actually server response is "500 Internal Server > Error" but can I escape the document names (and folder) to clean these > forbidden chars and get a good name? The real question is: where should I > call this escaping method? first of all: the problem is cause by JCR which has some limiations regarding names. so far it's not related to WebDAV. if you are using the simple webdav server, i would suggest that you create your own DavResourceLocator factory that adds escaping/unescaping of the chars invalid in JCR names upon conversion from href -> repositoryPath and repositoryPath -> href. regards angela