Skip to content

Commit 17b3925

Browse files
[FIXIES 13044] Remote WMS dataset store is not correct if uploaded via the importer (#13045)
1 parent 3a05aa5 commit 17b3925

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

geonode/upload/handlers/common/remote.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ def is_valid_url(url, **kwargs):
9090
r.raise_for_status()
9191
except requests.exceptions.Timeout:
9292
raise ImportException("Timed out")
93-
except Exception:
93+
except Exception as e:
94+
logger.exception(e)
9495
raise ImportException("The provided URL is not reachable")
9596
return True
9697

geonode/upload/handlers/remote/wms.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,8 @@ def generate_resource_payload(self, layer_name, alternate, asset, _exec, workspa
157157
.encode("utf-8", "ignore")
158158
.decode("utf-8")
159159
.replace(".", "")
160-
.replace("/", ""),
160+
.replace("/", "")
161+
.replace(":", ""),
161162
ptype="gxp_wmscsource",
162163
ows_url=_exec.input_params.get("ows_url"),
163164
)

0 commit comments

Comments
 (0)