You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Steve Cameron (JIRA)" <ji...@apache.org> on 2017/09/22 06:06:00 UTC
[jira] [Created] (ISIS-1736) ConfigurationServiceDefault has issue
Steve Cameron created ISIS-1736:
-----------------------------------
Summary: ConfigurationServiceDefault has issue
Key: ISIS-1736
URL: https://issues.apache.org/jira/browse/ISIS-1736
Project: Isis
Issue Type: Bug
Components: Core
Affects Versions: 1.15.0
Reporter: Steve Cameron
Priority: Critical
Fix For: 1.16.0
This class is confusing, it has its own properties Map which it uses for some methods and then defers to an injected ConfigurationServiceInternal reference for others.
I am using it in a fixture and it will not find a property using getProperty(String) which is using ConfigurationServiceInternal reference but will find it if I use getProperties() and loop through the entries returned
//doesn't find key
String xml = configurationService.getProperty("au.com.vuse.oneid.fixtures.companyinputfile");
//does find key
for (ConfigurationProperty str : configurationService.allProperties()) {
if (str.getKey().equals("au.com.vuse.oneid.fixtures.companyinputfile"))
xml = str.getValue();
}
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)