contents.ftl template parsing a hash causes Service Exception

Description

This error is received with this content.ftl template:

This parses and works ok in https://try.freemarker.apache.org/ template tester.

Environment

GeoServer Version
2.13.1
Git Revision
cae7496cb49213c27458c47551fb4797d03825e0
Build Date
20-May-2018 00:44
GeoTools Version
19.1 (rev 5f248795f65bd55eb889f5803163e50479404bdd)
GeoWebCache Version
1.13.1 (rev 1.13.x/e219127b6e89d08f40b0796852db0636bdc322a2)

Activity

Show:
Andrea Aime
January 12, 2019, 10:30 AM

GeoServer is using a 2.3.18 version of freemarker, maybe support for that syntax has been added in a later version? The site you're referring to uses the latest version.
If you want try replacing the freemarker version in GeoServer and see if that works.

Andrea Aime
February 1, 2019, 11:05 AM

Hi Paul, did you check out if the syntax is supported by GeoServer freemarker version?

Assignee

Unassigned

Reporter

Paul Cleverley

Triage

None

Fix versions

None

Affects versions

Priority

High
Configure