Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Counter Widget error when connected to a Table without a filter applied inside dashboards #11120

Copy link
Copy link

Description

@giohappy
Issue body actions

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

  • 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)

Image

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 &amp;apos;bootstrap&amp;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.

Reactions are currently unavailable

Metadata

Metadata

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

Morty Proxy This is a proxified and sanitized view of the page, visit original site.