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

Invalid template definition breaks the "Pages" app

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Neutral Neutral
    • None
    • 5.7.1, 6.1
    • None

      Unintentional adding of free space before the "templateScript:" breaks the "Pages" app. Only the following error is visible.

       
      Steps to reproduce:

      1. Add the "my-module" module to your "light-modules" folder.
        my-module.zip
      2. Create a page in the "Pages" app and set the "my-page" template for it.
      3. Close the "Pages" app.
      4. Find and modify the "/my-module/templates/pages/my-page.yaml" file.
      5. Add free space/s before the row with: "templateScript:" and save changes.
      6. Again open the "Pages" app.
      7. The error is there.

      Log: log.txt

      + in Magnolia 6.1:

      • you cannot then close the "Pages" app because the "cross" button is missing,
      • the exclamation mark icon is too small,
      • the window for the "Notification text" is too small: (especially if you have a big monitor and the rest of the space under the window is white)

        Acceptance criteria

          1. image-2019-07-17-13-00-08-178.png
            image-2019-07-17-13-00-08-178.png
            31 kB
          2. log.txt
            37 kB
          3. my-module.zip
            7 kB
          4. screenshot-1.png
            screenshot-1.png
            56 kB
          5. Screenshot 2019-07-16 at 14.42.27.png
            Screenshot 2019-07-16 at 14.42.27.png
            143 kB

              Unassigned Unassigned
              evystup Ervin Vystup
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved:

                  Bug DoR
                  Task DoD