United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6317103 ControlPanel ignores $HOME while plugin does not
JDK-6317103 : ControlPanel ignores $HOME while plugin does not

Details
Type:
Bug
Submit Date:
2005-08-29
Status:
Closed
Updated Date:
2010-11-29
Project Name:
JDK
Resolved Date:
2005-09-22
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
x86
Priority:
P3
Resolution:
Won't Fix
Affected Versions:
6
Fixed Versions:

Related Reports
Relates:
Relates:

Sub Tasks

Description
ControlPanel always saves user preferences in user home directory ignoring environment variable $HOME, i.e. /home/user/.java/deployment/deployment.properties. But plugin reads user preferences (deployment.properties) from $HOME/.java/deployment/deployment.properties. Therefore behavior of ControlPanel is incosistent with plugin's behavior.

                                    

Comments
EVALUATION

Current implementation of java.lang.System only gets the value of user.home from password file on unix  and does not use $HOME on unix. if user is allowed to change his/her $HOME, user.home should be changed to be consistent with $HOME also.
                                     
2005-08-31
EVALUATION

It's natural to wonder, considering the huge usage of user.home (almost 400 refs in the JDK source, no doubt "zillions" in application code) that some fraction of users, however small, are inadvertently depending on insulation from a custom HOME value now (on Unixen/Linux systems or their emulations where HOME is meaningful). So although this change is perfectly reasonable it may cause a few surprises, such as where Java is invoked with malformed shell scripts.
                                     
2005-09-01
EVALUATION

Formal review of the proposed changes resulted in the judgement that current JDK behavior to base user.home and user.name on Unix/Linux account information must be considered standard behavior, making Java plugin's use of $HOME the deviation from the standard that should be corrected.
                                     
2005-09-12
EVALUATION

after a long discussion it was agreed to close this
bug as WILL NOT FIX, with the following evaluation:

The difference in user.home setting between plugin/JWS and the Java SE
SDK is long standing and the real impact of this difference to date has
been negligable. There is simply no justification for changing
plugin/JWS behavior at this time.
                                     
2005-09-22



Hardware and Software, Engineered to Work Together