Uploaded image for project: 'PicketLink'
  1. PicketLink
  2. PLINK-720

BasicModel.hasRole mistakenly invokes inheritPrivledges on Identities that do NOT have the role.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Major Major
    • None
    • PLINK_2.7.0.CR3
    • None
    • None
    • Low

      BasicModel.hasRole mistakenly invokes inheritPrivledges on Identities that do NOT have the role. This causes two issues:

      • Privledges are not inherited for identities that have the role.
      • Worse when attempting to inherit privledges for identities that do not possess the role and 15 second delay will be occur.

      Code in question:
      boolean hasRole = !query.getResultList().isEmpty();

      if (!hasRole)

      { return relationshipManager.inheritsPrivileges(assignee, role); }

      The conditional with bang sign (NOT) should have it removed.

            psilva@redhat.com Pedro Igor Craveiro
            sagneta_jira Stephen Agneta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: