You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by "Henning Schmiedehausen (JIRA)" <de...@velocity.apache.org> on 2007/03/06 12:18:25 UTC

[jira] Reopened: (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 ]

Henning Schmiedehausen reopened VELOCITY-516:
---------------------------------------------

      Assignee: Henning Schmiedehausen

I have to admit that I do not like the patch. It works, yes, but the addition of random "methodName != null" into if-statements leads to unreadable code in the end.

Some reshuffling would do the code good. I'll reopen this as a reminder for me for 1.6.


> 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
>         Assigned To: Henning Schmiedehausen
>            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