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

am-config-upgrader removes formatting applied to large JSON arrays

    Details

      Description

      Bug description

      The am-config-upgrader tool writes JSON arrays to a single line without any formatting. Formatting large JSON arrays in this way makes it difficult to see what has changed when reviewing changes.

      This issue affects FRaaS as we have consciously formatted large JSON arrays so that each entry is placed on its own line with correct indentation.

      How to reproduce the issue

      1. Obtain a directory of am config which at least one JSON array with lots of values
      2. Format the large JSON array so that each entry appears on its own line
      3. Run the am-config-upgrader against this directory of config
      4. Observe that JSON array formatting has been lost
      Expected behaviour
      1) Large JSON arrays are always formatted so that each entry appears on its own line with corret indentation
      alternatively...
      2) Maintain formatting applied manually
      
      Current behaviour
      Formatting is lost
      

      Work around

      Manually fix formatting before merging - Not much fun.

        Attachments

          Activity

            People

            • Assignee:
              phillcunnington Phill Cunnington
              Reporter:
              craig.mcdonnell Craig McDonnell
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: