JDK-6530997 : TZupdater1.1.0 fail to update the publicJRE on Vista as a normal user(Non-Administrator)
  • Type: Bug
  • Component: tools
  • Sub-Component: updaters
  • Affected Version: 1.1.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_vista
  • CPU: x86
  • Submitted: 2007-03-05
  • Updated: 2010-04-02
  • Resolved: 2007-03-06
Related Reports
Duplicate :  
Description
TZupdater1.1.0 fail to update the publicJRE on Vista as a normal user(Non-Administrator)

OS:
====
Vista 6000

JDK:
====
1.5.0_08

TZupdate tool:
==============
1.1.0

TZupdater tool is not working on Vista as a normal user

Below different test with the results
=====================================

1.
Install public JRE and update the tool as a Administrator
Results : Pass; JRE installed successfully and TZ successfully updated

2.
Install publick JRE and update the tool as a normal User(Non-Administrator Privelege)
Results : Fail; JRE installation successful but TZ updater is failed with below error
Error:
------
Extracting files... done.
Renaming directories... failed.
Can't rename C:\Program Files\Java\jre1.5.0_08\lib\zi to 
C:\Program Files\Java\jre1.5.0_08\lib\zi.tzdata2006d_1

3.
Install public JRE as Administrator and update the TZ tool as normal user
Results : Fail; JRE installation successful but TZ updater failed with below error
Extracting files... done.
Renaming directories... failed.
Can't rename C:\Program Files\Java\jre1.5.0_08\lib\zi to 
C:\Program Files\Java\jre1.5.0_08\lib\zi.tzdata2006d_1

4.
Install public JRE as normal user and update the TZ tool as Administrator
Results : Pass; JRE installation successful and TZ successfully updated

Console log for the above tests:
================================

[C:/tzupdater1.4] java -jar tzupdater.jar -u -v
java.home: C:\Program Files\Java\jre1.5.0_08
java.vendor: Sun Microsystems Inc.
java.version: 1.5.0_08
JRE time zone data version: tzdata2006d
Embedded time zone data version: tzdata2007c
Extracting files... done.
Renaming directories... failed.
Can't rename C:\Program Files\Java\jre1.5.0_08\lib\zi
to C:\Program Files\Java\j
re1.5.0_08\lib\zi.tzdata2006d_1.
[C:/tzupdater1.4] id
uid=1(urt15\user) gid=2(urt15\None)
groups=3(Everyone),4(Administrators),5(Users
),6(INTERACTIVE),7(Authenticated+Users),8(This+Organization),8(This+Organization
),9(LOCAL),10(NTLM+Authentication),11(Mandatory+Label\Medium+Mandatory+Level)


[C:/tzupdater1.4] java -jar tzupdater.jar -V
tzupdater version 1.1.0-b04
JRE time zone data version: tzdata2007c
Embedded time zone data version: tzdata2007c
[C:/tzupdater1.4] java -jar tzupdater.jar -f -v
java.home: C:\Program Files\Java\jre1.5.0_08
java.vendor: Sun Microsystems Inc.
java.version: 1.5.0_08
JRE time zone data version: tzdata2007c
Embedded time zone data version: tzdata2007c
Extracting files... done.
Renaming directories... failed.
Can't rename C:\Program Files\Java\jre1.5.0_08\lib\zi
to C:\Program Files\Java\j
re1.5.0_08\lib\zi.tzdata2007c_1.



$ ls
tzupdater.jar            user_tz_vista_issue     
user_tz_vista_issue.bak
$ java -jar tzupdater.jar -u -v
java.home: C:\Program Files\Java\jre1.5.0_08
java.vendor: Sun Microsystems Inc.
java.version: 1.5.0_08
JRE time zone data version: tzdata2006d
Embedded time zone data version: tzdata2007c
Extracting files... done.
Renaming directories... done.
Validating the new time zone data... done.
Time zone data update is complete.
$ id
uid=1(urt15\Administrator) gid=2(urt15\None)
groups=3(Everyone),4(Administrators
),5(Users),6(INTERACTIVE),7(Authenticated+Users),8(This+Organization),8(This+Org
anization),9(LOCAL),10(NTLM+Authentication),11(Mandatory+Label\High+Mandatory+Le
vel)

================================

Note: No issues with private JRE(For both Administrator and Normal user)

Comments
EVALUATION Further checking revealed that the jre's are installed in admin mode even when running from a normal-user a/c on vista. (admin password prompt) If the JRE was installed with admin privileges, then admin access would be required to modify these jre/lib/zi contents. The testcase outcome should have a failure expected if we don't have sufficient privileges. The tzupdater tool fails with such a message ("Can't rename") , a message we've agreed to clarify in next release. We've also updated the README to note this. Closing as a duplicate of : 6530510 Windows non-administrative privelege messages unclear
06-03-2007