[Geoserver-devel] [JIRA] (GEOS-10502) GML3 output is not pretty printed when pretty print is turned on in global settings.

Ian Turton created an issue

GeoServer / BugGEOS-10502

GML3 output is not pretty printed when pretty print is turned on in global settings.

Issue Type:

BugBug

Affects Versions:

2.19.5, 2.20.4

Assignee:

Ian Turton

Components:

WFS

Created:

20/May/22 12:10 PM

Priority:

MediumMedium

Reporter:

Ian Turton

We need Geoserver’s XML (WFS) responses to be formatted, or at least contain line breaks. The manual states that by enabling “Verbose messages” in the global settings, the XML output will be formatted. Unfortunately, turning this on did not change the WFS reponse formatting (tried with Geoserver 2.10 and 2.20).

With a little further digging, I found a “verbose” option in the wfs.xml file. Enabling verbose here and restarting Geoserver resulted in formatted XML output.

Is this the expected behaviour? Is this the correct way to configure what we need? Is it reliable? (Should the manual be changed?)

Then I did some more research and found out that only WFS responses with the outputFormat=GML2 option are sent formatted (line breaks, indentations) when verbose is enabled in wfs.xml. GML3 is always sent without formatting. Is there a way to get the GML3-output also formatted?

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#100198-sha1:0f60739)

Atlassian logo