[MAGNOLIA-4915] Multilanguage sites allow you to create freemarker errors when entering non-default language first Created: 21/Mar/13  Updated: 10/Mar/21  Resolved: 10/Mar/21

Status: Closed
Project: Magnolia
Component/s: freemarker, templating
Affects Version/s: 4.0
Fix Version/s: 4.5.x

Type: Bug Priority: Neutral
Reporter: Boris Kraft Assignee: Unassigned
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

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   

This is a non-verified but plausible error report. If you create a new component that presumable has required fields, but do so selecting the non-default language of a multi-language tree, you can create a situation that causes a freemarker error. The "required fields" is a pure assumption on my part, as I hope that the reason such an error is introduced is that the template script assumes that required fields are actually filled out. It is however entirely possible that it has nothing to do with that.

Again, untested, I assume to reproduce, have a site with say English as the default (fallback) language and German as a second language. Go to a page, select German from the language selector, create a new component and save. The error will probably show up if you now select the default language in the language dropdown (English).

Please verify and rectify if reproducible.



 Comments   
Comment by Boris Kraft [ 21/Mar/13 ]

Link List > Download Link. Enterprise Edition, 4.5.6.

Comment by Boris Kraft [ 21/Mar/13 ]

Error message:

Error while rendering [/path/to/extras/extras1/0] with template [aladin-standard-module:components/visExtrasPureLinkList]: RenderException: java.lang.NullPointerException

Generated at Mon Feb 12 04:00:15 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.