Coder Social home page Coder Social logo

Comments (5)

NyakudyaA avatar NyakudyaA commented on July 17, 2024

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.

lpalmarucci avatar lpalmarucci commented on July 17, 2024

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.

NyakudyaA avatar NyakudyaA commented on July 17, 2024

@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 avatar lpalmarucci commented on July 17, 2024

@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:

  1. 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>'
  1. 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.

NyakudyaA avatar NyakudyaA commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.