Uploaded image for project: 'Migration 4.4 to 4.5 (closed)'
  1. Migration 4.4 to 4.5 (closed)
  2. MGNLMIGRATION-153

Access of assets from media repository: No handler found with name [media]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • None
    • 1.1.4
    • None
    • None
    • Migros project

    Description

      We get an exception when reading assets from the media repository:

      12-10-22 17:30:59 WARN  AUTHOR[http-8001-2]info.magnolia.module.templatingkit.functions.STKTemplatingFunctions: Failed to get asset with exception: No handler found with name [media] for [/generation-m/teaser/de/1-size/teaser/gm_logo/content/singleton/freeContent/image]
      info.magnolia.module.templatingkit.dam.DAMException: No handler found with name [media] for [/generation-m/teaser/de/1-size/teaser/gm_logo/content/singleton/freeContent/image]
      	at info.magnolia.module.templatingkit.dam.DAMSupport.getAsset(DAMSupport.java:86)
      	at info.magnolia.module.templatingkit.functions.STKTemplatingFunctions.getAsset(STKTemplatingFunctions.java:428)
      

      As I understand this the problem is, that

      moduleProvider.get()
      

      in STKTemplatingFunctions returns the STK-module. We declared the media-handler in our migros site, not in the stk site.
      As a workaround we copied the configuration of the media asset handler to the stk-module as well but the magnolia API should resolve the dam handlers from the current site.

      Checklists

        Acceptance criteria

        Attachments

          Activity

            People

              jchocholacek Jozef Chocholacek
              wolf.bubenik wolf bubenik
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: