Cannot set default style using layer PUT

Description

When doing a PUT to localhost:8080/geoserver/rest/layers/tigeroi with the contents {"layer":{"name":"poi","defaultStyle":{"name":"capitals"}}}, the defaultStyle does not get updated.

This only affects JSON PUT, XML works fine.
This also only occurs when the Importer extension is installed. The issue appears to be being caused because ImportLayerJSONMessageConverter is being used instead of XStreamJSONMessageConverter.

The constraints on the Importer converter need to be tightened.

Environment

None

Status

Assignee

Torben Barsballe

Reporter

Torben Barsballe

Triage

None

Fix versions

Affects versions

None

Priority

Medium
Configure