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

infinite recursion in PolicyFile

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P2
    • Resolution: Fixed
    • Affects Version/s: 1.4.0
    • Fix Version/s: 1.4.0
    • Component/s: security-libs
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      beta3
    • CPU:
      generic
    • OS:
      generic

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: