user.name system property should include domain on windows

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P4
    • None
    • Affects Version/s: 2.0, 5.0u15
    • Component/s: 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)

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

              Created:
              Updated:
              Imported:
              Indexed: