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

Launched from browser, UTF-8 encoded argument in a JNLP file is not correctly passed to application

XMLWordPrintable

    • x86_64
    • windows_7

      FULL PRODUCT VERSION :
      java version "1.8.0_172-ea"
      Java(TM) SE Runtime Environment (build 1.8.0_172-ea-b03)
      Java HotSpot(TM) 64-Bit Server VM (build 25.172-b03, mixed mode)


      ADDITIONAL OS VERSION INFORMATION :
      Microsoft Windows [Version 6.1.7601]


      EXTRA RELEVANT SYSTEM CONFIGURATION :
      Web browser:
      - Firefox 58.0.2 (64bit)
      - Chrome 64.0.3282.186(Official Build) (64bit)
      - InternetExplorer10


      A DESCRIPTION OF THE PROBLEM :
      By using web browser, .jnlp file can be launched, but passed argument string is not correctly encoded.


      REGRESSION. Last worked in version 8u152

      ADDITIONAL REGRESSION INFORMATION:
      Uninstall 8u161 or later and re-install 8u152 or prior to reproduce the working test case.


      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Launch utf8.jnlp from web browsers.
      Designate utf8.jnlp file from URL (such as file:// scheme) form can also reproduce.



      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      utf8.jnlp

      Following argument attribute has UTF-8 encoded japanese letters as value.
      <argument>--downloadFiles[0]=DownloadManagerSetupxxxxxxxxxxxxxxxxxxxxxxxxxx.exe</argument>

      -------------utf8.jnlp begin ---------------
      <?xml version="1.0" encoding="UTF-8"?>
      <jnlp spec="1.7+"
      codebase="http://127.0.0.1:9000/">
      <information>
      <title>SilverBulletDownloadClient</title>
      <vendor>Skeed Co. Ltd.</vendor>
      <homepage href="http://www.skeed.co.jp" />
      <description kind="one-line">SkeedSilverBullet Client</description>
      <description kind="short">SkeedSilverBullet Client</description>
      <description kind="tooltip">SkeedSilverBullet Client</description>
      <icon kind="default" href="http://127.0.0.1:9000/public/images/ssb_transparent.gif" />
      <icon kind="splash" href="http://127.0.0.1:9000/public/images/ssb_splash.jpg" />
      <offline-allowed/>
      </information>
      <security>
      <all-permissions />
      </security>
      <resources>
      <java version="1.7+" initial-heap-size="8M" max-heap-size="64M"/>
      <jar href="http://127.0.0.1:9000/public/jars/ssb_guic.jar"/>
      <property name="jnlp.packEnabled" value="true" />
      </resources>
      <application-desc main-class="com.skeedtech.skeed_silver_bullet.simple_gui_client.SimpleDownloaderMain">

      <argument>--downloadFiles[0]=DownloadManagerSetup - コピー - コピー (2) - コピー.exe</argument>

      </application-desc>
      </jnlp>
      --------------utf8.jnlp end--------------

      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Using older java or
      limit functionality and/or change behavior of application.


            almatvee Alexander Matveev
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: