[ https://issues.apache.org/jira/browse/SLING-383?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz updated SLING-383: -------------------------------------- Attachment: SLING-383.patch I'm getting connection reset by peer (https://svn.apache.org) errors ATM, will commit this patch once things are back to normal. > Add simple JavaScript (Rhino) Wrappers for Version and VersionHistory > interfaces > -------------------------------------------------------------------------------- > > Key: SLING-383 > URL: https://issues.apache.org/jira/browse/SLING-383 > Project: Sling > Issue Type: New Feature > Components: Scripting > Reporter: Felix Meschberger > Assignee: Bertrand Delacretaz > Attachments: SLING-383.patch > > > SLING-382 reported an issue handling the JCR Version and VersionHistory > objects, which were wrapped as JCR Nodes. The cause is that there are no > wrappers for these interfaces but as both Version and VersionHistory extend > Node, the Node wrapper was used. This prevents using the Version and > VersionHistory methods. > SLING-382 implemented a workaround for this. I think the correct solution > would be to add simple wrappers for the Version and VersionHistory objects > which extend from the ScriptableNode wrapper and thus provide the Version and > VersionHistory methods as well as the Node methods. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.