Details
-
Bug
-
Resolution: Won't Fix
-
Major
-
None
-
1.1.4
-
None
-
None
-
Migros project
-
-
Empty show more show less
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