Uploaded image for project: 'Magnolia Groovy Module'
  1. Magnolia Groovy Module
  2. MGNLGROOVY-238

Groovy Terminal access is prohibited if user is not directly assigned to role

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.0.4
    • None
    • None

      To access the Groovy App, a user needs to have the superuser or scripter role assigned.

      There is a bug in the code, as it only checks, if the user has one of the above roles assigned directly. Transitive role assignment are effectively ignored by the code.

      We stumbled upon this bug, as we are using the Magnolia SSO Module and it is effectively impossible to directly assign roles to users when using SSO. We can therefore not use the Groovy App at all, as access is restricted to transitive role members.

      Steps to reproduce

      1. Create a new group and assign the superuser role to it
      2. Create a user, that has the newly created group assigned and does not have the superuser or scripter role assigned directly
      3. login with that user and try to access the Groovy App

      Expected results

      Should just work.

      Actual results

      Error Message:
      User xyz is trying to use the Magnolia Groovy Interactive Console but is not authorized.

      Workaround

      If using SSO module, no workaround possible.

      If not using SSO, only use directly assigned roles, which defeats the purpose of Groups and Roles...

      Development notes

      A bugfix pull request has been created:
      https://git.magnolia-cms.com/projects/MODULES/repos/groovy/pull-requests/64/overview

        Acceptance criteria

              jsimak Jaroslav Simak
              pgaschuetz Philipp Gaschuetz
              DeveloperX
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:
                Work Started:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Remaining Estimate - Not Specified
                    Not Specified
                    Logged:
                    Time Spent - 3.5h
                    3.5h