[Geoserver-devel] [JIRA] (GEOS-7543) REST Putting a WFS Settings xml results into an Unauthorized class found during XStream conversion

Daniele Romagnoli created an issue

GeoServer / BugGEOS-7543

REST Putting a WFS Settings xml results into an Unauthorized class found during XStream conversion

Issue Type:

BugBug

Affects Versions:

2.9-RC1, 2.8.3

Assignee:

Unassigned

Attachments:

PUTException.log

Components:

REST, WFS

Created:

18/May/16 11:42 AM

Priority:

MediumMedium

Reporter:

Daniele Romagnoli

The XStreamPersister initializers and loaders declare the allowed types for XML Unmarshalling.

The WFSXStreamLoader declares WFSInfo.Version.class and GMLInfoImpl.class as allowedTypes.
https://github.com/geoserver/geoserver/blob/master/src/wfs/src/main/java/org/geoserver/wfs/WFSXStreamLoader.java#L33

However, trying to put a wfs settings.xml result into the attached PUTException.log.


Steps to replicate it:
Simply send a PUT request against:
http://HOST:PORT/geoserver/rest/services/wfs/settings.xml

using the wfs.xml settings available on the “release” data dir available in the /data dir of the geoserver code as body of the PUT.
https://github.com/geoserver/geoserver/blob/master/data/release/wfs.xml

Add Comment

Add Comment

This message was sent by Atlassian JIRA (v1000.5.2#72002-sha1:b4422fe)

Atlassian logo