You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Jozef Wagner (JIRA)" <ji...@apache.org> on 2007/10/03 10:48:50 UTC

[jira] Created: (JCR-1158) jcr2spi spi2dav getProperties returns only cached properties

jcr2spi spi2dav getProperties returns only cached properties
------------------------------------------------------------

                 Key: JCR-1158
                 URL: https://issues.apache.org/jira/browse/JCR-1158
             Project: Jackrabbit
          Issue Type: Bug
          Components: SPI
         Environment: CR through webdav (contrib jcr2spi and spi2dav libraries).
Server is debian, default jcr server (jackrabbit-webapp-1.3.1 on tomcat),
client is windows, 2007/09/28 svn snapshot of jackrabbit
            Reporter: Jozef Wagner


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. 

Sample test case can be found at http://kplab.tuke.sk/svn/kplab/ctm/trunk/test/org/kplab/tsf/CTMTest.java

Note that sometimes properties do get printed, so it may not be so straightforwarding to reproduce this bug.


Simple 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

--
Jozef Wagner

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JCR-1158) jcr2spi spi2dav getProperties returns only cached properties

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532724 ] 

angela commented on JCR-1158:
-----------------------------

thanks for finding and reporting!

> jcr2spi spi2dav getProperties returns only cached properties
> ------------------------------------------------------------
>
>                 Key: JCR-1158
>                 URL: https://issues.apache.org/jira/browse/JCR-1158
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: SPI
>         Environment: CR through webdav (contrib jcr2spi and spi2dav libraries).
> Server is debian, default jcr server (jackrabbit-webapp-1.3.1 on tomcat),
> client is windows, 2007/09/28 svn snapshot of jackrabbit
>            Reporter: Jozef Wagner
>            Assignee: angela
>
> 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. 
> Sample test case can be found at http://kplab.tuke.sk/svn/kplab/ctm/trunk/test/org/kplab/tsf/CTMTest.java
> Note that sometimes properties do get printed, so it may not be so straightforwarding to reproduce this bug.
> Simple 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
> --
> Jozef Wagner

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (JCR-1158) jcr2spi spi2dav getProperties returns only cached properties

Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jukka Zitting updated JCR-1158:
-------------------------------

    Fix Version/s: 1.5

> jcr2spi spi2dav getProperties returns only cached properties
> ------------------------------------------------------------
>
>                 Key: JCR-1158
>                 URL: https://issues.apache.org/jira/browse/JCR-1158
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: jackrabbit-spi
>         Environment: CR through webdav (contrib jcr2spi and spi2dav libraries).
> Server is debian, default jcr server (jackrabbit-webapp-1.3.1 on tomcat),
> client is windows, 2007/09/28 svn snapshot of jackrabbit
>            Reporter: Jozef Wagner
>            Assignee: angela
>             Fix For: 1.5
>
>
> 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. 
> Sample test case can be found at http://kplab.tuke.sk/svn/kplab/ctm/trunk/test/org/kplab/tsf/CTMTest.java
> Note that sometimes properties do get printed, so it may not be so straightforwarding to reproduce this bug.
> Simple 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
> --
> Jozef Wagner

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (JCR-1158) jcr2spi spi2dav getProperties returns only cached properties

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela resolved JCR-1158.
-------------------------

    Resolution: Fixed

in addition properties of child-nodes were not loaded upon getItemInfos (depth header can only be 0, 1, infinity) -> disabled batch read unless a better solution is found.

> jcr2spi spi2dav getProperties returns only cached properties
> ------------------------------------------------------------
>
>                 Key: JCR-1158
>                 URL: https://issues.apache.org/jira/browse/JCR-1158
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: SPI
>         Environment: CR through webdav (contrib jcr2spi and spi2dav libraries).
> Server is debian, default jcr server (jackrabbit-webapp-1.3.1 on tomcat),
> client is windows, 2007/09/28 svn snapshot of jackrabbit
>            Reporter: Jozef Wagner
>            Assignee: angela
>
> 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. 
> Sample test case can be found at http://kplab.tuke.sk/svn/kplab/ctm/trunk/test/org/kplab/tsf/CTMTest.java
> Note that sometimes properties do get printed, so it may not be so straightforwarding to reproduce this bug.
> Simple 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
> --
> Jozef Wagner

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (JCR-1158) jcr2spi spi2dav getProperties returns only cached properties

Posted by "angela (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/JCR-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12532689 ] 

angela commented on JCR-1158:
-----------------------------

found. there is a bug in the spi2dav RepositoryService#getItemInfos call that results in wrong PropertyIDs to be
calculated.



> jcr2spi spi2dav getProperties returns only cached properties
> ------------------------------------------------------------
>
>                 Key: JCR-1158
>                 URL: https://issues.apache.org/jira/browse/JCR-1158
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: SPI
>         Environment: CR through webdav (contrib jcr2spi and spi2dav libraries).
> Server is debian, default jcr server (jackrabbit-webapp-1.3.1 on tomcat),
> client is windows, 2007/09/28 svn snapshot of jackrabbit
>            Reporter: Jozef Wagner
>            Assignee: angela
>
> 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. 
> Sample test case can be found at http://kplab.tuke.sk/svn/kplab/ctm/trunk/test/org/kplab/tsf/CTMTest.java
> Note that sometimes properties do get printed, so it may not be so straightforwarding to reproduce this bug.
> Simple 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
> --
> Jozef Wagner

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (JCR-1158) jcr2spi spi2dav getProperties returns only cached properties

Posted by "angela (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/JCR-1158?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

angela reassigned JCR-1158:
---------------------------

    Assignee: angela

> jcr2spi spi2dav getProperties returns only cached properties
> ------------------------------------------------------------
>
>                 Key: JCR-1158
>                 URL: https://issues.apache.org/jira/browse/JCR-1158
>             Project: Jackrabbit
>          Issue Type: Bug
>          Components: SPI
>         Environment: CR through webdav (contrib jcr2spi and spi2dav libraries).
> Server is debian, default jcr server (jackrabbit-webapp-1.3.1 on tomcat),
> client is windows, 2007/09/28 svn snapshot of jackrabbit
>            Reporter: Jozef Wagner
>            Assignee: angela
>
> 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. 
> Sample test case can be found at http://kplab.tuke.sk/svn/kplab/ctm/trunk/test/org/kplab/tsf/CTMTest.java
> Note that sometimes properties do get printed, so it may not be so straightforwarding to reproduce this bug.
> Simple 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
> --
> Jozef Wagner

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.