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

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Andrei Shilov (Jira)
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.


Reply | Threaded
Open this post in threaded view
|

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

Andrei Shilov (Jira)

     [ 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.


Reply | Threaded
Open this post in threaded view
|

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

Andrei Shilov (Jira)
In reply to this post by Andrei Shilov (Jira)

    [ 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.


Reply | Threaded
Open this post in threaded view
|

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

Andrei Shilov (Jira)
In reply to this post by Andrei Shilov (Jira)

     [ 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.