Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4402288

PolicyFile incorrectly implements grants with AND of principals

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.4.0
    • 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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: