[PAGES-417] Cannot open a page when changing the page template to Travel Home Created: 26/Mar/21  Updated: 26/Aug/22

Status: Open
Project: Magnolia pages module
Component/s: None
Affects Version/s: 6.2.6
Fix Version/s: None

Type: Bug Priority: Neutral
Reporter: Canh Nguyen Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: maintenance
Remaining Estimate: Not Specified
Time Spent: 20m
Original Estimate: Not Specified

Attachments: Text File error.txt     PNG File image-2021-03-26-10-07-01-848.png    
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:
[X]* Steps to reproduce, expected, and actual results filled
[X]* Affected version filled
Date of First Response:
Epic Link: AuthorX Maintenance
Team: AuthorX

 Description   

Steps to reproduce

  1. Upgrade from an old version to 6.2.7-SNAPSHOT
  2. Create a new page and select Basic template
  3. Restart the instance (optional?)
  4.  Change the page template to Travel Home
  5. Open the page

Expected results

Can open the new page

Actual results

The page's displayed error 500

Workaround

Delete the page and recreate and choose Travel Home from the beginning.

Development notes

Seems to happen on dx-core only, two people confirmed the issue, one could not reproduce it

Looking closer at the exception stack trace it seems that we should fix our template at https://git.magnolia-cms.com/projects/MODULES/repos/demo-projects/browse/enterprise/magnolia-travel-demo-marketing-tags/src/main/resources/travel-demo-marketing-tags/templates/pages/areas/htmlHeader-marketing-tags.ftl#21 by handling a possible null value?

See also Slack conversation https://magnolia-cms.slack.com/archives/CDF00BHMH/p1617029749034800?thread_ts=1616994005.033700&cid=CDF00BHMH



 Comments   
Comment by Canh Nguyen [ 26/Mar/21 ]

I've also checked that Travel Standard template does not work if we update dx-core from an old version. Either selecting Travel Standard from the beginning or switching template, the page will display error 500.

Comment by Canh Nguyen [ 29/Mar/21 ]

I've also checked clean install, lots of travel templates display error 500 after restart the server.

Comment by Federico Grilli [ 29/Mar/21 ]

I can't reproduce either case (update from 5.7.9 or clean install).

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