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 244767 - Update Task from SVN commit leads to infinite UI loop on "Edit Task Repository"
Summary: Update Task from SVN commit leads to infinite UI loop on "Edit Task Repository"
Status: NEW
Alias: None
Product: connecteddeveloper
Classification: Unclassified
Component: Issuetracking Framework (show other bugs)
Version: 8.0.2
Hardware: PC Windows 7
: P4 normal with 3 votes (vote)
Assignee: Tomas Stupka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-05-28 14:00 UTC by witbrock
Modified: 2015-08-14 08:10 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description witbrock 2014-05-28 14:00:59 UTC
Product Version = NetBeans IDE Dev (Build 201405130001)
Operating System = Linux version 3.13.0-24-generic running on amd64
Java; VM; Vendor = 1.8.0
Runtime = Java HotSpot(TM) 64-Bit Server VM 25.0-b70

Attempting to track to JIRA issue tracking system during SVN commit causes UI loop.

Steps: 
Enter SVN commit dialog.
Go to "Update Task" section.
Attempt to connect to JIRA on demand instance. -- this will lead to "Edit Task Repository" dialogue
Successfully "Validate" the connection.

Hit "OK" - this will throw you back into the "Edit Task Repository" dialogue.
Hit "Cancel" - this will also throw you back into the "Edit task repository" dialogue.
Since these are Modal (too much in netbeans is modal for no usability reason)  you are now stuck. Can't cleanly exit. Only recovery option is OS-level kill of NB process (which, thankfully, does terminate the dialogue respawn loop).
Comment 1 Tomas Stupka 2014-06-06 08:52:23 UTC
i was partially able to reproduce only with a newly created (and misconfigured) repository instance which haven't been used yet to create an issue or run a query (-> no repository configuration downloaded). The edit repository popup appeared 3 times, but then the sequence stopped. While this is definitely wrong, there was no need to kill NetBeans ...
Comment 2 bstremel 2014-07-07 15:33:44 UTC
Product Version = NetBeans IDE Dev (Build 201406270001)
Operating System = Windows 7 version 6.1 running on amd64
Java; VM; Vendor = 1.7.0_60
Runtime = Java HotSpot(TM) 64-Bit Server VM 24.60-b09

I can confirm the same issue as witbrock.  I had JIRA set up on 8.0 and moved to 8.0 dev to fix a PHPUnit Skelgen issue.  I tried to commit code against an issue and installed the JIRA plugin from the dialog, restarted, and when trying to search, it asked for my credentials for the Atlassian server.  After providing and validating them, the infinite loop began.
Comment 3 eviweb 2015-01-27 09:46:28 UTC
Hi,

I can confirm this issue when trying to find tasks on a jira server.

please find below my environment information:

Product Version: NetBeans IDE 8.0.2 (Build 201411181905)
Java: 1.8.0_05; Java HotSpot(TM) 64-Bit Server VM 25.5-b02
Runtime: Java(TM) SE Runtime Environment 1.8.0_05-b13
System: Linux version 3.13.0-44-generic running on amd64; UTF-8; fr_FR (nb)

JIRA Netbeans plugin:
Version: 1.52.1 Source: Certified Plugins  
Plugin Description
Support for JIRA task repository from version 3.13 up to version 6.0

JIRA SERVER: JIRA (v6.2.3#6260-sha1:63ef1d6)

Authentication valid through SSL.

I noticed the message in the status bar : 'Preparing query...'

Eric
Comment 4 eviweb 2015-01-27 09:54:03 UTC
here is the error log (I've changed my personal information behind upper case names):

INFO [org.netbeans.modules.jira.Jira]: validate for [MY_JIRA_SERVER,https://MY_JIRA.MY_DOMAIN,MY_USERNAME,******,,******] worked.
INFO [org.netbeans.modules.jira.Jira]
org.eclipse.core.runtime.CoreException: Unable to login to https://MY_JIRA.MY_DOMAIN. 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.repository.JiraRepository.createQuery(JiraRepository.java:156)
	at org.netbeans.modules.jira.JiraRepositoryProvider.createQuery(JiraRepositoryProvider.java:78)
	at org.netbeans.modules.jira.JiraRepositoryProvider.createQuery(JiraRepositoryProvider.java:54)
	at org.netbeans.modules.bugtracking.RepositoryImpl.createNewQuery(RepositoryImpl.java:260)
	at org.netbeans.modules.bugtracking.ui.query.QueryTopComponent$9.run(QueryTopComponent.java:650)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
Comment 5 arysupra 2015-03-15 05:07:46 UTC
Can confirm similar behaviour in Netbeans 8.0.2 on Windows 7 x86, JIRA v6.3.15#6346-sha1:dbc023d
Comment 6 wvreeven 2015-08-14 08:10:01 UTC
I confirm the same behaviour as reported by eviweb@netbeans.org in NetBeans 8.0.2 on MacOSX with JDK 1.8.0 build 51. The stack trace is

INFO [org.netbeans.modules.jira.Jira]
org.eclipse.core.runtime.CoreException: Unable to login to https://<my 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.repository.JiraRepository.createQuery(JiraRepository.java:156)
    at org.netbeans.modules.jira.JiraRepositoryProvider.createQuery(JiraRepositoryProvider.java:78)
    at org.netbeans.modules.jira.JiraRepositoryProvider.createQuery(JiraRepositoryProvider.java:54)
    at org.netbeans.modules.bugtracking.RepositoryImpl.createNewQuery(RepositoryImpl.java:260)
    at org.netbeans.modules.bugtracking.ui.query.QueryTopComponent$9.run(QueryTopComponent.java:650)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)
WARNING [org.netbeans.ProxyClassLoader]: Will not load class com.atlassian.connector.eclipse.internal.jira.core.JiraRepositoryConnector 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[645 modules]; see http://wiki.netbeans.org/DevFaqModuleCCE
INFO [org.netbeans.modules.jira.Jira]: validate for [My JIRA,https://<my jira>,<my username>,******,null,******] worked.
INFO [org.netbeans.modules.jira.Jira]
org.eclipse.core.runtime.CoreException: Unable to login to <my 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.repository.JiraRepository.createQuery(JiraRepository.java:156)
    at org.netbeans.modules.jira.JiraRepositoryProvider.createQuery(JiraRepositoryProvider.java:78)
    at org.netbeans.modules.jira.JiraRepositoryProvider.createQuery(JiraRepositoryProvider.java:54)
    at org.netbeans.modules.bugtracking.RepositoryImpl.createNewQuery(RepositoryImpl.java:260)
    at org.netbeans.modules.bugtracking.ui.query.QueryTopComponent$9.run(QueryTopComponent.java:650)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1423)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2033)