You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Benjamin Boksa (JIRA)" <ji...@apache.org> on 2008/09/09 13:03:44 UTC

[jira] Updated: (COCOON-2243) NPE when calling ApplicationUtil.isUserInRole

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

Benjamin Boksa updated COCOON-2243:
-----------------------------------

    Attachment: ApplicationUtil.java.patch

Patch that should handle user == null when calling isUserInRole

> NPE when calling ApplicationUtil.isUserInRole
> ---------------------------------------------
>
>                 Key: COCOON-2243
>                 URL: https://issues.apache.org/jira/browse/COCOON-2243
>             Project: Cocoon
>          Issue Type: Bug
>          Components: Blocks: Authentication Framework
>    Affects Versions: 2.2, 2.2-dev (Current SVN)
>            Reporter: Benjamin Boksa
>            Priority: Minor
>             Fix For: 2.2, 2.2-dev (Current SVN)
>
>         Attachments: ApplicationUtil.java.patch
>
>
> A NullPointerException is thrown when calling ApplicationUtil.isUserInRole(final User user, final String role, final Map objectModel) with user == null. The attached patch should fix that issue. Patch was made against the nightly build (cocoon_20080909041525.tar.gz).
> I hope I submitted everything correctly.

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