You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Will Glass-Husain (JIRA)" <de...@velocity.apache.org> on 2007/02/19 06:18:05 UTC

[jira] Resolved: (VELOCITY-516) SecureUberspector doesn't work with #foreach (iterators)

     [ https://issues.apache.org/jira/browse/VELOCITY-516?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Will Glass-Husain resolved VELOCITY-516.
----------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.5

Fixed.  Just in time to make it into Velocity 1.5.  Thanks again.

> SecureUberspector doesn't work with #foreach (iterators)
> --------------------------------------------------------
>
>                 Key: VELOCITY-516
>                 URL: https://issues.apache.org/jira/browse/VELOCITY-516
>             Project: Velocity
>          Issue Type: Bug
>          Components: Engine
>    Affects Versions: 1.5 beta2
>            Reporter: Vincent Massol
>            Priority: Critical
>             Fix For: 1.5
>
>
> When using a #foreach iterating over strings I get: "Cannot retrieve iterator from object of class [Ljava.lang.String; due to security restrictions."
> The reason is that in the SecureUberspector class there's a call to checkObjectExecutePermission() with the second parameter being null. And in checkObjectExecutePermission() there's:
> {code}
>         if (methodName == null)
>         {
>             return false;
>         }
> {code}

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


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@velocity.apache.org
For additional commands, e-mail: dev-help@velocity.apache.org