[SOLVED] Jira Soap

Ask community to help.

Moderators: Amaradana, TurboPT, TL Developers

Post Reply
hithwen
TestLink user
Posts: 3
Joined: Fri Jun 03, 2011 2:49 pm

[SOLVED] Jira Soap

Post by hithwen »

Hi,
Im triying to set up testlink with Jira via jirasoap
But default BUG_TRACK_ENTER_BUG_HREF = secure/Dashboard.jspa?os_destination=%2Fsecure%2FCreateIssue%21default.jspa
gives me an error

Code: Select all

java.lang.IllegalStateException: Cannot forward after response has been committed
	at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:312)
	at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:302)
	at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.dispatchView(JiraWebworkActionDispatcher.java:285)
	at com.atlassian.jira.web.dispatcher.JiraWebworkActionDispatcher.service(JiraWebworkActionDispatcher.java:187)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
But changing it to /secure/CreateIssue.jspa?issuetype=1&Create=Create
Redirects you to this page, I dont know if its the original intended behaviour:
Image

Btw I reported the error page to Jira's Jira, all they said is they dont support Testlink :roll:
hithwen
TestLink user
Posts: 3
Joined: Fri Jun 03, 2011 2:49 pm

Re: Jira Soap (Solved)

Post by hithwen »

They finally gave me a real answers, seems I was on the right way:
I am suspecting the URL to be invalid as the exception raised is an invalidstateException which means that the JSP code is trying to forward after it has already starting writing the output to the client. You may want to have a look at the following forum contributions regarding this exception:

http://devpinoy.org/blogs/lamia/archive ... itted.aspx
http://www.coderanch.com/t/480598/JBoss ... ot-forward
Is it possible to change the TestLink request URL for creating issues to be something like: http://jira_url/secure/CreateIssue.jspa which I believe that will solve the problem.
So maybe this should be changed in next testlink release?
michiel
TestLink user
Posts: 2
Joined: Tue Jul 05, 2011 9:10 am

Re: Jira Soap

Post by michiel »

Hi,

BUG_TRACK_ENTER_BUG_HREF should read: secure/CreateIssueDetails!init.jspa?pid=10000&issuetype=1

where:
- pid is your Project ID (in Jira, look it up in the database)
- issuetype is something valid (by default, issuetype 1 is bug, what is probably OK)
... you can optionally add any other key/value pairs for fields you like to fill by default

pid and isuetype are mandatory when creating an issue, as is a valid session with Jira (you'll get the logon screen when you haven't).

This goes for TestLink 1.9.1 and Jira 4.3.3.
Post Reply