PrivateCredentialPermission.equals doesn't ignore principal order

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P4
    • 1.4.0
    • Affects Version/s: 1.0
    • Component/s: security-libs
    • None
    • merlin
    • generic
    • generic

      This may fall in the truth and beauty column, but it seems to me that for PrivateCredentialPermission, a.equals(b) should be true if and only if a.implies(b) and b.implies(a) are both true. (This seems to me like the right generic definition of Permission.equals.) Currently, two instances that differ merely in the order of principals, such as targets
          baz foo \"foo\" bar \"bar"
      and
          baz bar \"bar\" foo \"foo\"
      and not considered equal (according to the equals method), nor do they hash the same, even though they imply each other.

            Assignee:
            Charlie Lai (Inactive)
            Reporter:
            Bob Scheifler (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: