[
https://issues.apache.org/jira/browse/JCR-758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12474567
]
Paco Avila commented on JCR-758:
Big news! I have the same weird issue. I am trying to make a minimal test case.
The duplicate nodes are nodes which the quering session have no permissions and
the returned node is a duplicate of the last returned node where the session
can read. It is a bit confusing to explain and my english is poor.
If the query is done by a super user session, the returned nodes are the good
nodes. If the query is performed by a limited user session, the number of
returned nodes are the same (amazing!!), but the forbidden nodes are not
returned (of course) and these nodes are filled with the other readed nodes.
QueryResult's RowIterator.getSize returned the wrong size of the results
after I implemented my own AccessManager
-
Key: JCR-758
URL: https://issues.apache.org/jira/browse/JCR-758
Project: Jackrabbit
Issue Type: Bug
Affects Versions: 1.2.1
Reporter: Xiaohua Lu
The background is I have implemented my own AccessManager. After executing a
query and get back the RowIterator from the result, if I call
rowiterator.getSize, it will return the size of all nodes matching my query
(without honoring the access control) . But if I iterate through the result,
I find lots of duplicates in the results; and if I filter out those
duplicate, the final result is quite off the original number from
RowIteartor.getSize()
BTW, I also disabled Doc Order sorting.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.