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

SubjectDomainCombiner assumes Subjects are immutable

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.0
    • security-libs
    • None
    • merlin
    • generic
    • generic

      The CacheEntry mechanism used in SubjectDomainCombiner assumes Subjects are immutable. If you start with a Subject containing principal A, and a CacheEntry for that Subject (with some codesource CS) gets put in the cache, and then you alter the Subject in place by removing principal A and adding principal B, a subsequent call to combine() will result in reusing the old permissions associated with principal A rather than obtaining the correct permissions associated with principal B.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: