Robert Ward created an issue |
Issue Type: |
Bug |
---|---|
Affects Versions: |
2.15.2 |
Assignee: |
Unassigned |
Components: |
REST |
Created: |
08/Jul/19 3:16 PM |
Environment: |
Ubuntu 18.04 GeoServer 2.15.2 |
Priority: |
High |
Reporter: |
When using GeoNode 2.10rc5 to upload a layer to GeoServer 2.15.2 it results in GeoServer reporting the error
In GeoNode the python package used to upload the data to GeoServer is called gsconfig. Tested with GeoServer 2.15.1 and the same error is returned. Testing with an older nightly build of GeoServer 2.15.1 from a couple of weeks ago works fine. No code has changed in GeoServer in this area and also in gsconfig. As per the (GeoServer API documentation) the POST /styles REST endpoint it passes the following:
gsconfig when passing making this call passes the following data in the header:
The problem is the Accept header item, if it is omitted the correct method is called :
If the Accept header is present then it calls
The reason this happens is because the
and should be:
This fix ensures that it is backwards compatible. |
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#100105-sha1:45b16e0) |