Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-4658

URL of the CodeSource of a ProtectionDomain should resolve to the right JAR

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: framework-4.4.1
    • Fix Version/s: framework-4.6.0
    • Component/s: Framework
    • Labels:
      None
    • Environment:
      OpenJDK, Oracle JRE

      Description

      The BundleProtectionDomain should support a CodeSource with a proper URLHandler that can be used to get a connection to the JAR file a class is loaded from.

      Use Case:
      In combination with JCE the JceSecurity implementation tries to open a URLConnection to the location of the CodeSource. This is necessary for JAR signature check used with strong encryption and for example bouncycastle as JCE provider.

      For further details have a look at:
      http://mail-archives.apache.org/mod_mbox/felix-users/201409.mbox/%3C29FBA46A464316449BF990BA4D74D578052FECF7D89E@HE113607.emea1.cds.t-internal.com%3E

        Attachments

        1. codesource2.patch
          16 kB
          Karl Pauls
        2. error-20140930-1544.log
          11 kB
          Dirk Rudolph
        3. codesource.patch
          16 kB
          Karl Pauls

          Issue Links

            Activity

              People

              • Assignee:
                karlpauls Karl Pauls
                Reporter:
                diru Dirk Rudolph
              • Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: