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

user.name system property should include domain on windows

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 2.0, 5.0u15
    • core-libs
    • Cause Known
    • generic
    • windows, windows_xp

      the system property 'user.name' should return the current user name.
      the string returned does not include the domain name.

      If the jvm is launched under the 'FOO\bar' account , System.getProperty("user.name")
      will only return 'bar'

      On windows, a user name is [domain\]<user name>

      It is then impossible to make the difference between a local and a doamin user account
      And so to get the current user account/name

      This call should return a full qualified (and so usable) name accross all platforms
      On windows a full qualified user name must contains the domain name (if domain account)

            uta Alexey Utkin (Inactive)
            ejannett Emmanuel Jannetti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: