[MGNLMIGRATION-153] Access of assets from media repository: No handler found with name [media] Created: 29/Oct/12  Updated: 08/Nov/12  Resolved: 08/Nov/12

Status: Closed
Project: Migration 4.4 to 4.5 (closed)
Component/s: None
Affects Version/s: 1.1.4
Fix Version/s: None

Type: Bug Priority: Major
Reporter: wolf bubenik Assignee: Jozef Chocholacek
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Migros project


Template:
Acceptance criteria:
Empty
Date of First Response:

 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.



 Comments   
Comment by Philipp Bärfuss [ 08/Nov/12 ]

Sounds very project specific. Please reopen if otherwise.

Generated at Mon Feb 12 10:17:40 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.