jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julian Reschke (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (JCR-3582) Unable to create nodes with Double Byte Space
Date Fri, 26 Jul 2013 07:45:49 GMT

     [ https://issues.apache.org/jira/browse/JCR-3582?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Julian Reschke reassigned JCR-3582:
-----------------------------------

    Assignee: Julian Reschke
    
> 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
>            Assignee: Julian Reschke
>
> when trying to create a node with double byte space in name,following error is thrown

> Exception in thread "main" javax.jcr.RepositoryException: Failed to resolve path 2byte space.jpg
relative to node /
>        at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:65)
>        at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:1)
>        at org.apache.jackrabbit.core.session.SessionState.perform(SessionState.java:216)
>        at org.apache.jackrabbit.core.ItemImpl.perform(ItemImpl.java:91)
>        at org.apache.jackrabbit.core.NodeImpl.addNodeWithUuid(NodeImpl.java: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.MalformedPathException: '2byte space.jpg'
is not a valid path. Whitespace not a allowed in name.
>        at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:393)
>        at org.apache.jackrabbit.spi.commons.conversion.PathParser.parse(PathParser.java:122)
>        at org.apache.jackrabbit.spi.commons.conversion.ParsingPathResolver.getQPath(ParsingPathResolver.java:90)
>        at org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver.getQPath(CachingPathResolver.java:98)
>        at org.apache.jackrabbit.spi.commons.conversion.CachingPathResolver.getQPath(CachingPathResolver.java:77)
>        at org.apache.jackrabbit.spi.commons.conversion.DefaultNamePathResolver.getQPath(DefaultNamePathResolver.java:82)
>        at org.apache.jackrabbit.core.SessionImpl.getQPath(SessionImpl.java:648)
>        at org.apache.jackrabbit.core.session.SessionContext.getQPath(SessionContext.java:338)
>        at org.apache.jackrabbit.core.session.AddNodeOperation.perform(AddNodeOperation.java:63)
>        ... 6 more
> This can be reproduced by following code
> public static void main(String[] args) throws Exception {
>               Repository repository = new TransientRepository();
>               Session session = repository.login(new SimpleCredentials("username",
>                            "password".toCharArray()));
>               try {
>                      Node root = session.getRootNode();
>                      
>                      // Store content
>                      Node hello = root.addNode("2byte space.jpg");
>               
>                      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 administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message