JDK-6734193 : Windows Vista user.home property problem
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2008-08-06
  • Updated: 2011-02-16
  • Resolved: 2008-08-06
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
Java 1.6.0.4_b12

ADDITIONAL OS VERSION INFORMATION :
Vista: Enterprise Edition SP1

A DESCRIPTION OF THE PROBLEM :
Under Windows Vista a Java application is trying to write its data (e.g. log files) under the "C:\Users\Administrator" directory, that is disabled for normal users. It should do this under <user> as it do it on Windows XP. When application was created log directory was set under "user.home" directory, and everything worked fine on Windows XP but when it was moved on Vista i get an error that the application tries to write it's log  under "C:\Users\Administrator" directory.

Remark: the user starts the application without extended privilegs, so *not* as "Run as Administrator".


REPRODUCIBILITY :
This bug can be reproduced always.

Comments
EVALUATION The value of the user.home property is obtained from either the registry or the shell. 6519127 is tracking concerns that this is not always correct, and in particular after upgrades from XP to Vista.
06-08-2008