jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Torgeir Veimo <torg...@pobox.com>
Subject Re: malformedpathexception
Date Wed, 25 Apr 2007 16:34:08 GMT

On 25 Apr 2007, at 17:23, Stefan Guggisberg wrote:

> On 4/25/07, Torgeir Veimo <torgeir@pobox.com> wrote:
>> Upgraded to jackrabbit 1.3, and I can no longer do
>>
>> Item item = session.getItem("/nen:content/pages/news/" );
>>
>> which results in
>>
>> org.apache.jackrabbit.name.MalformedPathException: Empty path
>> element: /nen:content/pages/news/
>>
>> Is there a new limitation that a node path cannot end in / anymore?
>
> afaik trailing slashes are illegal according to the spec (4.6 Path  
> Syntax):
>
> path ::= abspath | relpath
> abspath ::= '/' relpath | '/'
> relpath ::= pathelement | relpath '/' pathelement
> pathelement ::= name | name '[' number ']' | '..' | '.'
>
>
> so if you were able to pass something like "/foo/bar/" in a previous
> release i'd argue that this was due to a bug in the path parser.  
> however
> i am not aware of recent changes in the Path implemention.

Ok, that's fine, I can see the logic. I only have to more carefully  
preprocess the urls that are coming in.


-- 
Torgeir Veimo
torgeir@pobox.com




Mime
View raw message