Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for WMS Geoserver API error. Request changed to include Files. #17

Merged
merged 5 commits into from
Nov 10, 2021

Conversation

carderm
Copy link

@carderm carderm commented Apr 29, 2021

Removed WMS Store from href due to Geoserver REST error when store name was included.
Change to http_request to allow files to be uploaded. E.g. for importing Shapefiles via Importer Rest API

carderm and others added 5 commits February 18, 2021 18:08
This is a workaround for a Geoserver issue - including store name in the URL causes a failure in Geoserver (500 error) but works (200) without.

For Geoserver Testing see:
https://docs.geoserver.org/stable/en/api/#1.0.0/wmslayers.yaml
1. PUT for /workspaces/{workspace}/wmslayers/{wmslayer}  - WORKS!
2. PUT for /workspaces/{workspace}/wmsstores/{wmsstore}/wmslayers - FAILS!

Sample xml payload to enable/disable a wmslayer:
<wmsLayer>
<enabled>true</enabled>
<advertised>true</advertised>
</wmsLayer>
@carderm
Copy link
Author

carderm commented Aug 12, 2021

I believe these commits also fix issue #5 and get the correct Style type before updating the body of the style.

@afabiani afabiani merged commit 762f7c9 into GeoNode:master Nov 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants