You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Dan Haywood (JIRA)" <ji...@apache.org> on 2017/10/25 21:35:00 UTC
[jira] [Updated] (ISIS-1736) ConfigurationServiceDefault is
inconsistent
[ https://issues.apache.org/jira/browse/ISIS-1736?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Haywood updated ISIS-1736:
------------------------------
Summary: ConfigurationServiceDefault is inconsistent (was: ConfigurationServiceDefault has issue)
> ConfigurationServiceDefault is inconsistent
> -------------------------------------------
>
> 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: 2.0.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)