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 16:09:52 UTC

svn commit: r1707312 - /comdev/reporter.apache.org/trunk/site/getjson.py

Author: sebb
Date: Wed Oct  7 14:09:52 2015
New Revision: 1707312

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

Modified:
    comdev/reporter.apache.org/trunk/site/getjson.py

Modified: comdev/reporter.apache.org/trunk/site/getjson.py
URL: http://svn.apache.org/viewvc/comdev/reporter.apache.org/trunk/site/getjson.py?rev=1707312&r1=1707311&r2=1707312&view=diff
==============================================================================
--- comdev/reporter.apache.org/trunk/site/getjson.py (original)
+++ comdev/reporter.apache.org/trunk/site/getjson.py Wed Oct  7 14:09:52 2015
@@ -150,10 +150,10 @@ def getJIRAS(project):
         base64string = base64.encodestring('%s:%s' % ('githubbot', jirapass))[:-1]
 
         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("/var/www/reporter.apache.org/data/JIRA/%s.json" % project, "w") as f: