[
https://issues.apache.org/jira/browse/CONFIGURATION-851?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17941420#comment-17941420
]
Gary D. Gregory edited comment on CONFIGURATION-851 at 4/6/25 10:00 PM:
------------------------------------------------------------------------
Hello [~scoba]
Thank you for your report.
This is now fixed in git master and snapshot builds in
[https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-configuration2/2.11.1-SNAPSHOT/]
WRT to {{{}CatalogResolver.baseDir{}}}, the code in 2.10.1 used to refer to the
{{"user.dir"}} system property, so I believe the current code is correct. Or am
I missing something?
was (Author: garydgregory):
Hello [~scoba]
Thank you for your report.
This is now fixed in git master and snapshot builds in
[https://repository.apache.org/content/repositories/snapshots/org/apache/commons/commons-configuration2/2.11.1-SNAPSHOT/]
WRT to CatalogResolver.baseDir, the code in 2.10.1 used to refer to the
{{"user.dir"}} system property, so I believe the current code is correct. Or am
I missing something?
> 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
> Assignee: Gary D. Gregory
> Priority: Major
> Fix For: 2.11.1
>
>
> 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)