We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc79ba0 commit 034c0aeCopy full SHA for 034c0ae
geonode/proxy/utils.py
@@ -51,6 +51,10 @@ def unregister_host(self, host):
51
self.proxy_allowed_hosts.remove(host)
52
53
def get_proxy_allowed_hosts(self):
54
+ # We register remote hosts from remote URLs at creation time, inside ImporterViewSet.create().
55
+ # If for some reason the creation fails we end up having stale or wrong URLs inside the registry.
56
+ # We check the last time the registry was updated, and after a certain delta we reinitialize the registry
57
+ # which removes any URLs that are not connected to remote datasets
58
if (
59
self._last_registry_load is None
60
or (now() - self._last_registry_load).days >= self._registry_reload_threshold
0 commit comments