JDK-6317103 : ControlPanel ignores $HOME while plugin does not
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6
  • Priority: P3
  • Status: Closed
  • Resolution: Won't Fix
  • OS: generic
  • CPU: x86
  • Submitted: 2005-08-29
  • Updated: 2017-05-19
  • Resolved: 2005-09-22
Related Reports
Relates :  
Relates :  
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.

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.

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.

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.

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.