-
Notifications
You must be signed in to change notification settings - Fork 424
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Unable to set FILTER_COMPLIANCE property in Web Feature Server store through REST api #597
Comments
Can you please check what the generated xml file without the filter VS the filter shows. Sometimes it's just how the value should be set that is different |
I've checked and inside the
|
@lpalmarucci The correct xml comes from the rest API requests you did or after changing the filter in the UI. Can you try to do a put request with the XML and see if the results is the same, I will try it later to replicate |
I've followed this steps:
curl --location --request PUT '{GEOSERVER_URL}/geoserver/rest/workspaces/example/datastores/wfsRestApi' \
--header 'Content-Type: application/xml' \
--header 'Authorization: Basic {basicAuthorizationCode}' \
--data '<dataStore>
<name>wfsRestApi</name>
<description>Description web feature service creatoin from api</description>
<type>Web Feature Server (NG)</type>
<enabled>true</enabled>
<workspace>
<id>WorkspaceInfoImpl-197cd622:18ba8cd8228:-6bd6</id>
</workspace>
<connectionParameters>
<entry key="WFSDataStoreFactory:TRY_GZIP">true</entry>
<entry key="WFSDataStoreFactory:GML_COMPATIBLE_TYPENAMES">false</entry>
<entry key="WFSDataStoreFactory:LENIENT">false</entry>
<entry key="WFSDataStoreFactory:AXIS_ORDER">Compliant</entry>
<entry key="usedefaultsrs">false</entry>
<entry key="WFSDataStoreFactory:PROTOCOL">false</entry>
<entry key="WFSDataStoreFactory:GML_COMPLIANCE_LEVEL">0</entry>
<entry key="WFSDataStoreFactory:GET_CAPABILITIES_URL">https://gs-stable.geo-solutions.it/geoserver/ows</entry>
<entry key="WFSDataStoreFactory:MAX_CONNECTION_POOL_SIZE">7</entry>
<entry key="WFSDataStoreFactory:FILTER_COMPLIANCE">0</entry>
<entry key="WFSDataStoreFactory:MAXFEATURES">0</entry>
<entry key="WFSDataStoreFactory:TIMEOUT">30000</entry>
<entry key="WFSDataStoreFactory:BUFFER_SIZE">10</entry>
<entry key="namespace">http://U0VNRU1ORVctMlxzZW1lbXVzZXI=</entry>
<entry key="WFSDataStoreFactory:AXIS_ORDER_FILTER">Compliant</entry>
<entry key="WFSDataStoreFactory:WFS_STRATEGY">auto</entry>
<entry key="WFSDataStoreFactory:USE_HTTP_CONNECTION_POOLING">true</entry>
<entry key="WFSDataStoreFactory:ENCODING">UTF-8</entry>
</connectionParameters>
<__default>false</__default>
<dateCreated>2023-11-17 08:43:54.675 UTC</dateCreated>
<dateModified>2023-11-17 08:59:02.571 UTC</dateModified>
<disableOnConnFailure>false</disableOnConnFailure>
</dataStore>'
The fact is that if the FILTER_COMPLIANCE is not set, when i try to publish a layer, it crashes. However, making PUT request with the XML previously shared, fixed the problem of publishing layers (even if in the UI i'm not able to see the field valorized). |
Maybe add a link to the jira issue |
What is the bug or the crash?
Hi Everyone!
i'm trying to create a datastore (in particular a Web Feature Server store) from Rest API.
Everything works fine (i receive the 201 created http status code) but when i access to the geoserver web application and go to the detail page of the store just created, i see that the Filter Compliace property is empty (see image below)
Steps to reproduce the issue
You can use both of these requests
Versions
2.24.0
Additional context
Every other ConnectionParameters property is set correctly
The text was updated successfully, but these errors were encountered: