Uploaded image for project: 'Sentry (Retired)'
  1. Sentry (Retired)
  2. SENTRY-332

A role may got empty privilege, although the role have some privileges

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.4.0
    • None
    • None

    Description

      MSentryPrivilege is an embedded field of MSentryRole, When query a MSentryRole that contains MSentryPrivilege as embedded fields, the embedded field MSentryPrivilege may returned as null.
      For example:

      MSentryRole mRole = getMSentryRole(pm, roleName);
      if (mRole != null) {
           mRole.getPrivileges(); // the privileges may be null, although the role have privileges
      }
      

      Solution:
      JDO defaults to lazy loading ,MSentryPrivilege should be eager-loading .

      Attachments

        1. SENTRY-332.patch
          0.9 kB
          Dapeng Sun

        Activity

          People

            dapengsun Dapeng Sun
            dapengsun Dapeng Sun
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: