Bug 568283

Summary: NetKit ftp client can not put file starting with space
Product: [Fedora] Fedora Reporter: Vitaliy Tokarev <vitaliy.tokarev>
Component: ftpAssignee: Jiri Skala <jskala>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: low    
Version: 12CC: aglotov, jskala, vitaliy.tokarev
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-02-25 10:06:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Vitaliy Tokarev 2010-02-25 09:59:35 UTC
Description of problem:


Version-Release number of selected component (if applicable): ftp-0.17-51.fc12.i686


How reproducible:


Steps to Reproduce:
1. Touch the file ' test' and write something in it.

$ touch ' test'
$ echo "This is example text." > ' test'
$ ls -hl ~/\ test
-rw-rw-r-- 1 gav gav 14 2010-02-25 12:54 /home/gav/ test

2. Login to ftp server.

$ ftp ftp.example.org
...
Remote system type is UNIX.
Using binary mode to transfer files.

3. Go to writeable directory.

ftp> cd /public/tmp
250 CWD command successful

4. Try to put file ' test' to server.

ftp> put "/home/gav/\ test"
local: /home/gav/\ test remote: /home/gav/\ test
local: /home/gav/\ test: No such file or directory
ftp> put "/home/gav/ test"
local: /home/gav/ test remote: /home/gav/ test
227 Entering Passive Mode (xxx,xxx,xxx,xxx,189,198).
550 /home/gav/ test: No such file or directory

5. Try to get file from server (I uploaded it with gnome-vfs-ftp).

ftp> ls
227 Entering Passive Mode (xxx,xxx,xxx,xxx,199,37).
150 Opening ASCII mode data connection for file list
-rw-r--r--   1 (?)      (?)             4 Feb 25 09:33  test
226 Transfer complete

ftp> get " test"
local:  test remote:  test
227 Entering Passive Mode (xxx,xxx,xxx,xxx,133,36).
150 Opening BINARY mode data connection for  test (4 bytes)
226 Transfer complete
4 bytes received in 0.000204 secs (19.61 Kbytes/sec)
  
Actual results:

We are can get files starting with space, but can not put them.

Comment 1 Vitaliy Tokarev 2010-02-25 10:06:55 UTC
I did mistake with writing put command. Correct string this:

ftp> put "/home/gav/ test" " test"
local: /home/gav/ test remote:  test
227 Entering Passive Mode (xxx,xxx,xxx,xxx,xxx,219).
150 Opening BINARY mode data connection for  test
226 Transfer complete
4 bytes sent in 5.2e-05 secs (76.92 Kbytes/sec)

So, always is ok. 

Sorry.