JDK-6977587 : GTK L&F: jnlp: java.io.IOException thrown when choosing more than 1 file in the dialog
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8
  • Priority: P2
  • Status: Closed
  • Resolution: Won't Fix
  • OS: linux_redhat_5.0,linux_ubuntu
  • CPU: x86
  • Submitted: 2010-08-17
  • Updated: 2014-01-22
  • Resolved: 2011-07-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Fixed
Related Reports
Duplicate :  
Relates :  
Description
Testsuite name: TCK-jnlp manual
JDK/JRE tested: jdk7b105(jdk-7-ea-bin-b105-linux-amd64-13_aug_2010.bin)
OS/architecture: rhel5.5-x64
Reproducible: Always
Is it a platform specific regression: N
Is it a Regression: N
 
Steps to reproduce:
Run the test case api/javax_jnlp/FileOpenService/index.html#openMultiFile.
The FileOpenService service allows the user to choose a file from the local file system for applications that are running in the untrusted execution environment.
This service provides a similar function as the file input field for HTML-based forms.
Wait till the test application downloaded and started. Press the "Open" button and choose MORE THAN 1 file in the dialog box that appears.Press "Done" to close the FileOpenService Test window. Ensure that the Open dialog appears and the selected files are shown correctly.

Did the FileOpenService service work correctly?

Actual behavior:
When choosing more than 1 file in the dialog, can't open files while java.io.IOException thrown. When choosing 1 file, it is passed. Please refer to the attachment file openMultiFile.jpg.

Exception:
java.io.IOException:IOException form FileContents.

#Validation:
1. same build/oel5.5-x64 : same issue
2. same platform/6u21b09-j4b(jdkfb-6u21-rev-bin-b09-linux-amd64-10_aug_2010.bin): Pass
Reproducible only with GTK L&F.
I suppose this is the same issue as discibed in CR 7049934.

Comments
EVALUATION There is a problem in the GTKFileChooserUI#getFileName method: it adds unnecessary space at the begin of result in case several files are selected. As the result the BasicFileChooserUI.ApproveSelectionAction#actionPerformed() method cannot determine multiple selection, because it checks the first char on the " character *** (#1 of 1): 2011-06-01 17:02:22 MSD ###@###.###
01-06-2011

EVALUATION It doesn't look like a duplicate of 7049934, assigned to JFileChooser expert
31-05-2011

EVALUATION Even thow this failure is reported for recent versions of jdk7 (b117 on Ubunty linux) I can not reproduce the failure in our lab. I could see described exception when the file that test tries to load is write only - so please check next time file permissions.
22-11-2010