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

Custom progress not shown until all jars downloaded with all-permissions security option enabled.

    XMLWordPrintable

Details

    • x86_64
    • linux_ubuntu

    Description

      FULL PRODUCT VERSION :
      java version "9.0.1"
      Java(TM) SE Runtime Environment (build 9.0.1+11)
      Java HotSpot(TM) 64-Bit Server VM (build 9.0.1+11, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Linux ARTE210 4.4.0-104-generic #127-Ubuntu SMP Mon Dec 11 12:16:42 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

      A DESCRIPTION OF THE PROBLEM :
      When application has customized loading progress indicator with "<security><all-permissions/>" tag present loading frame is not shown until all jars defined in <resources> had been downloaded. This was tested and reproduced on 9.0.1, 1.8.0_151 and also "10-ea" 2018-03-20.
      If application is running in sandbox (no security tag in jnlp file present and proper value in manifest file) the custom loading indicator is shown correctly at the beginning of download process.

      Problem is not occurring on jre1.8.0_71 and below.

      While testing this bug i have created simplified version of app available on https://docs.oracle.com/javase/tutorial/deployment/webstart/customProgressIndicatorForAppln.html and deployed it in my environment. I can send it if necessary.

      REGRESSION. Last worked in version 7u80

      ADDITIONAL REGRESSION INFORMATION:
      java version "1.7.0_80"
      Java(TM) SE Runtime Environment (build 1.7.0_80-b15)
      Java HotSpot(TM) 64-Bit Server VM (build 24.80-b11, mixed mode)

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Build app with all-permission tag, sign it.
      2. Deploy
      3. Download jnlp and launch with javaws

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Custom loading indicator is shown in the beginning of the download process.
      ACTUAL -
      Custom loading indicator is show after main application jar was downloaded.

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      preloader: Skipped all (84) download events prior to DownloadEvent[type=verify,loaded=1, total=1, percent=100]

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      Template application from https://docs.oracle.com/javase/tutorial/deployment/webstart/customProgressIndicatorForAppln.html can be adapted to reproduce this bug.
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Using older version of JVM.

      Attachments

        Activity

          People

            pardesha Pardeep Sharma
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: