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

fix to JDK-8078534 removed part of fix to JDK-8076220

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Version:
    • Resolved In Build:
      b16
    • Verification:
      Verified

      Backports

        Description

        The fix to JDK-8078534 in CodeRef.getChecksum() wiped out the fix for this (JDK-8076220) by changing:
                 if ((checksum == null || checksumAlg == null ||
        !checksumAlg.equals(algorithm)) && (!isCodebase)) {
        to:

        if (checksum == null) {
        // only valid algorithm is now SHA-256
        if (algorithm != null && !algorithm.equalsIgnoreCase("SHA-256")) {
        throw new IOException("Invalid checksum algorithm: " +
        algorithm);
        }
        instead it should have changed it to:
        if (checksum == null && !isCodebase) {
        ...

        The check for !isCodebase was inadvertently removed as part of JDK-8078534

        As a result - having a checksum base DRS rule installed will again cause the "directory" to be downloaded when running an html applet using loose classes from the codebase

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                herrick Andy Herrick
                Reporter:
                herrick Andy Herrick
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 1 day
                    1d
                    Remaining:
                    Remaining Estimate - 1 day
                    1d
                    Logged:
                    Time Spent - Not Specified
                    Not Specified