From users-return-15276-apmail-jackrabbit-users-archive=jackrabbit.apache.org@jackrabbit.apache.org Mon May 17 09:34:40 2010 Return-Path: Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: (qmail 76340 invoked from network); 17 May 2010 09:34:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 May 2010 09:34:40 -0000 Received: (qmail 11311 invoked by uid 500); 17 May 2010 09:34:39 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 11187 invoked by uid 500); 17 May 2010 09:34:39 -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 11178 invoked by uid 99); 17 May 2010 09:34:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 09:34:39 +0000 X-ASF-Spam-Status: No, hits=-1363.0 required=10.0 tests=ALL_TRUSTED,AWL,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.9] (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 17 May 2010 09:34:38 +0000 Received: (qmail 76307 invoked by uid 99); 17 May 2010 09:34:17 -0000 Received: from localhost.apache.org (HELO mail-vw0-f42.google.com) (127.0.0.1) (smtp-auth username bdelacretaz, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 May 2010 09:34:17 +0000 Received: by vws18 with SMTP id 18so1497026vws.1 for ; Mon, 17 May 2010 02:34:16 -0700 (PDT) MIME-Version: 1.0 Received: by 10.220.127.22 with SMTP id e22mr2280364vcs.242.1274088856533; Mon, 17 May 2010 02:34:16 -0700 (PDT) Received: by 10.220.76.2 with HTTP; Mon, 17 May 2010 02:34:16 -0700 (PDT) In-Reply-To: References: Date: Mon, 17 May 2010 11:34:16 +0200 Message-ID: Subject: Re: Error creating file with square brackets in filename From: Bertrand Delacretaz To: users@jackrabbit.apache.org Content-Type: text/plain; charset=UTF-8 On Mon, May 17, 2010 at 8:49 AM, David Gough wrote: > ...Some characters are illegal in node names and need escaping when persisting > and using in paths and XPath queries. > > There are handy utility classes provided for this which I unfortunately > discovered too late in my project :(... See Text.escapeIllegalJcrChars(String), for example, in the jackrabbit-jcr-commons module. -Bertrand