Uploaded image for project: 'Magnolia'
  1. Magnolia
  2. MAGNOLIA-6671

Unexpected exception log statements when queried definition is backed by an empty YAML file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 5.4.7, 5.5
    • None
    • None
    • None
    • Basel 46
    • 3

      As of MAGNOLIA-6451 we have introduced a utility which will read all the involved YAML files and combine their data into an aggregated map (=> Map2Bean etc).
      It happens that if there's no data collected - a constant immutable empty map will be returned by map aggregating utility (Collections.emptyMap()). YamlDefinitionProvider however, could still attempt to push some metadata properties in that map, which causes exceptions with such a stacktrace: https://gist.github.com/p4elkin/1aac1845e017e2bb809547e5889f6a79

      As of MAGNOLIA-6672 (and this commit) - a mutable map is returned and no such exception will occur any longer.

        Acceptance criteria

              apchelintcev Aleksandr Pchelintcev
              jsimak Jaroslav Simak
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD