[PAGES-189] Invalid template definition breaks the "Pages" app Created: 17/Jul/19  Updated: 11/Mar/21  Resolved: 11/Mar/21

Status: Closed
Project: Magnolia pages module
Component/s: None
Affects Version/s: 5.7.1, 6.1
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Ervin Vystup Assignee: Unassigned
Resolution: Obsolete Votes: 0
Labels: M6-UI-tech-bug
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: PNG File Screenshot 2019-07-16 at 14.42.27.png     PNG File image-2019-07-17-13-00-08-178.png     Text File log.txt     Zip Archive my-module.zip     PNG File screenshot-1.png    
Issue Links:
relation
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: Support

 Description   

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)


 Comments   
Comment by Roman Kovařík [ 11/Mar/21 ]

Works on latest https://demo.magnolia-cms.com/.magnolia/admincentral#app:pages-app:browser;/travel/about:: (just marks the affected pages as Unknown template and page can't be rendered as expected)

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