[Geoserver-devel] [jira] (GEOS-6721) aparam value is not recognized by env variable in sld file with WMS animator

Christophe Moisy created an issue

GeoServer / BugGEOS-6721

aparam value is not recognized by env variable in sld file with WMS animator

Issue Type:

BugBug

Affects Versions:

2.6.0

Assignee:

Andrea Aime

Components:

Global

Created:

13/Oct/14 3:07 AM

Environment:

linux / Debian Sarge

Priority:

MajorMajor

Reporter:

Christophe Moisy

when using a style with an env variable (colname) as :
<ogc:Function name=“property”>
<ogc:Function name=“env”>
<ogc:Literal>colname</ogc:Literal>
<ogc:Literal>value_2000</ogc:Literal>
</ogc:Function>
</ogc:Function>

using wms direct call is OK ( &env=colname:value_2050) but when using WMS animator with
&aparam=env:colname&avalues=value_2050,value_2060
the value is not recognized in geoserver
it switches back to the default value (value_2000)

if I use a layout (message.xml) in the same WMS animator request, with the same variable, the value is displayed correctly.

log file displays this error :

13 oct. 10:06:05 WARN [wms.responses] - couldn’t paint due to:
Expression avalue is undefined on line 1, column 3 in name.
The problematic instruction:

==> $

{avalue}

[on line 1, column 1 in name]

Java backtrace for programmers:

freemarker.core.InvalidReferenceException: Expression avalue is undefined on line 1, column 3 in name.
at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:125)

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v6.1.6#6162-sha1:7af547c)

Atlassian logo