Uploaded image for project: 'Isis'
  1. Isis
  2. ISIS-1736

ConfigurationServiceDefault is inconsistent

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 1.15.0
    • Fix Version/s: 2.0.0-M1
    • Component/s: Core
    • Labels:
      None

      Description

      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(); }

        Attachments

          Activity

            People

            • Assignee:
              hobrom Andi Huber
              Reporter:
              steve cameron Steve Cameron
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: