You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by cr...@apache.org on 2020/01/29 23:42:07 UTC
[incubator-superset] branch master updated: Remove endpoints
allowing arbitrary cache access (#9049)
This is an automated email from the ASF dual-hosted git repository.
craigrueda pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-superset.git
The following commit(s) were added to refs/heads/master by this push:
new fd9a713 Remove endpoints allowing arbitrary cache access (#9049)
fd9a713 is described below
commit fd9a713c7e9c499cbdc3ae2f661259502b3182fe
Author: Will Barrett <wi...@preset.io>
AuthorDate: Wed Jan 29 15:41:57 2020 -0800
Remove endpoints allowing arbitrary cache access (#9049)
---
superset/views/core.py | 19 -------------------
1 file changed, 19 deletions(-)
diff --git a/superset/views/core.py b/superset/views/core.py
index 0d7ccd8..fbe73f6 100755
--- a/superset/views/core.py
+++ b/superset/views/core.py
@@ -2007,25 +2007,6 @@ class Superset(BaseSupersetView):
return self.render_template("superset/theme.html")
@has_access_api
- @expose("/cached_key/<key>/")
- @event_logger.log_this
- def cached_key(self, key):
- """Returns a key from the cache"""
- resp = cache.get(key)
- if resp:
- return resp
- return "nope"
-
- @has_access_api
- @expose("/cache_key_exist/<key>/")
- @event_logger.log_this
- def cache_key_exist(self, key):
- """Returns if a key from cache exist"""
- key_exist = True if cache.get(key) else False
- status = 200 if key_exist else 404
- return json_success(json.dumps({"key_exist": key_exist}), status=status)
-
- @has_access_api
@expose("/results/<key>/")
@event_logger.log_this
def results(self, key):