Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8280357 user.home = "?" when running with systemd DynamicUser=true
  3. JDK-8282101

Release Note: If the users home directory is invalid, system property user.home is set to $HOME

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Resolved
    • Priority: P4
    • Resolution: Delivered
    • Affects Version/s: 19
    • Fix Version/s: 19
    • Component/s: core-libs

      Description

      On Linux and macOS, the system property `user.home` is set to the home directory provided by the operating system.
      If the directory name provided is empty or only a single character, the value of the environment variable `HOME` is used instead.

      The directory name and the value of $HOME are usually the same and valid. The fallback to `$HOME` is unusual and unlikely to occur except in environments such as `systemd` on Linux or when running in a container such as Docker.

        Attachments

          Activity

            People

            Assignee:
            rriggs Roger Riggs
            Reporter:
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: