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

Resolve inconsistent API behaviour wrt dangling Definition Decorators

    XMLWordPrintable

Details

    • Task
    • Resolution: Unresolved
    • Neutral
    • 6.3.0
    • 6.3.0
    • None
    • None
    • SaaS 23, Global Maintenance 3
    • 0

    Description

      Background

      Currently the DecorationConfigurationSource aggregates the decorations that do not have a corresponding definition provider available into a map of danglingDecorators.

      However, there is a consistency between the APIs exposed:

      • getAllProviders() and getAllMetadata() aggregate not only the definition providers from different configuration sources but also include the dangling definition decorators.
      • Meanwhile getProvider(...) API searches for the requested DefinitionProvider only in the underlying ConfigurationSources

      This inconsistent behaviour bubbles up higher in the API chain, due to NoSuchDefinitionException leading to End of the World behaviour in the exposed REST APIs.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              mgeljic Mikaël Geljić
              rdhar Rishab Dhar
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Checklists

                  Task DoR