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 39807 - CVS Client selection problem in filesystem customizer.
Summary: CVS Client selection problem in filesystem customizer.
Status: VERIFIED FIXED
Alias: None
Product: obsolete
Classification: Unclassified
Component: vcscore (show other bugs)
Version: 3.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Martin Entlicher
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-09 15:12 UTC by Martin Entlicher
Modified: 2004-03-10 10:22 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The contextual diff of the patch. (907 bytes, patch)
2004-03-08 12:36 UTC, Martin Entlicher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Entlicher 2004-02-09 15:12:48 UTC
Submitted for vcscore component, since the problem
is likely in VariableInputDialog or the associated
logic in variables setting.

The problem can be reproduced on CVS filesystem
with a pserver connection.
Mount the FS with a command-line client.
Invoke the Customizer, command-line client should
be selected correctly. Do not change anything and
close the Customizer.
Invoke the Customizer the second time. Now
Built-In client will be mistakenly selected.

This problem was originally reported by
mkleint@netbeans.org
Comment 1 Richard Gregor 2004-02-20 23:00:31 UTC
I can't reproduce this with build 200402191900, it is probably fixed
with issues related to VariableInput. 
Comment 2 Martin Entlicher 2004-03-03 19:15:19 UTC
Well, the problem is still there :-(( Reopening.
I thought that it's the same problem as issue #40728, but
unfortunately not. It seems like this bug have origin in updating of
variable values in VariableInputDialog. The change is performed in
following thread stack:

org.netbeans.modules.vcs.advanced.CommandLineVcsFileSystem.setVariables(CommandLineVcsFileSystem.java:1105)
        at
org.netbeans.modules.vcs.advanced.VcsCustomizer.variablesChanged(VcsCustomizer.java:2038)
        at
org.netbeans.modules.vcs.advanced.VcsCustomizer.access$5500(VcsCustomizer.java:63)
        at
org.netbeans.modules.vcs.advanced.VcsCustomizer$7.propertyChange(VcsCustomizer.java:1836)
        at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:264)
        at
javax.swing.event.SwingPropertyChangeSupport.firePropertyChange(SwingPropertyChangeSupport.java:232)
        at javax.swing.JComponent.firePropertyChange(JComponent.java:3819)
        at
org.netbeans.modules.vcscore.util.VariableInputDialog.updateVariableValues(VariableInputDialog.java:760)
        at
org.netbeans.modules.vcscore.util.VariableInputDialog.updateVariableValues(VariableInputDialog.java:631)
        at
org.netbeans.modules.vcs.advanced.VcsCustomizer.initAdditionalComponents(VcsCustomizer.java:1988)
        at
org.netbeans.modules.vcs.advanced.VcsCustomizer.setObject(VcsCustomizer.java:2613)
Comment 3 Martin Entlicher 2004-03-05 16:34:41 UTC
Added "fix-in-36" into Status Whiteboard, we should fix this into 3.6
release.
Comment 4 Martin Entlicher 2004-03-08 12:33:01 UTC
The problem is fixed in trunk:

/cvs/vcscore/src/org/netbeans/modules/vcscore/util/VariableInputDialog.java,v
 <--  VariableInputDialog.java
new revision: 1.74; previous revision: 1.73

Since similar problem in PVCS was P1 priority (issue #40728),
increasing the priority to P1.

Milos, can you please verify the fix? Thanks.
Comment 5 Martin Entlicher 2004-03-08 12:36:04 UTC
Created attachment 13868 [details]
The contextual diff of the patch.
Comment 6 Milos Kleint 2004-03-08 12:59:10 UTC
seems ok now..
Comment 7 Richard Gregor 2004-03-08 14:14:04 UTC
The fix is simple - processes radio button only once. Reviewed without
objections.  
Comment 8 Milan Kubec 2004-03-08 14:28:38 UTC
QA, please, verify the fix in trunk build. Thanks.
Comment 9 Martin Entlicher 2004-03-08 14:38:13 UTC
This is already verified by Milos. It should be sufficient, right?
I've posted the notification to reviewers@netbeans.org and I'm waiting
24 hours...
Comment 10 dmladek 2004-03-08 15:00:29 UTC
I've checked it on Build 200403071900 and it seems fine.
(the only spot is that the textfield "CVS Executable: " is disabled
even though the CMD-line client is selected. You must first click on
this radio-button, but it used to be there for a long time. And on
JDK1.5 it's enough to hover the mouse over it)
Comment 11 Milan Kubec 2004-03-10 09:16:09 UTC
Milos did review of source code, didn't he? Dan will verify
functionality. QE must aprove such fixes by verifying functionality on
trunk build.
Comment 12 Milos Kleint 2004-03-10 09:17:31 UTC
nope, I just verified that it works for me now..
Comment 13 Martin Entlicher 2004-03-10 10:22:34 UTC
Thanks for the verification and review, the fix is merged into
release36 branch:

/shared/data/helm/cvs/repository/vcscore/src/org/netbeans/modules/vcscore/util/VariableInputDialog.java,v
 <--  VariableInputDialog.java
new revision: 1.73.6.1; previous revision: 1.73