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

user.name system property should include domain on windows

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 2.0, 5.0u15
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
    • Subcomponent:
    • Understanding:
      Cause Known
    • CPU:
      generic
    • OS:
      windows, windows_xp

      Description

      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)

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: