[Geoserver-devel] [JIRA] (GEOS-9493) WFS GeoJSON complex features output issue on numeric typed xml attributes

Fernando Miño created an issue

GeoServer / BugGEOS-9493

WFS GeoJSON complex features output issue on numeric typed xml attributes

Issue Type:

BugBug

Affects Versions:

2.16.0

Assignee:

Fernando Miño

Components:

Application schema

Created:

10/Feb/20 5:46 PM

Priority:

MediumMedium

Reporter:

Fernando Miño

When GeoJSON encoder tries to handle an xml attribute with other type than string, in this case an integer, Geoserver throws a class cast exception due to complex GeoJSON writer is handling all xml attributes as string. On GML output this issue is not present and numeric typed attributes are encoded without exceptions.

This was reproduced using a app-schema jdbc multi value element with an integer typed attribute and executing a WFS GetFeature requesting GeoJSON output.
https://docs.geoserver.org/stable/en/user/data/app-schema/mapping-file.html#attributes-with-cardinality-1-n

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#100119-sha1:6c3d6e9)

Atlassian logo