You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Jozef Wagner <jo...@gmail.com> on 2007/09/28 13:39:30 UTC

jcr2spi spi2dav getProperties returns only cached properties

Hi,

I'm using JCR through webdav (contrib jcr2spi and spi2dav libraries).
Server is default jcr server (jackrabbit-webapp-1.3.1 on tomcat),
client is 2007/09/28 svn snapshot

I've noticed that Node.getProperty returns only cached properties. Is
it a feature or a bug? :)


Example:


// I have nt:file node at kplab/jojo in my repository
...
Session session = repository.login();
Node root  = session.getRootNode();
Node node = root.getNode("kplab/jojo");
// node.getProperty("jcr:content/jcr:data"); // force to load property
from server
dump(node); // simple dump method from (
http://jackrabbit.apache.org/doc/firststeps.html )


dump prints:
/kplab/jojo
/kplab/jojo/jcr:content

But when I uncomment the getProperty line above, it prints:
/kplab/jojo
/kplab/jojo/jcr:content
/kplab/jojo/jcr:content/jcr:lastModified = 2007-09-27T15:52:27.312+02:00
/kplab/jojo/jcr:content/jcr:uuid = 4421ed5a-6200-4918-864e-c58643bc8d4e
/kplab/jojo/jcr:content/jcr:mimeType = text/plain
/kplab/jojo/jcr:content/jcr:data = hura hura
/kplab/jojo/jcr:content/jcr:primaryType = nt:resource


Best,
Jozef Wagner

P.S. Notice that in both cases, it does not fetch jrc:created and
jcr:primaryType properties from a node.

Re: jcr2spi spi2dav getProperties returns only cached properties

Posted by Jozef Wagner <jo...@gmail.com>.
Hi,

https://issues.apache.org/jira/browse/JCR-1158

Hope you'll be able to reproduce this bug.

Best,
Jozef Wagner


On 10/3/07, Angela Schreiber <an...@day.com> wrote:
> hi jozef
>
> could you create a jira issue including a complete testcase
> (including creating the nodes), that allows me to reproduce the
> problem on the trunk? i will take a look at it as soon as possible.
>
> regards
> angela
>
>

Re: jcr2spi spi2dav getProperties returns only cached properties

Posted by Angela Schreiber <an...@day.com>.
hi jozef

could you create a jira issue including a complete testcase
(including creating the nodes), that allows me to reproduce the
problem on the trunk? i will take a look at it as soon as possible.

regards
angela