[PAGES-297] Unable to edit areas by clicking on edit icon Created: 07/Apr/20  Updated: 22/Sep/21  Resolved: 04/May/20

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: 6.2
Fix Version/s: 6.2.1

Type: Bug Priority: Neutral
Reporter: Jonathan Ayala Assignee: Roman Kovařík
Resolution: Done Votes: 1
Labels: cs-bk
Remaining Estimate: 1h
Time Spent: 14m
Original Estimate: Not Specified

Issue Links:
causality
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Bug DoR:
[ ]* Steps to reproduce, expected, and actual results filled
[ ]* Affected version filled
Date of First Response:
Epic Link: Dialog UX improvements
Sprint: UI FW 1
Story Points: 5

 Description   

Steps to reproduce in travel demo using carrousel component:

  1. 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
  2. Go to pages app and edit /travel/about/company by adding a carrousel component
  3. Click on the edit icon of the carrouselItems area
  4. 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.


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