You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
diff --git a/src/qgis_geonode/apiclient/geonode_v3.py b/src/qgis_geonode/apiclient/geonode_v3.py
index 0acc7b7..f889d8a 100644
--- a/src/qgis_geonode/apiclient/geonode_v3.py
+++ b/src/qgis_geonode/apiclient/geonode_v3.py
@@ -358,8 +358,8 @@ class GeonodeApiClientVersion_3_4_0(GeonodeApiClientVersion_3_x):
if auth_provider_name == "basic":
for service_type, retrieved_url in result.items():
try:
- prefix, suffix = retrieved_url.partition("geoserver")[::2]
- result[service_type] = f"{self.base_url}/gs{suffix}"
+ prefix, suffix = retrieved_url.partition("/geoserver/")[::2]
+ result[service_type] = f"{self.base_url}/gs/{suffix}"
log(f"result[service_type]: {self.base_url}/gs{suffix}")
except AttributeError:
pass
what do you think?
Best,
Toni
The text was updated successfully, but these errors were encountered:
t-book
changed the title
Wrong endpoints with Basic auth enabled (configuration issue?)
Loading of dataset fails if domain contains geoserver
Mar 23, 2023
Actually we should configure Geoserver for GeoNode with Basic auth backed by authentication service. It's been implemented but it wasn't ported as a standard configuration.
By the way, yes, for the moment your fix should work.
Hi.
in case the domain includes geoserver like https://geoserver.example.org and a User is using basic auth
the loading fails with:
@giohappy @ricardogsilva
I would suggest this change to make the code more independent:
what do you think?
Best,
Toni
The text was updated successfully, but these errors were encountered: