Return-Path: X-Original-To: apmail-jackrabbit-dev-archive@www.apache.org Delivered-To: apmail-jackrabbit-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9FD2810312 for ; Wed, 24 Apr 2013 08:54:27 +0000 (UTC) Received: (qmail 73029 invoked by uid 500); 24 Apr 2013 08:44:35 -0000 Delivered-To: apmail-jackrabbit-dev-archive@jackrabbit.apache.org Received: (qmail 72703 invoked by uid 500); 24 Apr 2013 08:44:21 -0000 Mailing-List: contact dev-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@jackrabbit.apache.org Delivered-To: mailing list dev@jackrabbit.apache.org Received: (qmail 71679 invoked by uid 99); 24 Apr 2013 08:43:37 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 24 Apr 2013 08:43:37 +0000 Date: Wed, 24 Apr 2013 08:43:37 +0000 (UTC) From: "Julian Reschke (JIRA)" To: dev@jackrabbit.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Comment Edited] (JCR-3582) Unable to create nodes with Double Byte Space MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/JCR-3582?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D136402= 45#comment-13640245 ]=20 Julian Reschke edited comment on JCR-3582 at 4/24/13 8:42 AM: -------------------------------------------------------------- AFAIR PathParser in a first step replaces Unicode *all* whitespace characte= rs by TAB. Why does it do that? =20 was (Author: reschke): IMHO PathParser in a first step replaces Unicode *all* whitespace chara= cters by TAB. Why does it do that? =20 > Unable to create nodes with Double Byte Space > ---------------------------------------------- > > Key: JCR-3582 > URL: https://issues.apache.org/jira/browse/JCR-3582 > Project: Jackrabbit Content Repository > Issue Type: Bug > Reporter: Abhinav Mathur > > when trying to create a node with double byte space in name,following err= or is thrown=20 > Exception in thread "main" javax.jcr.RepositoryException: Failed to resol= ve path 2byte=E3=80=80space.jpg relative to node / > at org.apache.jackrabbit.core.session.AddNodeOperation.perform(Add= NodeOperation.java:65) > at org.apache.jackrabbit.core.session.AddNodeOperation.perform(Add= NodeOperation.java:1) > at org.apache.jackrabbit.core.session.SessionState.perform(Session= State.java:216) > at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91) > at org.apache.jackrabbit.core.NodeImpl.addNodeWithUuid(NodeImpl.ja= va:1814) > at org.apache.jackrabbit.core.NodeImpl.addNode(NodeImpl.java:1766) > at Test.main(Test.java:29) > Caused by: org.apache.jackrabbit.spi.commons.conversion.MalformedPathExce= ption: '2byte=E3=80=80space.jpg' is not a valid path. Whitespace not a allo= wed in name. > at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(P= athParser.java:393) > at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(P= athParser.java:122) > at org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolve= r.getQPath(ParsingPathResolver.java:90) > at org.apache.jackrabbit.spi.commons.conversion.CachingPathResolve= r.getQPath(CachingPathResolver.java:98) > at org.apache.jackrabbit.spi.commons.conversion.CachingPathResolve= r.getQPath(CachingPathResolver.java:77) > at org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathRes= olver.getQPath(DefaultNamePathResolver.java:82) > at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.jav= a:648) > at org.apache.jackrabbit.core.session.SessionContext.getQPath(Sess= ionContext.java:338) > at org.apache.jackrabbit.core.session.AddNodeOperation.perform(Add= NodeOperation.java:63) > ... 6 more > This can be reproduced by following code > public static void main(String[] args) throws Exception { > Repository repository =3D new TransientRepository(); > Session session =3D repository.login(new SimpleCredentials(= "username", > "password".toCharArray())); > try { > Node root =3D session.getRootNode(); > =20 > // Store content > Node hello =3D root.addNode("2byte=E3=80=80space.jpg= "); > =20 > session.save(); > } finally { > session.logout(); > } > } > I am using jackrabbit-2.6.0 -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrato= rs For more information on JIRA, see: http://www.atlassian.com/software/jira