Details
-
Bug
-
Resolution: Done
-
Neutral
-
6.2
-
None
Description
Steps to reproduce in travel demo using carrousel component:
- Go to resources app and edit /travel-demo/templates/components/carousel.yaml to add a dialog to the nested component area as follows
templateScript: /travel-demo/templates/components/carousel.ftl dialog: travel-demo:components/carousel renderType: freemarker areas: carouselItems: templateScript: /travel-demo/templates/components/carouselArea.ftl dialog: travel-demo:components/carousel type: list availableComponents: textImage: id: travel-demo:components/textImage teaser: id: travel-demo:components/teaser
- Go to pages app and edit /travel/about/company by adding a carrousel component
- Click on the edit icon of the carrouselItems area
- An error is shown
ERROR info.magnolia.pages.app.detail.PageEditorPresenter: An error occurred while executing action [editElement] info.magnolia.ui.api.action.ActionExecutionException: No definition exists for action: editElement
This, on the contrary, doesn't happen in 6.1 branch.
Potential cause:
The difference comes when retrieving the list of actions through info.magnolia.i18nsystem.bytebudddy.ByteBuddyI18nizer.I18NableGetterInterceptor.decorate(Method, DelegateResolver<T>, T), where 6.2 is using info.magnolia.pages.app.detail.PageDetailDescriptor whereas older versions are calling info.magnolia.pages.app.editor.PagesEditorSubAppDescriptor, which brings editElement within the list of actions.
Checklists
Acceptance criteria