Unexpected error in render when colorList param has a string value instead of int
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Graphite |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
For a uri like below
"render?
render bails out with the below error
Traceback (most recent call last):
File "/usr/lib/
response = callback(request, *callback_args, **callback_kwargs)
File "/opt/graphite/
image = doImageRender(
File "/opt/graphite/
img = graphClass(
File "/opt/graphite/
colorList = unquote_plus( params['colorList'] ).split(',')
File "/usr/lib64/
s = s.replace('+', ' ')
AttributeError: 'int' object has no attribute 'replace'
A patch against glyph.py to fix this issue is below
# diff -u /opt/graphite/
--- /opt/graphite/
+++ /opt/graphite/
@@ -170,7 +170,7 @@
self.
if 'colorList' in params:
- colorList = unquote_plus( params['colorList'] ).split(',')
+ colorList = unquote_plus( str(params[
else:
colorList = self.defaultCol
self.colors = itertools.cycle( colorList )
Changed in graphite: | |
status: | New → Won't Fix |
Oops - this affects graphite-web-0.9.10