You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a Counter widget is linked to a Table widget with no filters applied, an error is returned by the WPS process, and the Counter widget fails to render.
How to reproduce
Add a table to a dashboard
Create a Counter widget and connect it to the table
The counter shows an error unless a filter is set on the table (for example by connecting a Map to the Table and settings a filter on any column)
Expected Result
A counter widget connected to a table widget in a dashboard shows the result whether the table has a filter applied or not.
Current Result
A counter widget connected to a table widget in a dashboard only works if a filter is applied to the table, otherwise, an error is returned.
Not browser related
Other useful information
The problem is that the Counter widget sends an empty Filter element inside the <wps:Input>Query element, and the WPS process returns the following exception:
<?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="1.1.0" xsi:schemaLocation="http://www.opengis.net/ows/1.1 https://development.demo.geonode.org/geoserver/schemas/ows/1.1.0/owsAll.xsd">
<ows:Exception exceptionCode="NoApplicableCode">
<ows:ExceptionText>Could not parse XML request.
Parsing failed for Query: java.lang.RuntimeException: Unable to set property: Filter for eobject: {http://www.opengis.net/wfs}QueryType
Unable to set property: Filter for eobject: {http://www.opengis.net/wfs}QueryType
class java.lang.String cannot be cast to class org.geotools.api.filter.Filter (java.lang.String is in module java.base of loader &apos;bootstrap&apos;; org.geotools.api.filter.Filter is in unnamed module of loader org.apache.catalina.loader.ParallelWebappClassLoader @1c80e49b)</ows:ExceptionText>
</ows:Exception>
</ows:ExceptionReport>
If the empty Filter is removed, the process executes as expected.
Description
When a Counter widget is linked to a Table widget with no filters applied, an error is returned by the WPS process, and the Counter widget fails to render.
How to reproduce
Expected Result
A counter widget connected to a table widget in a dashboard shows the result whether the table has a filter applied or not.
Current Result
A counter widget connected to a table widget in a dashboard only works if a filter is applied to the table, otherwise, an error is returned.
Other useful information
The problem is that the Counter widget sends an empty
Filterelement inside the<wps:Input>Queryelement, and the WPS process returns the following exception:If the empty
Filteris removed, the process executes as expected.