Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5098210

(prefs) Support file-based preferences when the user registry is not writeable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 1.4.2
    • core-libs
    • x86
    • windows_xp

      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

            sherman Xueming Shen
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: