Skip to content

Commit

Permalink
panorama incorrect mysql_id cache keys
Browse files Browse the repository at this point in the history
IssueID #2166: panorama incorrect mysql_id cache keys

- There are SOME cache key msgpack values that DO == string.printable
  for example [73] msgpacks to I panorama.mysql_ids will always be msgpack so
  if 'panorama.mysql_ids' in key name set test_string = False

Modified:
skyline/webapp/webapp.py
  • Loading branch information
earthgecko committed Sep 20, 2017
1 parent 5f025b4 commit c1dd805
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions skyline/webapp/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -2432,6 +2432,12 @@ def rebrow_key(host, port, db, key):
except:
abort(404)
test_string = all(c in string.printable for c in val)
# @added 20170920 - Bug #2166: panorama incorrect mysql_id cache keys
# There are SOME cache key msgpack values that DO == string.printable
# for example [73] msgpacks to I
# panorama.mysql_ids will always be msgpack
if 'panorama.mysql_ids' in str(key):
test_string = False
if not test_string:
raw_result = r.get(key)
unpacker = Unpacker(use_list=False)
Expand Down

0 comments on commit c1dd805

Please sign in to comment.