You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2015/10/07 12:22:54 UTC

svn commit: r1707228 - /comdev/reporter.apache.org/trunk/readjira.py

Author: sebb
Date: Wed Oct  7 10:22:54 2015
New Revision: 1707228

URL: http://svn.apache.org/viewvc?rev=1707228&view=rev
Log:
Project names need to be quoted in case they happen to be reserved (e.g. EXEC)

Modified:
    comdev/reporter.apache.org/trunk/readjira.py

Modified: comdev/reporter.apache.org/trunk/readjira.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/readjira.py?rev=1707228&r1=1707227&r2=1707228&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/readjira.py (original)
+++ comdev/reporter.apache.org/trunk/readjira.py Wed Oct  7 10:22:54 2015
@@ -53,10 +53,10 @@ def getProjects():
 
 def getJIRAS(project):
     try:
-        req = urllib2.Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project%20=%20""" + project + """%20AND%20created%20%3E=%20-91d""")
+        req = urllib2.Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project%20=%20'""" + project + """'%20AND%20created%20%3E=%20-91d""")
         req.add_header("Authorization", "Basic %s" % base64string)
         cdata = json.loads(urllib2.urlopen(req).read())
-        req = urllib2.Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project%20=%20""" + project + """%20AND%20resolved%20%3E=%20-91d""")
+        req = urllib2.Request("""https://issues.apache.org/jira/rest/api/2/search?jql=project%20=%20'""" + project + """'%20AND%20resolved%20%3E=%20-91d""")
         req.add_header("Authorization", "Basic %s" % base64string)
         rdata = json.loads(urllib2.urlopen(req).read())
         with open("%s/data/JIRA/%s.json" % (MYHOME, project), "w") as f: