You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Scott Babcock (Jira)" <ji...@apache.org> on 2025/04/06 21:32:00 UTC

[jira] [Created] (CONFIGURATION-851) HomeDirectoryLocationStrategy no longer resolves the user HOME directory correctly

Scott Babcock created CONFIGURATION-851:
-------------------------------------------

             Summary: HomeDirectoryLocationStrategy no longer resolves the user HOME directory correctly
                 Key: CONFIGURATION-851
                 URL: https://issues.apache.org/jira/browse/CONFIGURATION-851
             Project: Commons Configuration
          Issue Type: Bug
    Affects Versions: 2.11.0
            Reporter: Scott Babcock


Revisions were committed recently that broke the path resolution to the user HOME folder:

https://github.com/apache/commons-configuration/commit/bbb5001fca1e584a61d3903dabba8d9315ed8da1

Instead of acquiring the user HOME folder path, the revised code just gets the username. There are three instances of this error in the related commit:
* HomeDirectoryLocationStrategy.fetchHomeDirectory()
* CatalogResolver.baseDir
* TestHomeDirectoryLocationStrategy.testInitDefaults()
To resolve this issue, replace references to SystemProperties.getUserName() with SystemProperties.getUserHome()



--
This message was sent by Atlassian Jira
(v8.20.10#820010)