VersionHistoryImpl is incorrectly wrapped as a Node in server-side javascript 
------------------------------------------------------------------------------

                 Key: SLING-382
                 URL: https://issues.apache.org/jira/browse/SLING-382
             Project: Sling
          Issue Type: Bug
          Components: Scripting
            Reporter: Bertrand Delacretaz
            Priority: Minor


The toString() code in this ESP code fails when applied to a versionable Node:

var history = currentNode.getVersionHistory();
out.println(history);
out.write("<br/>"); 
out.println(history.toString());
out.write("<br/>"); 

IIUC the cause is that in SlingWrapFactory.wrapAsJavaObject, the jackrabbit 
VersionHistoryImpl is incorrectly wrapped with a ScriptableNode, as 
VersionHistoryImpl extends from NodeImpl and there's no specific wrapper for 
VersionHistoryImpl.


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

Reply via email to