PolicyFile incorrectly implements grants with AND of principals

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.4.0
    • Component/s: security-libs
    • None

      The JAAS-merged sun.security.provider.PolicyFile incorrectly implements matching against grants with ANDs of principals. It appears to implement "match against the last principal" instead of "match against all the principals".

      Execute the attached test program with the attached policy file. It should print false, false, true, but instead prints true, false, true.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: