Uploaded image for project: 'Magnolia pages module'
  1. Magnolia pages module
  2. PAGES-297

Unable to edit areas by clicking on edit icon

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Neutral Neutral
    • 6.2.1
    • 6.2
    • None

      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.

        Acceptance criteria

              rkovarik Roman Kovařík
              jayala Jonathan Ayala
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD

                    Estimated:
                    Original Estimate - Not Specified
                    Not Specified
                    Remaining:
                    Time Spent - 14m Remaining Estimate - 1h
                    1h
                    Logged:
                    Time Spent - 14m Remaining Estimate - 1h
                    14m