Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-4480

MgnlContext.getUser().inGroup("xxx") throws NPE

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 4.5.5
    • 4.5.3
    • security
    • Windows, 4.5.3 EE Bundle

      Calling MgnlContext.getUser().inGroup() produces NPE.

      You can verify this quickly with the groovy console.

      Welcome to the Magnolia Groovy Interactive Console! Type 'help' for more info and a list of available commands. [Using Groovy version 1.7.10].
      mgnl> usr = MgnlContext.getUser();
      ===>
      MgnlUser - superuser [51ae3379-67cf-4994-9e05-f97cb8bc3e4a]
      mgnl> usr.inGroup("foo");
      NullPointerException: null
      mgnl> 

        Acceptance criteria

              mdivilek Milan Divilek
              runger Richard Unger
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD