You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jackrabbit.apache.org by "Edgar Poce (JIRA)" <ji...@apache.org> on 2005/10/01 19:57:47 UTC
[jira] Created: (JCR-231) [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
[jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
-----------------------------------------------------------------------------------------------------
Key: JCR-231
URL: http://issues.apache.org/jira/browse/JCR-231
Project: Jackrabbit
Type: Bug
Reporter: Edgar Poce
Priority: Minor
o.a.j.rmi.server.ServerQueryResult assumes the underlying NodeIterator always return the number of elements, but it migth return -1 in some cases [1], AFAIK depending on the jcr impl. When -1 is returned jcr-rmi fails to return the QueryResult.
e.g. it fails with the following xpath query //*
[1] http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/RangeIterator.html#getSize()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Commented: (JCR-231) [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
Posted by "Edgar Poce (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-231?page=comments#action_12331031 ]
Edgar Poce commented on JCR-231:
--------------------------------
probably all the classes in o.a.j.rmi.server that instantiate any javax.jcr.RangedIterator implementation from the package o.a.j.rmi.iterator should be reviewed.
> [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
> -----------------------------------------------------------------------------------------------------
>
> Key: JCR-231
> URL: http://issues.apache.org/jira/browse/JCR-231
> Project: Jackrabbit
> Type: Bug
> Reporter: Edgar Poce
> Priority: Minor
> Attachments: 05-10-01-jcr-rmi-QueryResult.patch
>
> o.a.j.rmi.server.ServerQueryResult assumes the underlying NodeIterator always return the number of elements, but it migth return -1 in some cases [1], AFAIK depending on the jcr impl. When -1 is returned jcr-rmi fails to return the QueryResult.
> e.g. it fails with the following xpath query //*
> [1] http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/RangeIterator.html#getSize()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Resolved: (JCR-231) [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-231?page=all ]
Jukka Zitting resolved JCR-231:
-------------------------------
Fix Version: 1.0
Resolution: Fixed
All uses of RangedIterator.getSize() replaced as proposed in revision 293078. Thanks for the suggestion!
> [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
> -----------------------------------------------------------------------------------------------------
>
> Key: JCR-231
> URL: http://issues.apache.org/jira/browse/JCR-231
> Project: Jackrabbit
> Type: Bug
> Reporter: Edgar Poce
> Assignee: Jukka Zitting
> Priority: Minor
> Fix For: 1.0
> Attachments: 05-10-01-jcr-rmi-QueryResult.patch
>
> o.a.j.rmi.server.ServerQueryResult assumes the underlying NodeIterator always return the number of elements, but it migth return -1 in some cases [1], AFAIK depending on the jcr impl. When -1 is returned jcr-rmi fails to return the QueryResult.
> e.g. it fails with the following xpath query //*
> [1] http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/RangeIterator.html#getSize()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Assigned: (JCR-231) [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-231?page=all ]
Jukka Zitting reassigned JCR-231:
---------------------------------
Assign To: Jukka Zitting
> [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
> -----------------------------------------------------------------------------------------------------
>
> Key: JCR-231
> URL: http://issues.apache.org/jira/browse/JCR-231
> Project: Jackrabbit
> Type: Bug
> Reporter: Edgar Poce
> Assignee: Jukka Zitting
> Priority: Minor
> Attachments: 05-10-01-jcr-rmi-QueryResult.patch
>
> o.a.j.rmi.server.ServerQueryResult assumes the underlying NodeIterator always return the number of elements, but it migth return -1 in some cases [1], AFAIK depending on the jcr impl. When -1 is returned jcr-rmi fails to return the QueryResult.
> e.g. it fails with the following xpath query //*
> [1] http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/RangeIterator.html#getSize()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Closed: (JCR-231) [jcr-rmi] xpath queries don't work when
the underlying QueryResult doesn't return the rows/nodes size
Posted by "Jukka Zitting (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-231?page=all ]
Jukka Zitting closed JCR-231:
-----------------------------
> [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
> -----------------------------------------------------------------------------------------------------
>
> Key: JCR-231
> URL: http://issues.apache.org/jira/browse/JCR-231
> Project: Jackrabbit
> Type: Bug
> Reporter: Edgar Poce
> Assignee: Jukka Zitting
> Priority: Minor
> Fix For: 1.0
> Attachments: 05-10-01-jcr-rmi-QueryResult.patch
>
> o.a.j.rmi.server.ServerQueryResult assumes the underlying NodeIterator always return the number of elements, but it migth return -1 in some cases [1], AFAIK depending on the jcr impl. When -1 is returned jcr-rmi fails to return the QueryResult.
> e.g. it fails with the following xpath query //*
> [1] http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/RangeIterator.html#getSize()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
[jira] Updated: (JCR-231) [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
Posted by "Edgar Poce (JIRA)" <ji...@apache.org>.
[ http://issues.apache.org/jira/browse/JCR-231?page=all ]
Edgar Poce updated JCR-231:
---------------------------
Attachment: 05-10-01-jcr-rmi-QueryResult.patch
> [jcr-rmi] xpath queries don't work when the underlying QueryResult doesn't return the rows/nodes size
> -----------------------------------------------------------------------------------------------------
>
> Key: JCR-231
> URL: http://issues.apache.org/jira/browse/JCR-231
> Project: Jackrabbit
> Type: Bug
> Reporter: Edgar Poce
> Priority: Minor
> Attachments: 05-10-01-jcr-rmi-QueryResult.patch
>
> o.a.j.rmi.server.ServerQueryResult assumes the underlying NodeIterator always return the number of elements, but it migth return -1 in some cases [1], AFAIK depending on the jcr impl. When -1 is returned jcr-rmi fails to return the QueryResult.
> e.g. it fails with the following xpath query //*
> [1] http://www.day.com/maven/jsr170/javadocs/jcr-1.0/javax/jcr/RangeIterator.html#getSize()
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira