[MAGNOLIA-4367] Creating of SingletonParagraphTemplateModel crashes on getting locale Created: 14/Feb/12  Updated: 26/Apr/12  Resolved: 25/Apr/12

Status: Closed
Project: Magnolia
Component/s: i18n
Affects Version/s: 4.4.5
Fix Version/s: 4.4.7, 4.5.3

Type: Bug Priority: Major
Reporter: Will Scheidegger Assignee: Ondrej Chytil
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:
  • Plain vanilla Magnolia CE 4.4.5
  • STK 1.4.5

Attachments: Text File stacktrace.txt    
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:

 Description   

SingletonParagraphTemplateModel is created outside WebContext and therefore will fail when i18n is enabled.

Steps to reproduce:

  • Download + bootstrap
  • Go to config:/server/i18n/content and set "enabled" to true
  • Create a new stkNewsOverview page
  • Try to open page

The exception - in stacktrace file.



 Comments   
Comment by Ondrej Chytil [ 14/Feb/12 ]

Thanks for reporting this issue Will.
Tested also with 4.5 bundle SNAPSHOT and issue is not reproducible there.

Comment by Ondrej Chytil [ 25/Apr/12 ]

For 4.5.x issue cannot be reproduced however in case i18n is needed outside webcontext it's fixed on trunk as well.

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