You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by "Michael Marth (JIRA)" <ji...@apache.org> on 2008/02/28 11:41:51 UTC

[jira] Created: (SLING-290) cannot access binary propery in script

cannot access binary propery in script
--------------------------------------

                 Key: SLING-290
                 URL: https://issues.apache.org/jira/browse/SLING-290
             Project: Sling
          Issue Type: Bug
          Components: Scripting
            Reporter: Michael Marth


(this is on Launchpad revision 629151 running on top of crx)

trying to access a binary property in an esp does not work (I try to access the jcr:data property of an nt:file)
this:
currentNode["jcr:data"]
gives "false".

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


[jira] Resolved: (SLING-290) cannot access binary propery in script

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved SLING-290.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0

Fixed in Rev. 640774 as indicated.

Please close, if this fixes your issue. Thanks.


> cannot access binary propery in script
> --------------------------------------
>
>                 Key: SLING-290
>                 URL: https://issues.apache.org/jira/browse/SLING-290
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Michael Marth
>            Assignee: Felix Meschberger
>             Fix For: 2.0.0
>
>
> (this is on Launchpad revision 629151 running on top of crx)
> trying to access a binary property in an esp does not work (I try to access the jcr:data property of an nt:file)
> this:
> currentNode["jcr:data"]
> gives "false".

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


[jira] Assigned: (SLING-290) cannot access binary propery in script

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SLING-290?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned SLING-290:
---------------------------------------

    Assignee: Felix Meschberger

> cannot access binary propery in script
> --------------------------------------
>
>                 Key: SLING-290
>                 URL: https://issues.apache.org/jira/browse/SLING-290
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Michael Marth
>            Assignee: Felix Meschberger
>
> (this is on Launchpad revision 629151 running on top of crx)
> trying to access a binary property in an esp does not work (I try to access the jcr:data property of an nt:file)
> this:
> currentNode["jcr:data"]
> gives "false".

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


[jira] Commented: (SLING-290) cannot access binary propery in script

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/SLING-290?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12581875#action_12581875 ] 

Felix Meschberger commented on SLING-290:
-----------------------------------------

This is expected as the nt:file has no jcr:data property. nt:file has an jcr:content child node, which in turn has an jcr:data property.

But: Problem is that the ScriptableNode.get(String) method does not support the full range of property types. Fixing this by using 
the JcrResourceUtil.toJavaObject method which supports all types properly.

> cannot access binary propery in script
> --------------------------------------
>
>                 Key: SLING-290
>                 URL: https://issues.apache.org/jira/browse/SLING-290
>             Project: Sling
>          Issue Type: Bug
>          Components: Scripting
>            Reporter: Michael Marth
>            Assignee: Felix Meschberger
>
> (this is on Launchpad revision 629151 running on top of crx)
> trying to access a binary property in an esp does not work (I try to access the jcr:data property of an nt:file)
> this:
> currentNode["jcr:data"]
> gives "false".

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