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)

Status

Assignee

Unassigned

Reporter

Paul Cleverley

Triage

None

Fix versions

None

Affects versions

Priority

High
Configure