firebus / splunk-jira

A Splunk Add-on for JIRA
http://apps.splunk.com/app/1438/
Other
25 stars 15 forks source link

'Invalid Expression' error if time_keys are empty #14

Closed firebus closed 10 years ago

firebus commented 10 years ago

Reported originally in #13, spinning off a separate Issue/Bug for this.

firebus commented 10 years ago

To reproduce, leave time_keys empty and make a | jira search.

2013-11-05 11:49:10,270 ERROR Invalid expression Traceback (most recent call last): File "/opt/splunk/etc/apps/jira/bin/jira.py", line 91, in v = elem.xpath(k) File "lxml.etree.pyx", line 1447, in lxml.etree._Element.xpath (src/lxml/lxml.etree.c:41728) File "xpath.pxi", line 321, in lxml.etree.XPathElementEvaluator.call (src/lxml/lxml.etree.c:117734) File "xpath.pxi", line 239, in lxml.etree._XPathEvaluatorBase._handle_result (src/lxml/lxml.etree.c:116911) File "xpath.pxi", line 225, in lxml.etree._XPathEvaluatorBase._raise_eval_error (src/lxml/lxml.etree.c:116780) XPathEvalError: Invalid expression