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 183799

Summary: When creating a new project and tying it to a new remote connection, have the newly added connection pre-selected after you save it.
Product: php Reporter: kita
Component: ProjectAssignee: issues@php <issues>
Status: NEW ---    
Severity: normal CC: marco.marsala, tmysik
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows Vista   
Issue Type: ENHANCEMENT Exception Reporter:

Description kita 2010-04-09 17:48:29 UTC
Overview:
When I create a new "PHP Application with Existing Sources" project, set it up to run as "Remote Web Site (FTP, SFTP)" and add a new remote connection for it, the newly saved connection is not preselected in the "Remote Connection" dropdown.  This has caused me to tie a new project to an old existing connection (the top most alphabetically sorted connection that is selected by default) and accidentally overwrite files on the wrong server.

Steps to Reproduce:
1) In NetBeans go to File > New Project
2) Select "PHP" in the "Categories" select area and "PHP Application with Existing Sources" in the "Projects" select area
3) Hit "Next >" at the bottom.
4) Hit browse and point to any folder on your file system (i.e. C:\wamp\www\Projects\T\TenderHeartedMinistries).  The folder itself is irrelevant as it has nothing to do with the bug but you can't get past this screen without selecting it.
5) Make sure there's a valid entry in the "Project Name" text input.  The program should use the final folder name you browsed to by default but if it didn't pre-fill the input area for some reason or if the name is not a valid project name, specify one yourself (i.e. TenderHeartedMinistries)
6) PHP Version does not matter. Default Encoding does not matter
7) Hit "Next >" at the bottom.
8) Select "Remote Web Site (FTP, SFTP)" in the "Run As" drop down.  When you do this extra fields will appear at the bottom of the form.
9) In order to see the bug you have to already have some options in the "Remote Connection" drop down.  If you don't, add a connection on this screen, save it, exit the wizard and start from step one.
10) Click the "Manage" button next to "Remote Connection"
11) Hit the "Add..." button
12) Specify connection name, hit ok, specify host name, user name, password and hit OK

Actual Results: 
When you hit the OK button in step 12 and the connection popup disappears, you'll notice that the new connection you just added is not selected in the "Remote Connection" drop down.

Expected Results:
When you hit the OK button in step 12 and the connection popup disappears, the new connection you just added should be pre-selected for you in the "Remote Connection" drop down.
Comment 1 Filip Zamboj 2010-09-15 12:37:37 UTC
batch reassigning