infinite recursion in PolicyFile

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P2
    • 1.4.0
    • Affects Version/s: 1.4.0
    • Component/s: security-libs
    • None
    • beta3
    • generic
    • generic

      The fix for 4495188l has resulted in an infinite recursion in PolicyFile. Consider a ProtectionDomain on the call stack with a CodeSource with location http://thoth/. Suppose the method in that ProtectionDomain is attempting to connect to host thoth, so a checkConnect on thoth is performed. This results in PolicyFile.implies being called with the ProtectionDomain, which results in PolicyFile.getPermissions(perms, pd, prins) being called. This attempts to do CodeSource matching, calling CodeSource.implies, which calls URL.equals, which calls URLStreamHandler.equals, which calls InetAddress.getByName, which results in a checkConnect on thoth, and now we recurse again.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: