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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4.7, 5.5
    • Component/s: None
    • Labels:
      None
    • Sprint:
      Basel 46
    • Story Points:
      3

      Description

      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.

        Checklists

        Acceptance criteria

          Attachments

            Issue Links

              Activity

                People

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

                  Dates

                  Created:
                  Updated:
                  Resolved:

                    Checklists

                    Bug DoR
                    DoD