Comments (5)
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
from docker-geoserver.
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 datastore.xml
file it's correctly saved (below the xml content)
<dataStore>
<id>DataStoreInfoImpl--6eec8551:18bdc4d0bbd:-7ff6</id>
<name>wfsRestApi2</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>
from docker-geoserver.
@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
from docker-geoserver.
@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:
- Put request with the XML in the previous response
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>'
- In the web application i verify if the field was set but it doesn't
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).
I assume that i have to use this solution as workaround waiting for geoserver to fix the issue as i've also created a BUG on their Jira
from docker-geoserver.
Maybe add a link to the jira issue
https://osgeo-org.atlassian.net/issues/GEOS-11210?jql=text%20~%20%22Filter%20compliance%22
from docker-geoserver.
Related Issues (20)
- support for 2.24.1 HOT 4
- GeoServer Pod Restart Failure with Thread Local Errors in Kubernetes Environment HOT 1
- Not possible anymore to run as non-root HOT 12
- roles.xml & roles.xml.orig down to 0 bytes HOT 1
- Geoserver Cluster on AWS ECS not working HOT 9
- Dockerfile STABLE_EXTENSION gdal error ->Plugin URL does not exist:: https://sourceforge.net/projects/geoserver/files/GeoServer/2.24.1/extensions/geoserver-2.24.1-gdal.zip HOT 1
- gdal stable extension support needed. HOT 5
- random start-up crash HOT 10
- XFRAME_OPTIONS does not work as expected. HOT 1
- [geoserver.monitor] - Request Dumper exiting due to :Permission denied
- crash at start on arm64 HOT 1
- After crashing I couldn't run again HOT 2
- Write a security policy / nominate security contacts HOT 5
- validate_url and download_extension request every URL twice, and don't re-use connections, making builds really slow HOT 3
- Update base image to new image HOT 4
- GWC error "Problem communicating with GeoServer" HOT 13
- Broken WMS due to libjpeg-turbo errors in 2.25.0 HOT 10
- Custom Vector Dimensions don't work in 2.25.0 HOT 2
- JDBCconfig and JDBCstore configuration settings via ENV variables HOT 15
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from docker-geoserver.