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 247278

Summary: com.atlassian.connector.eclipse.internal.jira.core.service.JiraAuthenticationException: Client response status: 401
Product: connecteddeveloper Reporter: svierkant
Component: JiraAssignee: Tomas Stupka <tstupka>
Status: RESOLVED WORKSFORME    
Severity: normal CC: adam_felix_fps, gik, heapifyman, mmirilovic, mperezma, svierkant, TimKack
Priority: P2    
Version: 8.0.2   
Hardware: PC   
OS: Linux   
See Also: https://netbeans.org/bugzilla/show_bug.cgi?id=247178
https://netbeans.org/bugzilla/show_bug.cgi?id=244823
Issue Type: DEFECT Exception Reporter:

Description svierkant 2014-09-18 17:50:03 UTC
Since updating my JIRA plugin to version 1.52, JIRA doesn't load my issues. When changing the settings to JIRA 3.x it seems to work, but I'm using JIRA 6.

Here's some IDE log:


WARNING [org.netbeans.ProxyClassLoader]: Will not load class com.atlassian.connector.eclipse.internal.jira.core.service.JiraClient arbitrarily from one of NetbinoxLoader delegating to com.atlassian.connector.eclipse.jira.core_3.0.8.v20130328 and Netigso[reference:file:extra/modules/com-atlassian-connector-eclipse-jira-core-rest.jar] starting from SystemClassLoader[389 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
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)
Comment 1 Marian Mirilovic 2014-09-22 08:13:04 UTC
Another Jira related issue after recent update to 8.0.1 ... Tomas, please evaluate
Comment 2 gik 2014-09-29 08:04:50 UTC
Same issue here - problem started after update to 8.0.1. When I remove the repository and add it back again it works, until i restart Netbeans.
Comment 3 gik 2014-09-29 08:08:14 UTC
Sorry, forgot to add - i'm using NetBeans under MacOSX (10.9.4)
Comment 4 svierkant 2014-10-13 13:06:55 UTC
*** Bug 247291 has been marked as a duplicate of this bug. ***
Comment 5 svierkant 2014-10-15 14:58:39 UTC
There is a new version of the JIRA plugin available:

Installed version: 1.52
Available version: 1.52.1 
Date: 7-10-14
 Source: Certified Plugins
Homepage: http://www.netbeans.org/  
Plugin Description
Support for JIRA task repository from version 3.13 up to version 6.0  
Internal Updates
    Issue Tracking [1.102.1->1.102.2] 


Where can I find the changelog?
Comment 6 heapifyman 2014-10-15 16:11:12 UTC
Still does not work with Jira plugin version: 1.52.1
Comment 7 Tomas Stupka 2014-10-31 16:48:06 UTC
*** Bug 247167 has been marked as a duplicate of this bug. ***
Comment 8 svierkant 2015-02-23 12:35:48 UTC
Is anyone looking at this issue?
Comment 9 mitya 2015-03-11 07:33:30 UTC
Same issue. At NetBeans startup, a window pops up with JIRA connection properties. Though the settings are correct and validation passes, hitting OK just brings the window back again. On the JIRA side I see the following:

2015-03-11 10:17:34,203 ajp-bio-8009-exec-2519 anonymous 677x7700x1 - XX.XX.XX.XX /rest/api/latest/filter/favourite HttpSession created [12odde1]
2015-03-11 10:17:34,308 ajp-bio-8009-exec-2519 anonymous 677x7700x1 - XX.XX.XX.XX /rest/api/latest/filter/favourite login : '' tried to login but they do not have USE permission or weren't found. Deleting remember me cookie.

In fact, it's not necessary to delete and recreate JIRA task repository; it's sufficient to just change any single character in repository name and re-save it. After that, connection is restored (until restart).

NetBeans 8.0.2
JIRA plugin 1.52.1
JIRA v6.3.7
JDK 1.8.0_40 Linux (i586 + x86_64)
Comment 10 mperezma 2015-03-22 12:38:30 UTC
Same issue here. If I enable plugin to work with 3.13+ connector (options -> team -> tasks -> jira) then I can login and create new task in Jira from NetBeans. But tasks are not being updated in the IDE, and I can't select jira tasks or update them while commiting changes. If I enable plugin to work with 5.0+ connector, then I've the auth issue.
This is a quite old issue and there are no updates. Is somebody working on this? What about jira support on netbeans? I've seen that atlassian does not show NetBeans as supported IDE :-( but I'm NOT going to switch to Eclipse!!!
Comment 11 Tomas Stupka 2015-08-27 15:54:57 UTC
might have been fixed either in scope of #247291 or #245074

could somebody confirm if this still happens with dev build and jira plugin >= 1.57
feel free to reopen in such a case

thanks