This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 236741 - Exception raised whenever search performed using Query text
Summary: Exception raised whenever search performed using Query text
Status: RESOLVED FIXED
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Jira (show other bugs)
Version: 7.4
Hardware: PC Windows 7
: P3 normal with 1 vote (vote)
Assignee: Tomas Stupka
URL:
Keywords:
: 237668 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-04 08:50 UTC by RaySlater
Modified: 2014-01-10 19:00 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
messages.log (52.13 KB, application/octet-stream)
2013-10-28 14:00 UTC, sparkee
Details

Note You need to log in before you can comment on or make changes to this bug.
Description RaySlater 2013-10-04 08:50:56 UTC
If I put any text in the Query field and perform a search for a Jira I get an exception. Searches using other criteria (product/task/user, etc) but without query text succeed. The query giving the exception works in a browser search.

INFO [org.netbeans.modules.jira.Jira]
org.eclipse.core.runtime.CoreException: Server redirected to unexpected location: https://jira1.intervoice.int/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?decorator=none&reset=true&tempMax=1000&&summary=SDL&description=SDL
	at org.netbeans.modules.mylyn.util.commands.SynchronizeQueryCommand.execute(SynchronizeQueryCommand.java:177)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:123)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:102)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:98)
	at org.netbeans.modules.jira.query.JiraQuery$1.run(JiraQuery.java:228)
	at org.netbeans.modules.jira.query.JiraQuery.executeQuery(JiraQuery.java:484)
	at org.netbeans.modules.jira.query.JiraQuery.refreshIntern(JiraQuery.java:185)
	at org.netbeans.modules.jira.query.JiraQuery.refresh(JiraQuery.java:287)
	at org.netbeans.modules.jira.query.QueryController$QueryTask.executeQuery(QueryController.java:1321)
	at org.netbeans.modules.jira.query.QueryController$QueryTask.run(QueryController.java:1354)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1432)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2042)
Caused by: com.atlassian.connector.eclipse.internal.jira.core.service.JiraRedirectException: Server redirected to unexpected location: https://jira1.intervoice.int/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?decorator=none&reset=true&tempMax=1000&&summary=SDL&description=SDL
	at com.atlassian.connector.eclipse.internal.jira.core.service.web.rss.JiraRssSessionCallback.run(JiraRssSessionCallback.java:78)
	at com.atlassian.connector.eclipse.internal.jira.core.service.web.JiraWebSession.doInSession(JiraWebSession.java:130)
	at com.atlassian.connector.eclipse.internal.jira.core.service.web.rss.JiraRssClient.doInSession(JiraRssClient.java:45)
	at com.atlassian.connector.eclipse.internal.jira.core.service.web.rss.JiraRssClient.findIssues(JiraRssClient.java:66)
	at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.findIssues(JiraClient.java:265)
	at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.search(JiraClient.java:520)
	at com.atlassian.connector.eclipse.internal.jira.core.JiraRepositoryConnector.performQuery(JiraRepositoryConnector.java:139)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQuery(SynchronizeQueriesJob.java:311)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.synchronizeQueries(SynchronizeQueriesJob.java:268)
	at org.eclipse.mylyn.internal.tasks.core.sync.SynchronizeQueriesJob.run(SynchronizeQueriesJob.java:201)
	at org.netbeans.modules.mylyn.util.commands.SynchronizeQueryCommand.execute(SynchronizeQueryCommand.java:171)
	... 11 more
Comment 1 Tomas Stupka 2013-10-14 09:50:04 UTC
> org.eclipse.core.runtime.CoreException: Server redirected to unexpected location
the error is that the server redirected to an unexpected location. Unfortunately, there is nothing we could do about it.
Comment 2 RaySlater 2013-10-17 23:22:36 UTC
Yes the exception suggests a server configuration problem, however I am confident that in this case it is not a problem with the server configuration for the following reasons:

1) The query given in the exception works and returns valid XML when run from a browser on the same machine.

2) I can run successful queries on the Jira server if other criteria are chosen (eg product/task/user). However as soon as I put anything in the query text field and try a search I get an exception (this occurs even if none of the tick boxes below the query are selected).

3) I have now tried another Jira server - the Apache issue tracker (https://issues.apache.org/jira) from a different computer on a different network. This gives exactly the same results that as I have been seeing. Select a project only & search - success. Put something in the query & untick Summary & Description - exception:

INFO [org.netbeans.modules.jira.Jira]
org.eclipse.core.runtime.CoreException: Server redirected to unexpected location: https://issues.apache.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?decorator=none&reset=true&tempMax=1000&&pid=10730&


Perhaps the library used does not like the "&&" in the requests?
Comment 3 Tomas Stupka 2013-10-25 15:33:12 UTC
*** Bug 237668 has been marked as a duplicate of this bug. ***
Comment 4 Tomas Stupka 2013-10-25 16:08:51 UTC
https://issues.apache.org/jira is version 6.1, which isn't currently supported by netbeans, we have to upgrade the connector library first.

see also issue #236829
Comment 5 sparkee 2013-10-28 14:00:18 UTC
Created attachment 141605 [details]
messages.log

First I tried a search and got the redirect error

Then I tried a garbage issue ID "GARBAGEID" and got that error
Comment 6 sparkee 2013-10-28 14:01:12 UTC
Our version of JIRA: 

Atlassian JIRA (v5.2.6#849-sha1:560c048)
Comment 7 Tomas Stupka 2013-12-06 14:14:25 UTC
> Our version of JIRA: 
> Atlassian JIRA (v5.2.6#849-sha1:560c048)
like mentioned in issue #234609 - versions above 5.0 are not supported yet
Comment 8 Tomas Stupka 2014-01-09 15:41:31 UTC
since issue #236829 was fixed the netbeans support should work also with jira servers 5.0+
please get the last ersion of the jira module (1.48) and give it a try ...
Comment 9 sparkee 2014-01-10 18:57:33 UTC
(In reply to Tomas Stupka from comment #8)
> since issue #236829 was fixed the netbeans support should work also with
> jira servers 5.0+
> please get the last ersion of the jira module (1.48) and give it a try ...

The problems I was having are now corrected in today's development build.  Thank you.  I look forward to seeing it in a production release.
Comment 10 sparkee 2014-01-10 19:00:55 UTC
Note tha tthe plug-in description still says: "Support for JIRA task repository from version 3.13 up to version 5.0". It now appears to work properly with Version 5.2.