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 159535

Summary: Wrong error messages in the New Instance dialog
Product: connecteddeveloper Reporter: Petr Dvorak <joshis>
Component: HudsonAssignee: Jesse Glick <jglick>
Status: VERIFIED FIXED    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:

Description Petr Dvorak 2009-03-03 15:33:06 UTC
Product Version: NetBeans IDE Dev (Build Kenai API - Hg fetch-23-on-090303)
Java: 1.5.0_16; Java HotSpot(TM) Client VM 1.5.0_16-b02
System: Linux version 2.6.27-12-generic running on i386; UTF-8; en_US (nb)

0. Start IDE with a fresh userdir
1. Open services view
2. Invoke "Add Hudson Instance" above "Hudson" node
-> An error message is there, this is an error itself (this was discussed some time ago, user didn't do anything wrong
yet and sill (s)he sees an error)

3. Type in some valid URL with Hudson instance ("an URL that is supposed to work")
-> Finish button is still disabled

4. Leave the URL field by focusing the Name field
-> Now the finish button is enabled
-> Message "Provide a valid URL for Hudson 1.104 or higher" is (incorrectly) displayed

5. Focus URL and Name again
-> Now everything works

Expected behavior: No error is shown when the dialog is opened (use warning - the yellow one - instead). As long as the
Name and URL are non-empty, Finish button is enabled. As user types, a validation for duplicate Name and URL is
performed. Validation for valid Hudson instance is done after user clicks Finish button (then he/she is notified that
URL is not correct), if the URL is not a valid Hudson URL, an error message is shown and dialog is not closed.
Comment 1 Jesse Glick 2009-03-03 15:55:35 UTC
I'm not sure if validation after clicking the Finish button is possible. I will check, but a slightly different UI may
be necessary.
Comment 2 Jesse Glick 2009-03-03 15:55:41 UTC
*** Issue 158013 has been marked as a duplicate of this issue. ***
Comment 3 Jesse Glick 2009-03-06 23:39:28 UTC
Jano asks that this be a dialog, not a wizard. "Add" should show a progress bar inside the dialog until it has finished
checking, at which point it should close upon success, else show an error.
Comment 4 Jesse Glick 2009-03-13 20:11:12 UTC
Shiny new UI. cdev #380a260bef11
Comment 5 Quality Engineering 2009-03-17 08:38:18 UTC
Integrated into 'main-golden', will be available in build *200903170201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/380a260bef11
User: Jesse Glick <jglick@netbeans.org>
Log: #159535: rewrote New Hudson Instance dialog.
Comment 6 Petr Dvorak 2009-03-26 18:04:03 UTC
Looks very nice. Verified.

Product Version: NetBeans IDE Dev (Build 200903251400)
Java: 1.6.0_10; Java HotSpot(TM) Client VM 11.0-b15
System: Linux version 2.6.27-14-generic running on i386; UTF-8; en_US (nb)