Coder Social home page Coder Social logo

Comments (7)

fxi avatar fxi commented on September 1, 2024 1

Thanks for this!
To wrap it up, after updating geosapi, enableWxS for enabling and disableWxS for disabling. Keep updateServiceSettings for other settings such as title.
I will look at this tomorrow first thing.
Have a nice evening !

from geosapi.

fxi avatar fxi commented on September 1, 2024 1

So, I've modified my wrapper/bridge around geosapi and it seems to work well. Each CRUD operation we do in our app is now fully reproduced in GeoServer through geosapi.
If our "in-depth" tests show something else, I will reopen this issue or create a new one.
Thanks for your efficiency !

from geosapi.

eblondel avatar eblondel commented on September 1, 2024

Hi @fxi hope the year started well for you and your team. i'm going to have a look asap to this, and report to you.

from geosapi.

eblondel avatar eblondel commented on September 1, 2024

@fxi, @PierreLacroix first apologies for this glitch. This issue escaped to the latest enhancements because of wrong 'vocabulary' I followed and some differences in the Geoserver REST API whether we deal with the global config or the workspace config. Until now, i was thinking that enabling/disabling were operated with an UPDATE operation, which makes senses (in principle), and this is in line with the piece of code you tried.

But I've realized that Geoserver doesn't treat an OGC service enabling/disabling (what we have as checkbox in the Web Interface) in the same way depending if you look at global service or workspace service:

  • for the global service settings, running an UPDATE operation to disable the WxS services works
  • for the workspace service settings, running an UPDATE doesn't work (And here you keep the checkbox 'checked' while it shouldn't), while the update request worked setting the property enabled to false in the rest config (with no effect on the checkbox). Instead a DELETE operation has to be applied, which deletes the service config. Unfortunately for me, this was not explicitely mentioned in the API doc, and the tests are not able to catch this.

I've pushed some fix for this, and tried out on GeoServer 2.14.

It's important that you don't use the updateServiceSettings method for that, but rather the shortcuts i've put in place such as disableWMS, disableWFS, disableWCS. Depending if you disable a global or workspace setting, geosapi will apply the right operation behind (UPDATE, DELETE).

Let me know

from geosapi.

eblondel avatar eblondel commented on September 1, 2024

You're welcome!

from geosapi.

eblondel avatar eblondel commented on September 1, 2024

@fxi just to let you know that i've submitted geosapi in CRAN, and it has been accepted for publication. Soon i'll create a tag in github to match this release.

from geosapi.

fxi avatar fxi commented on September 1, 2024

@eblondel Thanks for the notification !

from geosapi.

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.