Ne Admin created an issue |
The rest api post /workspaces/<ws>/datastores/<ds>/featuretypes doesn’t work |
Issue Type: |
Bug |
---|---|
Affects Versions: |
2.17.3, 2.16.0, 2.16.1, 2.16.2, 2.16.3, 2.16.4, 2.16.5, 2.17.0, 2.17.1, 2.17.2, 2.18.0 |
Assignee: |
Unassigned |
Attachments: |
Screenshot_699.png, Screenshot_700.png, geoserver.log, geoserver_2.17.1.response, geoserver_2.17.3.response, geoserver_2.18.0.response |
Components: |
REST |
Created: |
22/Oct/20 11:53 AM |
Environment: |
Windows 10 LTS, JRE 1.8.0.261, Apache Tomcat 9.0, GeoServer 2.15.5…2.18.0 |
Priority: |
Medium |
Reporter: |
The rest api post /workspaces/<ws>/datastores/<ds>/featuretypes doesn’t work
https://docs.geoserver.org/stable/en/user/rest/api/featuretypes.html
let xml = `<featureType>
<name>LayerTestPublic</name>
<title>LayerTestPublic</title>
<nativeName>LayerTest</nativeName>
<nativeCRS>EPSG:4326</nativeCRS>
<projectionPolicy>NONE</projectionPolicy>
</featureType>`;
let response = await fetch( 'http://localhost:8080/geoserver/rest/workspaces/test/datastores/LayerTest/featuretypes', {
method: 'POST',
headers: {
'Authorization': 'Basic ' + btoa("admin:geoserver"),
'Content-Type': 'application/xml'
},
body: xml
});
GeoServer 2.15.5 -> response HTTP 201
GeoServer 2.16.0…2.18.0 -> response HTTP 500 and Java Exception
Manually publishing a layer (via the web interface) works correctly
GeoServer 2.17.1 (my production and main test server) response exception: geoserver_2.17.1.response
GeoServer 2.17.3 (my additional test server) response exception: geoserver_2.17.3.response
GeoServer 2.18.0 (my additional test server) response exception: geoserver_2.18.0.response geoserver.log
Please check the functionality of the REAT API. Starting from version 2.16.0, some features do not work.
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#100149-sha1:bda4d1c) |