CQL filter documentation wrongly reports ability to do a BBOX against a geometry

Description

When attempting to a BBOX CQL filter against geometric shapes like POLYGON, GeoServer errors out with an exception:

org.geotools.filter.LiteralExpressionImpl cannot be cast to org.opengis.filter.Filter

According to the documentation at http://docs.geoserver.org/2.7.1/user/filter/ecql_reference.html#spatial-predicate it seems like you should be able to do a BBOX query against a geometric shape like a POLYGON. Other spatial predicates appear to work correctly.

An example of this issue is the following request:

http://demo.boundlessgeo.com/geoserver/wfs?cql_filter=BBOX(%22the_geom%22,+POLYGON((-105.51+43.06,-105.51+47.10,-97.77+47.10,-97.77+43.06,-105.51+43.06)))&outputFormat=text%2Fxml;+subtype%3Dgml%2F3.1.1&request=GetFeature&srsName=EPSG:4326&typeName=og:archsites&version=1.0.0

Environment

Status

Assignee

Andrea Aime

Reporter

Tony Baron

Triage

None

Fix versions

Affects versions

None

Priority

Low
Configure