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

Annotations endpoint should not fail if a template does not exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 6.3.0, 6.2.23
    • 6.2.20
    • None
    • None

    Description

      Currently if a templaate referenced by the current page. is not found, then the templateAnnotaations endpoint will return a 404. Internally it errors out.

      1. In this case, a message should be written to the log.
      2. The annotaations endpoint should return a correct response with all of the components that have existing templates, so that the page can still render 
        1. For the component with no templaate - it could still return a node, but with some indicator that template xyz was not found. Then the frontend can render something if desired, but at very least developer can trace down the issue.

      See research from Jaroslav:

      https://magnolia-cms.slack.com/archives/CDGDQ4Y4E/p1661174000309829?thread_ts=1660914596.260419&cid=CDGDQ4Y4E

       

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                plequoc Phong Le Quoc
                czimmermann Christopher Zimmermann
                DeveloperX
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Checklists

                    Bug DoR
                    Task DoD

                    Time Tracking

                      Estimated:
                      Original Estimate - Not Specified
                      Not Specified
                      Remaining:
                      Remaining Estimate - Not Specified
                      Not Specified
                      Logged:
                      Time Spent - 12d 1.5h
                      12d 1.5h