BigGhost
2011-11-23 11:26:05 UTC
Hi,
something does not work properly. First of all my system:
NetBeans 7.1 Beta with JDK 7 (64Bit) under Windows7 (64Bit)
with "netsh advfirewall set global StatefulFtp disable"
Szenarion (short term):
1. Create a new PHP App from Remote Server
2. Setting the Initial Directors to "/" in the Manage Remote Connections
3. Setting the Upload Directory to "/httpdocs" in the Run Configuration
4. Download the files from the FTP Server.
Okay. This works if i have a "/httpdocs" folder in my FTP Space.
But most others are trapped per FTP directly in to a "/" as WebSpace. Without
any "/htdocs" or "/httpdocs" folders. Please keep that in mind when read.
You can say turn your settings in the upload Dir to "/". Thats correct. But
now another Szenario. I need a folder in the Source Files the are outside of
the Public WebRoot. I use to the previously created project.
1. Create a folder "public" in Source Files
2. Setting the WebRoot to "public" under Project Properties/Sources
3. Delete all the other Files outside my "public" folder.
4. Right Mouse Btn on the "public" folder and download.
FTP Log:
CWD /httpdocs
250 CWD command successful
CWD /httpdocs/public
550 /httpdocs/public: No such file or directory
-----------------------------------------------
Okay. There is no "public" folder in my FTP Space.
5. Going to the Run Configuration(Projects Props.) changing the Upload
Directory to nothing and try another download.
FTP Log:
CWD /
250 CWD command successful
CWD //public
550 //public: No such file or directory
----------------------------------------------
Take a look at the two trailing slashes! NetBeans wants to annoy me ;-)
I try the next step.
6. Rename my "public" folder to "httpdocs" (this is the folder on my FTP server)
7. Set the WebRoot to "httpdocs". Try another download.
FTP Log:
CWD /
250 CWD command successful
CWD //httpdocs
250 CWD command successful
PWD
257 "/httpdocs" is the current directory
SYST
215 UNIX Type: L8
PORT 192,168,2,33,208,83
200 PORT command successful
LIST /httpdocs
150 Opening BINARY mode data connection for file list
226-Transfer complete
226 Quotas off
CWD //ttpdocs/images
550 //ttpdocs/images: No such file or directory
~~~
Summary
====================
Succeeded:
dir httpdocs
file ttpdocs/about.html
~~~
Ignored:
dir ttpdocs/css Cannot change to the remote directory ttpdocs/css.
-------------------------------------------------
What the hell is "//ttpdocs" ?!? and NetBeans creates a new folder "ttpdocs" in
my source list.
In most cases, the name of the FTP server directory will be different from the
local directory. Setting the Upload Directory to "/httpdocs" will result in
FTP Log:
CWD /httpdocs
250 CWD command successful
CWD /httpdocs/httpdocs
550 /httpdocs/httpdocs: No such file or directory
CWD /httpdocs/httpdocs
550 /httpdocs/httpdocs: No such file or directory
QUIT
221 Goodbye.
Why is FTP using the local folder name of WebRoot?
(This is also the reason for the double slashes)
Solution:
FTP has only to use the settings in the Run Configuration (Upload Dir)
and the setting in Manage Remote Connections (Initial Directory).
But NetBeans add the WebRoot to the CWD that seems to be a bug for me. The WebRoot must be a local setting and not the same as the Upload Dir setting witch includes the path into the CWD command.
Can you fix this, please?
Thanks
Oliver
something does not work properly. First of all my system:
NetBeans 7.1 Beta with JDK 7 (64Bit) under Windows7 (64Bit)
with "netsh advfirewall set global StatefulFtp disable"
Szenarion (short term):
1. Create a new PHP App from Remote Server
2. Setting the Initial Directors to "/" in the Manage Remote Connections
3. Setting the Upload Directory to "/httpdocs" in the Run Configuration
4. Download the files from the FTP Server.
Okay. This works if i have a "/httpdocs" folder in my FTP Space.
But most others are trapped per FTP directly in to a "/" as WebSpace. Without
any "/htdocs" or "/httpdocs" folders. Please keep that in mind when read.
You can say turn your settings in the upload Dir to "/". Thats correct. But
now another Szenario. I need a folder in the Source Files the are outside of
the Public WebRoot. I use to the previously created project.
1. Create a folder "public" in Source Files
2. Setting the WebRoot to "public" under Project Properties/Sources
3. Delete all the other Files outside my "public" folder.
4. Right Mouse Btn on the "public" folder and download.
FTP Log:
CWD /httpdocs
250 CWD command successful
CWD /httpdocs/public
550 /httpdocs/public: No such file or directory
-----------------------------------------------
Okay. There is no "public" folder in my FTP Space.
5. Going to the Run Configuration(Projects Props.) changing the Upload
Directory to nothing and try another download.
FTP Log:
CWD /
250 CWD command successful
CWD //public
550 //public: No such file or directory
----------------------------------------------
Take a look at the two trailing slashes! NetBeans wants to annoy me ;-)
I try the next step.
6. Rename my "public" folder to "httpdocs" (this is the folder on my FTP server)
7. Set the WebRoot to "httpdocs". Try another download.
FTP Log:
CWD /
250 CWD command successful
CWD //httpdocs
250 CWD command successful
PWD
257 "/httpdocs" is the current directory
SYST
215 UNIX Type: L8
PORT 192,168,2,33,208,83
200 PORT command successful
LIST /httpdocs
150 Opening BINARY mode data connection for file list
226-Transfer complete
226 Quotas off
CWD //ttpdocs/images
550 //ttpdocs/images: No such file or directory
~~~
Summary
====================
Succeeded:
dir httpdocs
file ttpdocs/about.html
~~~
Ignored:
dir ttpdocs/css Cannot change to the remote directory ttpdocs/css.
-------------------------------------------------
What the hell is "//ttpdocs" ?!? and NetBeans creates a new folder "ttpdocs" in
my source list.
In most cases, the name of the FTP server directory will be different from the
local directory. Setting the Upload Directory to "/httpdocs" will result in
FTP Log:
CWD /httpdocs
250 CWD command successful
CWD /httpdocs/httpdocs
550 /httpdocs/httpdocs: No such file or directory
CWD /httpdocs/httpdocs
550 /httpdocs/httpdocs: No such file or directory
QUIT
221 Goodbye.
Why is FTP using the local folder name of WebRoot?
(This is also the reason for the double slashes)
Solution:
FTP has only to use the settings in the Run Configuration (Upload Dir)
and the setting in Manage Remote Connections (Initial Directory).
But NetBeans add the WebRoot to the CWD that seems to be a bug for me. The WebRoot must be a local setting and not the same as the Upload Dir setting witch includes the path into the CWD command.
Can you fix this, please?
Thanks
Oliver