jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting" <jukka.zitt...@gmail.com>
Subject Re: XPath and Whitespaces
Date Thu, 01 Mar 2007 18:57:59 GMT
Hi,

On 3/1/07, Julian Reschke <julian.reschke@gmx.de> wrote:
> Looks like a bug in
>
>      private String createStatement(Property refProperty, String nameTest)
>              throws RepositoryException {
>          StringBuffer stmt = new StringBuffer();
>
> stmt.append("/").append(jcrRoot).append(refProperty.getParent().getPath());
>          stmt.append("/").append(jcrDeref).append("(@");
>          stmt.append(refProperty.getName()).append(", '");
>          stmt.append(nameTest).append("')");
>          return stmt.toString();
>      }
>
> to me (it should do the required escaping of the name).

You're right. We actually encountered a similar problem earlier, see
JCR-714 for the related bug report.

BR,

Jukka Zitting

Mime
View raw message