Details
-
Bug
-
Resolution: Timed out
-
Highest
-
None
-
None
-
None
-
3
-
-
Description
Calls using greenhopper are throwing an IllegalStateException.
Steps to reproduce
- Do any greenhopper call using curl. For example:
curl -D- -X GET -H "Authorization: Basic [username:password in base64]" -H "Content-Type: application/json" '[jira url]/rest/greenhopper/1.0/rapid/charts/sprintreport?rapidViewId=148&sprintId=449'
Expected results
- A json is returned with the requested data
Actual results
- An error 500 HTML page is returned with the following stack trace:
java.lang.IllegalStateException: Cannot create a session after the response has been committed</pre><blockquote id="stacktrace" style="overflow-x: auto;"><pre>java.lang.IllegalStateException: Cannot create a session after the response has been committed at org.apache.catalina.connector.Request.doGetSession(Request.java:2934) at org.apache.catalina.connector.Request.getSession(Request.java:2310) at org.apache.catalina.connector.RequestFacade.getSession(RequestFacade.java:897) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:146) at com.atlassian.plugin.servlet.PluginHttpRequestWrapper.getSession(PluginHttpRequestWrapper.java:140) at javax.servlet.http.HttpServletRequestWrapper.getSession(HttpServletRequestWrapper.java:238) ...
Notes
- Using the same url in the browser (while logged in) works fine.
- Using /rest/api/2/ calls work fine always (without greenhopper).