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 209381 - Failed to change directory uselessly re-creates missing structure
Summary: Failed to change directory uselessly re-creates missing structure
Status: NEW
Alias: None
Product: php
Classification: Unclassified
Component: FTP Support (show other bugs)
Version: 7.2
Hardware: All All
: P4 normal with 1 vote (vote)
Assignee: Tomas Mysik
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-03-09 13:27 UTC by Vladimir Riha
Modified: 2012-07-02 04:39 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
remote log (1.33 KB, text/x-log)
2012-03-09 13:27 UTC, Vladimir Riha
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vladimir Riha 2012-03-09 13:27:38 UTC
Created attachment 116511 [details]
remote log

Steps to reproduce:
- create new PHP project from remote server
- in the Upload field (step 3 "Remote Configuration") add some non existing path (in Manage Remote connection the "initial directory" is left to "/") 
- press Next
- NetBeans tries to download files but results in "No files available, navigate back and verify..." (that's OK)
- but the selected directory structure was actually created on the server (see log with MKD commands)

Why is are the directories created? Not sure if it is a bug or expected behavior but since I can't proceed to next step when "No files available..." and "download empty project" the structure is useless. So as a result every typo can create new directories.

I noticed this on localhost (vsftpd) and on some "real" ftp server as well. If there is no way to avoid creating folders would it be possible to "download empty project" and continue working?

Log is from localhost with chrooted user account. "Initial directory" is "/" and "Upload directory" is "/home/vriha/fooProject/someFile" (I did not realized the chroot setting :)



Product Version: NetBeans IDE Dev (Build 201203071105)
Java: 1.7.0_03; Java HotSpot(TM) Client VM 22.1-b02
System: Linux version 3.0.0-16-generic running on i386; UTF-8; en_US (nb)
Comment 1 Vladimir Riha 2012-03-09 13:28:59 UTC
(In reply to comment #0)
> - in the Upload field (step 3 "Remote Configuration") add some non existing
> path (in Manage Remote connection the "initial directory" is left to "/") 

I meant "Upload directory" field
Comment 2 Tomas Mysik 2012-03-27 14:23:21 UTC
It is expected behavior but I will try distinguish situations where the directory should not be created (like this one) and where it should be created (for upload).

Thanks for reporting.