Hi,
well, '|' is an invalid character by the JCR spec:
InvalidChar ::= '/' | ':' | '[' | ']' | '|' | '*'
so I wonder how you created this node :-)
but maybe you can iterate over the childnodes, do a string-compare of
the name and then do a node.remove(), eg:
for (NodeIterator iter = session.getRootNode().getNodes(); iter.hasNext();) {
Node child = iter.nextNode();
if (child.getName().equals("My |index")) child.remove();
}
session.save();
regards, toby
On Mon, May 12, 2014 at 2:24 PM, hsp <[email protected]> wrote:
> Tobias,
>
> In
> ...core...SessionItemOperation
> /**
> * Performs this operation on the specified item. This method resolves
> * the given absolute path and calls the abstract
> * {@link #perform(ItemManager, Path)} method to actually perform the
> * selected operation.
> *
> * @throws RepositoryException if the operation fails
> */
> public T perform(SessionContext context) throws RepositoryException
> ...
> Path normalized = context.getQPath(path).getNormalizedPath();
> ...
>
> org.apache.jackrabbit.spi.commons.conversion.MalformedPathException: '/My
> |ndex' is not a valid path. '|' not a valid name character.
>
> Regards,
>
> Helio.
>
>
>
> --
> View this message in context:
> http://jackrabbit.510166.n4.nabble.com/javax-jcr-PathNotFoundException-for-node-with-character-in-name-tp4660829p4660835.html
> Sent from the Jackrabbit - Users mailing list archive at Nabble.com.