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

MgnlRole removePermission method does not work.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • Major
    • None
    • 3.0 Final, 3.0.1, 3.0.2, 3.1 M1
    • core
    • None

    Description

      info/magnolia/cms/security/MgnlRole.java from 3.0.0 to trunk has a typo in the removePermission method.

      In trunk (revision 9751), Line 89
      if (child.getNodeData("path").getString().equals("path")) {

      This line should be
      if (child.getNodeData("path").getString().equals(path)) {

      The existing code compares the requested path against the string literal "path", instead of the value of the variable path. As a result permissions can not be removed through this Class.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              scharles Sameer Charles
              rad_nq Nathan Quinlan
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Checklists

                  Bug DoR
                  Task DoD