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

webstart fails to create jnlp file with 255+ character name on windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • 6
    • 1.2.0, 5.0
    • deploy
    • 1.0.1
    • x86
    • windows_2000, windows_xp



      Name: nt126004 Date: 12/10/2002


      FULL PRODUCT VERSION :
      java version "1.4.1"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-b21)
      Java HotSpot(TM) Client VM (build 1.4.1-b21, mixed mode)

      FULL OPERATING SYSTEM VERSION :
      Microsoft Windows 2000 [Version 5.00.2195]

      A DESCRIPTION OF THE PROBLEM :
      Java Web Start has a problem installing applications with a
      long URL. Windows has a limitation of 255 characters for
      the entire file path. If the path is too long a
      FileNotFoundException is thrown.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1. Create a JNLP with a very long URL for the codebase,
      longer than 255 characters.
      2. Run the JNLP application.
      3. View the error.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      Shouldn't have this limitation, should handle caching by
      creating directories based on the URL, should create some
      sort of ID system instead.

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ------------ BEGIN SOURCE --------------
      <?xml version="1.0" encoding="UTF-8"?>
      <jnlp sepc="1.0"
            codebase="http://bugkiller.sfbay/webstart/166380/this/is/a/really/really/l
      ong/directory/name/that/should/cause/a/FileNotFoundException/in/windows/because/windows/only/supports/filenames/of/255/characters/however/Solaris/on/the/other/hand/will/launch/this/file/fine/"
            href="test.jnlp">
        <information>
          <title>Long File Name</title>
          <vendor>Sun</vendor>
          <homepage href="http://bugkiller.sfbay/webstart"/>
          <description>Incident 166380</description>
        </information>
        <resources>
          <j2se version="1.4+"/>
          <jar href="test.jar" />
        </resources>
        <application-desc main-class="test"/>
      </jnlp>

      // this can be anything - it won't ever be launched on Windows
      public class test {
              public static void main(String[] args) {
                      System.out.println("Hello World");
              System.exit(0);
              }
      }
      ------------- END SOURCE ---------------

      CUSTOMER WORKAROUND :
      There is no way other than to limit the size of the URL to
      a somewhat smaller size.
      (Review ID: 166380)
      ======================================================================

            ngthomas Thomas Ng (Inactive)
            nthompsosunw Nathanael Thompson (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: