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 248876 - Jira Task Plugin cannot connect to JIRA Server
Summary: Jira Task Plugin cannot connect to JIRA Server
Status: RESOLVED DUPLICATE of bug 244823
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Jira (show other bugs)
Version: 8.0.1
Hardware: PC Windows 7
: P3 normal (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-11-25 07:01 UTC by AndyWuest
Modified: 2014-12-09 17:17 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
JIRA Task Dialog (34.11 KB, image/png)
2014-11-25 07:01 UTC, AndyWuest
Details
Netbeans log file containg the exception (18.68 KB, text/plain)
2014-11-25 07:02 UTC, AndyWuest
Details

Note You need to log in before you can comment on or make changes to this bug.
Description AndyWuest 2014-11-25 07:01:47 UTC
Created attachment 150678 [details]
JIRA Task Dialog

Hi,

i tried to use the JIRA Task Plugin, but failed. After entering my JIRA credentials and JIRA Server URL, i can successful connect to the server (Clicking the "Validate" Button shows me the green success message).

However it is not possible for me to Create a new task or to create a new query. 
Whenever i click on the icons the "Edit Task Repository Dialog" is shown. Clicking on the validate button is always successful. BUt whenever i click
on the ok button nothing happens and no error message is displayed, thus i have no idea what is the problem.

In the log file i can see the following messages, which indicates a problem.
Validate works, but not the login. Is there something that needs to be activated in JIRA before the Task plugin can be used? If so, what needs to be activated? A useful message should be shown to the user. I am using a 5+ Jira Version and i need a proxy to be able to connect to the JIRA Repository. Maybe that is the problem ? If you need more information please tell me.


INFO [org.netbeans.modules.parsing.impl.indexing.RepositoryUpdater]: Complete indexing of 57 source roots took: 5.573 ms (New or modified files: 1, Deleted files: 0) [Adding listeners took: 232 ms]
INFO [org.netbeans.modules.jira.Jira]: validate for [PECT JIRA,https://atlassianp01.web.cencored.biz/jira,X117664,******,null,******] worked.
INFO [org.netbeans.modules.jira.Jira]
org.eclipse.core.runtime.CoreException: Unable to login to https://atlassianp01.web.cencored.biz/jira. Please validate credentials via Task Repositories view.
	at com.atlassian.connector.eclipse.internal.jira.core.JiraRepositoryConnector.updateRepositoryConfiguration(JiraRepositoryConnector.java:432)
	at org.netbeans.modules.jira.repository.JiraRepository$1ConfigurationCommand.execute(JiraRepository.java:552)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:127)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:106)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:175)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:106)
	at org.netbeans.modules.jira.repository.JiraRepository.getConfigurationIntern(JiraRepository.java:559)
	at org.netbeans.modules.jira.repository.JiraRepository.getConfiguration(JiraRepository.java:523)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:116)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:106)
	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.repository.JiraRepository.getRemoteFilters(JiraRepository.java:353)
	at org.netbeans.modules.jira.repository.JiraRepository$2.run(JiraRepository.java:340)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.modules.jira.Jira]
org.eclipse.core.runtime.CoreException: Unable to login to https://atlassianp01.web.cencored.biz/jira. Please validate credentials via Task Repositories view.
	at com.atlassian.connector.eclipse.internal.jira.core.JiraRepositoryConnector.updateRepositoryConfiguration(JiraRepositoryConnector.java:432)
	at org.netbeans.modules.jira.repository.JiraRepository$1ConfigurationCommand.execute(JiraRepository.java:552)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:127)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:106)
	at org.netbeans.modules.jira.repository.JiraRepository.getConfigurationIntern(JiraRepository.java:559)
	at org.netbeans.modules.jira.repository.JiraRepository.getConfiguration(JiraRepository.java:523)
	at org.netbeans.modules.jira.autoupdate.JiraAutoupdate$1.execute(JiraAutoupdate.java:129)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:127)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:106)
	at org.netbeans.modules.jira.autoupdate.JiraAutoupdate.getSupportedServerVersion(JiraAutoupdate.java:133)
	at org.netbeans.modules.jira.autoupdate.JiraAutoupdate$AutoupdateCallback.getServerVersion(JiraAutoupdate.java:166)
	at org.netbeans.modules.bugtracking.commons.AutoupdateSupport.checkAndNotify(AutoupdateSupport.java:118)
	at org.netbeans.modules.jira.autoupdate.JiraAutoupdate.checkAndNotify(JiraAutoupdate.java:109)
	at org.netbeans.modules.jira.commands.JiraExecutor.checkAutoupdate(JiraExecutor.java:209)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:120)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:106)
	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.repository.JiraRepository.getRemoteFilters(JiraRepository.java:353)
	at org.netbeans.modules.jira.repository.JiraRepository$2.run(JiraRepository.java:340)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.modules.jira.Jira]
com.atlassian.connector.eclipse.internal.jira.core.service.JiraAuthenticationException: Client response status: 401
	at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.call(JiraRestClientAdapter.java:733)
	at com.atlassian.connector.eclipse.internal.jira.core.service.rest.JiraRestClientAdapter.getFavouriteFilters(JiraRestClientAdapter.java:273)
	at com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient.getNamedFilters(JiraClient.java:565)
	at org.netbeans.modules.jira.rest.RestJiraConnectorProvider$JiraClientImpl.getNamedFilters(RestJiraConnectorProvider.java:317)
	at org.netbeans.modules.jira.commands.NamedFiltersCommand.execute(NamedFiltersCommand.java:67)
[catch] at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:127)
	at org.netbeans.modules.jira.commands.JiraExecutor.execute(JiraExecutor.java:106)
	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.repository.JiraRepository.getRemoteFilters(JiraRepository.java:353)
	at org.netbeans.modules.jira.repository.JiraRepository$2.run(JiraRepository.java:340)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
INFO [org.netbeans.modules.jira.Jira]
Comment 1 AndyWuest 2014-11-25 07:02:29 UTC
Created attachment 150679 [details]
Netbeans log file containg the exception
Comment 2 phpguru 2014-11-25 15:32:50 UTC
You can successfully add a Jira server as a Task Repository, but when trying to connect to it, the connection dialog is presented repeatedly, even when valid credentials are entered. I am not using a proxy. Hosted Jira version 6+. It does not matter if you are using a proxy.
Comment 3 AndyWuest 2014-11-26 07:55:13 UTC
The behavious phpguru described in his comment is exactely the one i am experiencing.
Comment 4 AndyWuest 2014-12-01 11:22:17 UTC
JIRA Version is 6.1.4.
This actually looks like a duplicate bug: see Bug 244823
Comment 5 phpguru 2014-12-09 17:17:52 UTC
Thanks Andy, I've made additional comments on 244823. I marked this a duplicate.

*** This bug has been marked as a duplicate of bug 244823 ***