Uploaded image for project: 'Blossom'
  1. Blossom
  2. BLOSSOM-231

Blossom seems to have no location in metadata

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Critical Critical
    • 3.1.3
    • None
    • None

      The Config-App feature Download as YAML does not work in combination with blossom module.
      There is a bug in info.magnolia.ui.framework.availability.IsDefinitionRule:

      @SuppressWarnings("unchecked")
      private boolean hasDefinitionFor(String nodePath) {
      	// We're doing this stuff in a sub-optimal way unless the issue MAGNOLIA-6086 is fixed
      	for (Registry registry : registries) {
      		Collection<DefinitionProvider> providers = registry.getAllProviders();
      		for (DefinitionProvider provider : providers) {
      			if (provider.getMetadata().getLocation().equals(nodePath)) {
      				return true;
      			}
      		}
      	}
      	return false;
      }
      

      DefinitionProviders (@Template) registered by blossom seems to have no location in metadata, which leads to a NullpointerException in hasDefinitionFor method.

        Acceptance criteria

              tmattsson Tobias Mattsson
              szihlmann Samuel Zihlmann
              Peter Mohn
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD