Uploaded image for project: 'Causeway'
  1. Causeway
  2. CAUSEWAY-1736

ConfigurationServiceDefault is inconsistent

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.15.0
    • 2.0.0-M1
    • Core
    • 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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment