Name: rmT116609 Date: 09/07/2004
A DESCRIPTION OF THE REQUEST :
When users do not have the right to write the LOCAL_USER registry, Preferences are unusable because preference nodes cannot be created.
This issue has been partially addressed, but not solved in bug 4772228.
JUSTIFICATION :
Restricted users which do not have the right to change anything in the registry (including in the current user section), normally can create files in ApplicationData... (windows uses it for *lots* of things like recent files, etc.).
This is required to be able to use the Preferences package on all OS's.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Could you provide a fallback solution with disk files (as on Unix) for Windows if the user preferences root node cannot be created ?
ACTUAL -
SecurityException thrown.
---------- BEGIN SOURCE ----------
Preferences.userRoot();
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Create the required nodes during installation.
This is VERY impractical because new users may be created after it and the installation gets VERY (windows-)system-dependant.
It is almost impossible in network installations (one copy of the executable, libraries, etc.).
(Incident Review ID: 302166)
======================================================================
###@###.### 10/28/04 23:01 GMT
A DESCRIPTION OF THE REQUEST :
When users do not have the right to write the LOCAL_USER registry, Preferences are unusable because preference nodes cannot be created.
This issue has been partially addressed, but not solved in bug 4772228.
JUSTIFICATION :
Restricted users which do not have the right to change anything in the registry (including in the current user section), normally can create files in ApplicationData... (windows uses it for *lots* of things like recent files, etc.).
This is required to be able to use the Preferences package on all OS's.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Could you provide a fallback solution with disk files (as on Unix) for Windows if the user preferences root node cannot be created ?
ACTUAL -
SecurityException thrown.
---------- BEGIN SOURCE ----------
Preferences.userRoot();
---------- END SOURCE ----------
CUSTOMER SUBMITTED WORKAROUND :
Create the required nodes during installation.
This is VERY impractical because new users may be created after it and the installation gets VERY (windows-)system-dependant.
It is almost impossible in network installations (one copy of the executable, libraries, etc.).
(Incident Review ID: 302166)
======================================================================
###@###.### 10/28/04 23:01 GMT