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

Regression - Application code fails to open .pack.gz files

    XMLWordPrintable

Details

    • b120
    • Verified

    Backports

      Description

        When run tests to cover https://bugs.openjdk.java.net/browse/JDK-8014061, we found application code fails to open .pack.gz files again.
        It works fine with jre8-b113 and start to fail from jre8-b114

        Steps to reproduce this bug:
        0 Install jre8-b114
        1 Set security level to medium since unsigned app will only allowed on medium
        2 Launch unsinged app: javaws http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/crystal/DO_NOT_REMOVE_ME/jrebug/packTests/jnlp/testOpenPackGz.jnlp

        Application code that tries to execute
             try {
                    URL url = new URL("jar:http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/crystal/DO_NOT_REMOVE_ME/jrebug/packTests/classes/Data__V2.0.jar.pack.gz!/Data.txt");
                    InputStream is = url.openStream();
                    System.out.println("openStream succeeded");
        out("PASS!!!");
        setResult(true);
                } catch (Exception e) {
                    System.err.println("openStream failed");
                    System.err.println(e.toString());
        out("Fail!!!");
        setResult(false);
                }

        3 An unsigned dialog will show up. Click "Run"
        4 If app fails to open stream (openStream failed java.util.zip.ZipException: error in opening zip file), then this bug is reproduced.


        More details in
        http://aurora-ds.us.oracle.com:9500/runs/317123.ManualSubmit-1/html/testOpenPackGz.trace

        Attachments

          Issue Links

            Activity

              People

                dcherepanov Dmitry Cherepanov
                wenjyang Crystal Yang (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: