Closed Bug 1089726 Opened 10 years ago Closed 10 years ago

Remove any control characters in vidly status cache key

Categories

(Webtools Graveyard :: Air Mozilla, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Unassigned)

References

()

Details

(Whiteboard: [good first bug])

When we make the cache key [0] we blindly use the tag value of the event. If this contains anything other that [a-z][0-9] it can cause trouble (memcache trouble). 

We should do something like:

   tag = environment['tag']
   cache_key = 'vidly-query-%s' % hashlib.md5(tag).hexdigest()


[0] https://github.com/mozilla/airmozilla/blob/810ead7498fc54895d36c5917d7dec771c835a93/airmozilla/manage/views.py#L2350
Whiteboard: [good first bug]
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Product: Webtools → Webtools Graveyard
You need to log in before you can comment on or make changes to this bug.