You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Bertrand Delacretaz (JIRA)" <ji...@apache.org> on 2008/04/15 15:03:04 UTC
[jira] Resolved: (SLING-382) VersionHistoryImpl is incorrectly
wrapped as a Node in server-side javascript
[ https://issues.apache.org/jira/browse/SLING-382?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Bertrand Delacretaz resolved SLING-382.
---------------------------------------
Resolution: Fixed
Patch committed in revision 648231, thanks!
> 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
> Attachments: SLING-382.diff
>
>
> 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.