[Geoserver-devel] [JIRA] (GEOS-9935) CQL filter will not corretly parse 1 minute duration

Nuno Oliveira created an issue

GeoServer / BugGEOS-9935

CQL filter will not corretly parse 1 minute duration

Issue Type:

BugBug

Assignee:

Unassigned

Created:

25/Feb/21 7:01 PM

Priority:

MediumMedium

Reporter:

Nuno Oliveira

The following filters will be correctly parsed:

  • TIMESTAMP_PROPERTY DURING 2021-02-10T19:00:00Z/2021-02-10T19:10:00Z
  • TIMESTAMP_PROPERTY DURING P1Y1M/2021-02-10T19:10:00Z

… but this one will not:

  • TIMESTAMP_PROPERTY DURING PT10M/2021-02-10T19:10:00Z

Looks like the previous 10 minutes expression (PT10M) is not correctly parsed. It fails with:

<?xml version=“1.0” encoding=“UTF-8”?>
<ows:ExceptionReport
xmlns:xs=“http://www.w3.org/2001/XMLSchema
xmlns:ows=“http://www.opengis.net/ows/1.1
xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” version=“2.0.0” xsi:schemaLocation=“http://www.opengis.net/ows/1.1 http://vdscs-stg-geoserver-1.emsa.geo-solutions.it:8080/geoserver/schemas/ows/1.1.0/owsAll.xsd”>
<ows:Exception exceptionCode=“NoApplicableCode”>
<ows:ExceptionText>Could not parse CQL filter list.
Encountered &quot;DURING PT10M&quot; at line 1, column 35.

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100154-sha1:e3e2b03)

Atlassian logo