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

Path for the file in windows wrongly passed to applet with one extra back slash

XMLWordPrintable

    • x86
    • other

      FULL PRODUCT VERSION :


      ADDITIONAL OS VERSION INFORMATION :
       Microsoft Windows [Version 10.0.14393]

      A DESCRIPTION OF THE PROBLEM :
      My html resides on disk. it has an applet code like
       <CENTER>
            <APPLET CODE="television.ZoomApplet" CODEBASE="../applets" WIDTH="160" HEIGHT="250">
              <PARAM NAME="zoompoint" VALUE="53 123">
              <PARAM NAME="image" VALUE="television/einstein_tongue.jpg">
            </APPLET>
          </CENTER>
      The path for television/einstein_toung.jag given to applet by java is
      "\D:\Physis\applets\television\einstein_toung.jpg"

      The first back slash should not be there.

      The security settings for IE 11 is set correctly to file:/// so that applet gets loaded.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      just put an applet and path for some file for the applet with relative path.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The result should b the path should be passed without the first back slash

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      Error message is flashed

      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      <!--tv/big_picture.html-->

      <HTML>

      <HEAD>
        <TITLE>The Big Picture</TITLE>
      </HEAD>

      <BODY BACKGROUND="../back/bkg2.640.gif" TEXT="#000000">
        <IMG SRC="../images/headers/P2000.gif" BORDER="0" ALT="Physics 2000">
        <IMG SRC="../images/headers/EL.gif" BORDER="0" ALT="Einstein's Legacy">
        <IMG SRC="../images/headers/tv.gif" BORDER="0" ALT="TV Screens">

        <BR CLEAR="all"><P>

        <TABLE BORDER="0"><TR><TD><IMG SRC="../images/spacer.gif" HEIGHT="1" WIDTH="20"></TD><TD WIDTH="570"><FONT SIZE="5">
          <CENTER><H2>The Big Picture</H2></CENTER>

          <IMG SRC="../images/kyla-set/kyla11.jpg" ALIGN="left">
          One time I tried to take a picture of my favorite television show and the
          photo only showed about a quarter of the picture on the screen. Why did that
          happen?

          <BR CLEAR="all"><P>

          <IMG SRC="../images/lee-set/lee6-flip.jpg" ALIGN="left">
          That is a very good question, Kyla. There are a few things you need to know
          about before I can answer that. First, you can think of the image on your
          television screen as a collection of many dots of light.

          <BR CLEAR="all"><P>

          <TABLE BORDER="0"><TR><TD><FONT SIZE="5">
            <IMG SRC="../images/kyla-set/kyla7-flip.jpg" ALIGN="left">
            Then why do I see the whole picture? How do these dots form the image?
          </FONT></TD><TD><FONT SIZE="5">
            <IMG SRC="../images/lee-set/lee5.jpg" ALIGN="left">
            Look at this picture from far away, and then zoom in for a closer look.
          </FONT></TD></TR></TABLE>

          <BR CLEAR="all"><P>

          <CENTER>
            <APPLET CODE="television.ZoomApplet" CODEBASE="../applets" WIDTH="160" HEIGHT="250">
              <PARAM NAME="zoompoint" VALUE="53 123">
              <PARAM NAME="image" VALUE="television/einstein_tongue.jpg">
            </APPLET>
          </CENTER>

          <BR CLEAR="all"><P>

          <IMG SRC="../images/kyla-set/kyla11.jpg" ALIGN="left">
          Now I see them! They were just too small for me to see individually before.
          But that doesn't explain why only some of them showed up on my photograph.
          There must be something else going on.

          <BR CLEAR="all"><P>

          <IMG SRC="../images/lee-set/lee7-flip.jpg" ALIGN="left">
          You're right. The reason you didn't see the whole picture is because not all
          of the dots are shown at the same time. Take a look at the following
          demonstration.

          <BR CLEAR="all"><P>

          <CENTER>
            <APPLET CODE="television.PixelScanningApplet" CODEBASE="../applets" WIDTH="280" HEIGHT="370">
              <PARAM NAME="image0" VALUE="television/figure0.gif">
              <PARAM NAME="image1" VALUE="television/figure1.gif">
              <PARAM NAME="image2" VALUE="television/figure2.gif">
              <PARAM NAME="image3" VALUE="television/figure1.gif">
              <PARAM NAME="scale" VALUE="16">
              <PARAM NAME="imagecount" VALUE="1">
              <PARAM NAME="picWidth" VALUE="16">
              <PARAM NAME="picHeight" VALUE="16">
              <PARAM NAME="interlaced" VALUE="false">
            </APPLET>
          </CENTER>

          <BR CLEAR="all"><P>

          <IMG SRC="../images/kyla-set/kyla13.jpg" ALIGN="left">
          Oh I get it! The faster the dots are lit up, the more it looks like what I
          see on my television.

          <BR CLEAR="all"><P>

          <IMG SRC="../images/lee-set/lee7-flip.jpg" ALIGN="left">
          Yes, if the dots light up fast enough our eyes don't see a sequence of dots, but they all look
          like they are lit at once. This happens because we continue to see a dot as lit up for a short time
          after it has become dark. It's called <I>persistence of vision</I>.

          <BR CLEAR="all"><P>

          <TABLE BORDER="0"><TR><TD><FONT SIZE="5">
            <IMG SRC="../images/kyla-set/kyla10-flip.jpg" ALIGN="left">
            I understand how this works for still images, but TV isn't a slide show.
          </FONT></TD><TD><FONT SIZE="5">
            <IMG SRC="../images/lee-set/lee6-flip.jpg" ALIGN="left">
            That's why we need to start thinking about how this applies to moving
            images, and how your television screen shows them.
          </FONT></TD></TR></TABLE>

          <BR CLEAR="all"><P>

        </FONT></TD></TR></TABLE>
        <TABLE BORDER="0"><TR><TD><IMG SRC="../images/spacer.gif" HEIGHT="1" WIDTH="20"></TD><TD WIDTH="570"><FONT SIZE="5">

          <BR><P>

          <CENTER>
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      There is no work around so need this to be fixed. This is for learning classes for my 8 years old daughter. Rest of the browses does not even care to run the applet because of security reasons

      SUPPORT :
      YES

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

              Created:
              Updated:
              Resolved: