Code Monkey home page Code Monkey logo

Comments (5)

jacobwod avatar jacobwod commented on June 22, 2024 2

Thanks @sweco-semara, I absolutely agree. Also, you're correct about the assumptions made in Admin's code. It seems like nobody really tested standalone GWC before, hence the missing support. It'd be fantastic to get it implemented.

Given the differences that you've identified, it seems valid to add another serverType. I'd vote for geowebcache-standalone, given that it's less ambiguous and states clearly that it targets the standalone GWC. But you can call it whatever you prefer. 😄

We can absolutely talk about it on the upcoming meeting. 👍

from hajk.

jacobwod avatar jacobwod commented on June 22, 2024 1

I've added some labels, please correct if I'm mistaken (specifically I'm not sure if this will require work in Client and Backend too).

from hajk.

sweco-semara avatar sweco-semara commented on June 22, 2024

@Hallbergs @jacobwod I am trying to get a customer to see the benefit of Sweco contributing to Hajk for making Hajk-integration with stand-alone GWC smoother. If accepted, let's discuss solutions on upcoming code meetings. Heads-up with the idea of "qualifying" GeoWebCache to it's own Server Type in Hajk admin. Do you agree with that idea? Would you choose "geowebcache" or "geowebcache-standalone" in that case? (All other server types seems to be lowercase only in Hajk admin so my initial suggestion follows this principle.) NB! Bug report is not really complete yet, more details will follow.

from hajk.

sweco-semara avatar sweco-semara commented on June 22, 2024

This was tested successfully against a standalone GWC instance in dev, test and prod environments. Starting to clean up code and proceed with the PR.

Core devs, for your information (initially a question but changed on second thought, see potential downsides below - moved to potential future work instead) Seeing where the implementation landed the changes might, with small adjustments, be extrapolated from GeoWebCache stand-alone to some generic "WMS server but not GeoServer" setting, i.e. Any WMS Server, not having the GeoServer REST API available for listing workspaces. The servertype name could then be changed, I guess e.g. QGIS Server would behave similar, to a bit more generic (e.g. from "geowebcache-standalone" to generic-wms).

Potential downsides and reasoning against proceeding with generalization of all non-GeoServer WMS types already now, i.e. the reason to go ahead with proven "geowebcache-standalone" only for a first PR:

  1. Not yet tested with other servertypes
  2. GeoWebCache not supporting serveral WMS service versions and an assumption in admin to not query for all versions (GWC will not care if WMS version 1.3.0 is requested for capabilties, it will incorrectly respond with 1.1.1 syntax and HTTP/200 OK status which is not WMS spec conformant)
  3. Setting servertype = geowebcache-standalone currently automatically sets tiled=true in Hajk admin

The new GWC stand-alone support and existing QGIS Server type will be a good base for generalization in a future Hajk improvement, GWC stand-alone PR could be a good starting point for "extracting up"/generalizing to a common server type for "geowebcache-standalone" + "qgis" to e.g. "generic-wms". Hower due to reasons above this might be complicated with e.g. WMS version defaults, so leaving it as-is for now with the proven and tested GWC stand-alone support.

from hajk.

sweco-semara avatar sweco-semara commented on June 22, 2024

PR is now ready for review. It includes several improvements for avoiding Hajk admin crashing on all sorts of configuration errors thrown at it during testing, including CORS block / WMS servers missing CORS headers for Hajk which has been a pretty common error in our customer's test and productions environments (before pointing this out).

from hajk.

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.