Cocoon
  1. Cocoon
  2. COCOON-2243

NPE when calling ApplicationUtil.isUserInRole

    Details

    • Urgency:
      Normal
    • Other Info:
      Patch available
    • Affects version (Component):
      Blocks: Authentication - 1.0.0
    • Fix version (Component):
      Blocks: Authentication

      Description

      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.

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Closed Closed
        7h 17m 1 Jörg Heinicke 09/Sep/08 19:20
        Jörg Heinicke made changes -
        Affects Version/s 2.2-dev (Current SVN) [ 12313093 ]
        Affects Version/s 2.1.11 [ 12312231 ]
        Jörg Heinicke made changes -
        Status Open [ 1 ] Closed [ 6 ]
        Fix Version/s 2.1.12-dev (Current SVN) [ 12312903 ]
        Fix Version/s 2.2 [ 12310611 ]
        Fix version (Component) Parent values: Blocks: Authentication(10233).
        Assignee Jörg Heinicke [ joerg.heinicke@gmx.de ]
        Resolution Fixed [ 1 ]
        Hide
        Jörg Heinicke added a comment -
        Patch applied. Thanks, Benjamin.
        Show
        Jörg Heinicke added a comment - Patch applied. Thanks, Benjamin.
        Benjamin Boksa made changes -
        Field Original Value New Value
        Attachment ApplicationUtil.java.patch [ 12389738 ]
        Hide
        Benjamin Boksa added a comment -
        Patch that should handle user == null when calling isUserInRole
        Show
        Benjamin Boksa added a comment - Patch that should handle user == null when calling isUserInRole
        Benjamin Boksa created issue -

          People

          • Assignee:
            Jörg Heinicke
            Reporter:
            Benjamin Boksa
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development