JDK-6232039 : JDK extraction on Sol/Linux continues by entering any word beginning with y when prompted for yes/no
  • Type: Bug
  • Component: install
  • Sub-Component: install
  • Affected Version: 5.0u2,6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: solaris
  • CPU: sparc
  • Submitted: 2005-02-23
  • Updated: 2010-04-04
  • Resolved: 2005-04-25
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.
Other JDK 6
5.0u4 b03Fixed 6Fixed
Description
JDK Info:
---------
java version "1.5.0_02"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_02-b07)
Java HotSpot(TM) Client VM (build 1.5.0_02-b07, mixed mode, sharing)


Platform:
---------
solaris and Linux


Steps to Reproduce
------------------
1) Extract JDK bundle on solaris or Linux
Solaris:
$ ./jdk-1_5_0_02-fcs-bin-b07-solaris-sparc-18_feb_2005.sh

Linux:
# ./jdk-1_5_0_02-fcs-bin-b07-linux-i586-18_feb_2005.bin

2) When asked:
Do you agree to the above license terms? [yes or no]

Enter any word beginning with y [ e.g. yabcde ]
The extraction continues!


Expected Behavior:
------------------
Since the installation prompts 
"Do you agree to the above license terms? [yes or no]", 
entering only "yes" or "YES"/"Y"/"y" (if a desired behavior) should continue the installation.

Actual Behavior:
----------------
The extraction continues by entering any word beginning with y [ e.g. yabcde ] when prompted for [ yes/no ]

###@###.### 2005-2-23 07:31:14 GMT

Is this a bug? I believe that initial letter input from a small list is the standard command line UI usage that most users will be familiar with. As a user I would find it unexpected and annoying to have to type 'Yes', when 'y' has exactly the same identity and meaning in that context. 

Also note that the sugested fix given would allow the user to type 'y' OR 'Y' anyway. Is this not a needless complication?



###@###.### 2005-03-01 16:55:26 GMT

Comments
EVALUATION See suggested fix for fix ###@###.### 2005-2-28 18:37:09 GMT Also, this is applicable to Linux as well. Some of the shell syntax is very sensitive on linux... posix vs non-posix, etc. So, we would have to test this on Linux as well. You might want to have Jeff code review this with Mike R. and specifically mention this. ###@###.### 2005-03-02 18:28:40 GMT
28-02-2005

SUGGESTED FIX The following should be changed in install/make/common/sfx2sh < y* | Y*) < agreed=1 < ;; < n* | N*) > yes | Yes | YES | y | Y) > agreed=1 > ;; > no | No | NO | n | N) ###@###.### 2005-2-28 18:37:09 GMT The fix that actully went in can be found in this webrev: http://j2se.east/www/webrevs/jl156642/6232039 ###@###.### 2005-03-23 20:07:08 GMT
28-02-2005