GeoNode / QGISGeoNodePlugin

A QGIS plugin that provides integration with GeoNode
https://geonode.org/QGISGeoNodePlugin/
GNU General Public License v3.0
12 stars 16 forks source link

[Fixes: #259] Loading of dataset fails if domain contains geoserver #260

Closed t-book closed 2 weeks ago

t-book commented 1 year ago

The current code splits the URL based on the string geoserver. In case the domain contains geoserver somewhere else, like https://geoserver.example.com the loading of resources fails. I'd like to suggest to explitcitly search for /geoserver/ which would target geoserver.example.com /geoserver/ ows...

giohappy commented 2 weeks ago

@t-book if you agree I would close this PR, since it has conflicts now and the proposed solution doesn't cover the other parts of the same module with the same problem.

Your solution might work but it should be put in a method to be reused where needed.