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 148533

Summary: Need to trim spaces for values in New Connection dialog
Product: db Reporter: David Vancouvering <davidvc>
Component: CodeAssignee: matthias42
Status: RESOLVED FIXED    
Severity: blocker CC: romanmostyka
Priority: P4    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 152580    

Description David Vancouvering 2008-09-26 23:08:37 UTC
Put in 'localhost ' for the host name and see what happens...
Comment 1 Jiri Rechtacek 2009-02-10 15:36:19 UTC
Reassigned to new owner.
Comment 2 Jiri Rechtacek 2009-07-01 07:44:43 UTC
NB6.7 was released already - http://www.netbeans.org/community/releases/67/
Postpone fixing this issue on the next release.
Comment 3 matthias42 2015-06-22 19:31:43 UTC
Fix committed as:

http://hg.netbeans.org/core-main/rev/986246adf75c

the password field is excluded from this and the port field is handled specialy - the first number in the port field is extracted and used as port.

I'd appreciate testers, if you want to help, please wait till a nightly build is created, that contains this fix (an entry is added to this bug by then), run it and check if the trimming and handling of values in the "new connection dialog" is sane (ports are numeric, string values are trimmed). If so, please change the bug status to "VERIFIED".
Comment 4 Quality Engineering 2015-06-26 04:51:30 UTC
Integrated into 'main-silver', will be available in build *201506260309* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/986246adf75c
User: Matthias Blaesing <matthias42@netbeans.org>
Log: #148533: Trim values of most input fields in NewConnectionDialog and sanitize port