|
[
Permlink
| « Hide
]
Charles Miller [old account, do not assign issues] added a comment - 18/Jul/06 03:03 AM
I couldn't reproduce this, the above steps work fine for me. Need a working test case.
This behaviour would seem to depend on the timing of index queue flushing. If the comment is added to the queue with the initial page creation index job the comment inherits the correct permissions. But comments added to the index queue once the initial page creation index event has been flushed though do not properly inherit permissions.
This issue does indeed have to do with the timing of the index queue flushing.
To reproduce properly you will need to install the 'Job Manager Plugin' and disable the 'IndexQueueFlusher' Job (or wait for the job to run before adding the comment). Steps to reproduce: Committed to 2.4 branch and trunk.
The cause of this issue was because:
The permission check tested for the getPage result to see if it implemented hierarchical. But since it was a proxy, it didn't (and the instanceof check didn't de-proxy it). This issue did not come up if the page was indexed in the same flush because it was loaded by hibernate (and deproxied correctly) before this check was made. Removed the configuration to proxy (and lazy load) the comment->page reference. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||