Uploaded image for project: 'OpenAM'
  1. OpenAM
  2. OPENAM-15577

FBC does not output files in a consistent way

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 7.0.0
    • Component/s: FBC
    • Target Version/s:
    • Rank:
      1|hzzarz:
    • Needs backport:
      No
    • Needs QA verification:
      No
    • Functional tests:
      No
    • Are the reproduction steps defined?:
      Yes but I used my own steps. (If so, please add them in a new comment)

      Description

      Bug description

      If two different AMs using file based config write out the same config twice, the resulting files are not the same. This makes it hard to determine what content is actually different between two generations of the same file.

      How to reproduce the issue

      Details steps outlining how to recreate the issue (remove this text)

      1. Install AM using FBC
      2. Run another AM and install using FBC using the same attributes as the first
      Expected behaviour

      The only differences in the files are the generated values.

      Current behaviour

      Other files have differences due to the order of fields.

      Code analysis

      It is assumed (but not checked) that a map/set object that does not order consistently is being used somewhere along the way through the SMS and FBC, resulting in inconsistent ordering. FBC should probably use TreeMaps when writing to ensure consistent ordering of fields.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                mark.leonard Mark Leonard
                Reporter:
                jamesphillpotts James Phillpotts
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: