bug in ftp code

  • This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.
D

drrob1

Guest
#1
I have been puzzling over this for a while before I identified it. It
exists in tcmd 7, 8 and 9 up to build 151.

iftp
dir /o:-d /p ftp:

It will not list filenames that are 1 letter long before an extension.
For example, I have a file j.mdb that will not show on the above
listing. It is there if I do dir ftp:j* and it shows correctly under
ws_ftp.

I don't know what else to post to better define this.

PS: This is my first posting w/ the new interface; I hope it works
<cross fingers>
 
#2
On Sun, 06 Jul 2008 22:15:27 -0500, you wrote:


>iftp
>dir /o:-d /p ftp:
>
>It will not list filenames that are 1 letter long before an extension.
>For example, I have a file j.mdb that will not show on the above
>listing. It is there if I do dir ftp:j* and it shows correctly under
>ws_ftp.
It's OK here using TCC 9.02.151 (also 4NT 8.02.106).

v:\> iftp ftp://lucky.syr.edu

v:\> dir /o:-d /p ftp:

Directory of ftp://lucky.syr.edu/*

2008-07-06 23:24 <DIR> ..
2008-07-06 23:24 <DIR> .
2008-07-06 23:30 0 j.mdb
2008-07-06 23:24 0 a.txt
[snip]

The server is Serv-U 6.4.0.4 Corporate Edition.
 

samintz

Scott Mintz
May 20, 2008
1,227
11
Solon, OH, USA
#3
If you use the /V option of IFTP you can record all the information
exchanged between TCC and your FTP server.

-Scott

drrob1 <> wrote on 07/06/2008 11:15:27 PM:


> I have been puzzling over this for a while before I identified it. It
> exists in tcmd 7, 8 and 9 up to build 151.
>
> iftp
> dir /o:-d /p ftp:
>
> It will not list filenames that are 1 letter long before an extension.
> For example, I have a file j.mdb that will not show on the above
> listing. It is there if I do dir ftp:j* and it shows correctly under
> ws_ftp.
>
> I don't know what else to post to better define this.
>
> PS: This is my first posting w/ the new interface; I hope it works
>
>
 

rconn

Administrator
Staff member
May 14, 2008
10,158
86
#4
drrob1 wrote:

> I have been puzzling over this for a while before I identified it. It
> exists in tcmd 7, 8 and 9 up to build 151.
>
> iftp
> dir /o:-d /p ftp:
>
> It will not list filenames that are 1 letter long before an extension.
> For example, I have a file j.mdb that will not show on the above
> listing. It is there if I do dir ftp:j* and it shows correctly under
> ws_ftp.
>
> I don't know what else to post to better define this.
Not reproducible here -- do you have an alias for DIR?

What kind of FTP server are you accessing (i.e., is it a Linux/UNIX or
Windows system)?

Is this reproducible on all ftp servers or just one?

Rex Conn
JP Software
 
#5
I can not reproduce it on either my Linux FTP server nor my Windows one.

On Mon, Jul 7, 2008 at 7:01 AM, rconn <> wrote:

> drrob1 wrote:
>
> Quote:
>> I have been puzzling over this for a while before I identified it. It
>> exists in tcmd 7, 8 and 9 up to build 151.
>>
>> iftp
>> dir /o:-d /p ftp:
>>
>> It will not list filenames that are 1 letter long before an extension.
--
2008 Fridays: 4/4, 6/6, 8/8, 10/10, 12/12 and 5/9, 9/5, 7/11, 11/7.
Next year they're Saturday.
Measure wealth by the things you have for which you would not take money.
 
D

drrob1

Guest
#6
As no one else can duplicate it, I may be having another difficulty.
dir is not aliased.

I'll post back if I find out anything useful.

PS: It's good the email interface works; but I do miss the old
sparklist.

rconn wrote:




drrob1 wrote:


Quote:



> I have been
puzzling over this for a while before I identified it. It

> exists in tcmd 7, 8 and 9 up to build 151.
>
> iftp
> dir /o:-d /p ftp:
>
> It will not list filenames that are 1 letter long before an
extension.

> For example, I have a file j.mdb that will not show on the above
> listing. It is there if I do dir ftp:j* and it shows correctly
under

> ws_ftp.
>
> I don't know what else to post to better define this.



Not reproducible here -- do you have an alias for DIR?

What kind of FTP server are you accessing (i.e., is it a Linux/UNIX or
Windows system)?

Is this reproducible on all ftp servers or just one?

Rex Conn
JP Software
 
D

drrob1

Guest
#7
issue w/ ftp code

I have noticed a common thread that is a problem for me. When I do a
dir ftp: (or especially dir /o:-d /p ftp:) I do not see filenames that
begin with a lower case letter. The server I use is linux based, and
the case-sensitive filenames of linux can be a PITA. I do not have an
alias for dir, and do not have any plugins. Tcmd does not show these in
a wildcard listing. If I query with a pattern that begins with a lower
case letter, that works and shows the files properly. Only using a
general wildcard does not work. I know linux itself sorts upper case
letters ahead of lower case letters, so I am wondering if this is a
reproducible problem when a server has filesnames that begin with
uppercase and others that begin with lower case.

If the server is mis-configured, it would help me to know how to address
this w/ the host company.

--rob

rconn wrote:

> drrob1 wrote:
>
> Quote:
> > I have been puzzling over this for a while before I identified it. It
> > exists in tcmd 7, 8 and 9 up to build 151.
> >
> > iftp
> > dir /o:-d /p ftp:
> >
> > It will not list filenames that are 1 letter long before an extension.
> > For example, I have a file j.mdb that will not show on the above
> > listing. It is there if I do dir ftp:j* and it shows correctly under
> > ws_ftp.
> >
> > I don't know what else to post to better define this.
>
> Not reproducible here -- do you have an alias for DIR?
>
> What kind of FTP server are you accessing (i.e., is it a Linux/UNIX or
> Windows system)?
>
> Is this reproducible on all ftp servers or just one?
>
> Rex Conn
> JP Software
>
>
 

rconn

Administrator
Staff member
May 14, 2008
10,158
86
#8
issue w/ ftp code

drrob1 wrote:

> I have noticed a common thread that is a problem for me. When I do a
> dir ftp: (or especially dir /o:-d /p ftp I do not see filenames that
> begin with a lower case letter.
Not reproducible here. Is this with one specific server or multiple
ones? Is there one I can access to test/debug?

Rex Conn
JP Software
 
D

drrob1

Guest
#9
issue w/ ftp code

I was hoping someone here knew what would cause such behavior. I have
been able to demonstrate it to myself using FileZilla and ws_ftp, so I
know it is not only tcmd. I have a support ticket into the host,
totalchoicehosting, as I know it is not a problem w/ only one ftp pgm.

--rob

On Sun, 2008-09-28 at 17:52 -0500, rconn wrote:

> drrob1 wrote:
>
> Quote:
> > I have noticed a common thread that is a problem for me. When I do a
> > dir ftp: (or especially dir /o:-d /p ftp I do not see filenames that
> > begin with a lower case letter.
> Not reproducible here. Is this with one specific server or multiple
> ones? Is there one I can access to test/debug?
>
> Rex Conn
> JP Software
>
>
>
 
D

drrob1

Guest
#10
issue w/ ftp code

I have found the answer to my troubles. The ftp protocol lists up to
2000 files and the target dir had more, so the bottom (lower case) files
were not being transmitted.

Does anyone know if this can be increased by setting a parameter or
something like that?

--rob


On Sun, 2008-09-28 at 18:57 -0500, drrob1 wrote:

> I was hoping someone here knew what would cause such behavior. I have
> been able to demonstrate it to myself using FileZilla and ws_ftp, so I
> know it is not only tcmd. I have a support ticket into the host,
> totalchoicehosting, as I know it is not a problem w/ only one ftp pgm.
>
> --rob
 
May 30, 2008
42
0
#11
issue w/ ftp code

From: JP Software Forums [mailto:neil@jpsoft.com]
Sent: Sunday, September 28, 2008 9:07 PM
Subject: RE: [Support-t-280] issue w/ ftp code

>
> I have found the answer to my troubles. The ftp protocol lists up to
> 2000 files and the target dir had more, so the bottom (lower case) files
> were not being transmitted.
>
> Does anyone know if this can be increased by setting a parameter or
> something like that?
There is nothing in the FTP protocol that limits file listings to 2,000
files. I regularly list directories with more than 2,000 files without
issue. If you're experiencing problems with multiple clients, then there are
only two possibilities:

1) A proxy or NAT firewall between you and the server can't handle more than
2,000 files.
2) The server is intentionally stopping after 2,000 files.

Find another FTP site run by a different host and see if it exhibits the
same problem. If so, it's probably the first possibility. If not (and I
think this more likely), then it is the FTP server misbehaving (perhaps
configured to do so? for instance, see:
http://www.webmasterworld.com/forum40/1504.htm).

Jonathan Gilbert
 
D

drrob1

Guest
#12
issue w/ ftp code

Does tcmd allow me to enter a command to be executed on the remote
host. That is, right now if I type "dir", that is likely translated to
a linux command. I want the remote site to do "ls -lth". Can I do that?

logic wrote:

> From: JP Software Forums [mailto:neil@jpsoft.com]
> Sent: Sunday, September 28, 2008 9:07 PM
> Subject: RE: [Support-t-280] issue w/ ftp code
>
> Quote:
> >
> > I have found the answer to my troubles. The ftp protocol lists up to
> > 2000 files and the target dir had more, so the bottom (lower case) files
> > were not being transmitted.
> >
> > Does anyone know if this can be increased by setting a parameter or
> > something like that?
>
> There is nothing in the FTP protocol that limits file listings to 2,000
> files. I regularly list directories with more than 2,000 files without
> issue. If you're experiencing problems with multiple clients, then
> there are
> only two possibilities:
>
> 1) A proxy or NAT firewall between you and the server can't handle
> more than
> 2,000 files.
> 2) The server is intentionally stopping after 2,000 files.
>
> Find another FTP site run by a different host and see if it exhibits the
> same problem. If so, it's probably the first possibility. If not (and I
> think this more likely), then it is the FTP server misbehaving (perhaps
> configured to do so? for instance, see:
> http://www.webmasterworld.com/forum40/1504.htm).']http://www.webmasterworld.com/forum40/1504.htm).']http://www.webmasterworld.com/forum40/1504.htm).[/URL][/URL]
>
> Jonathan Gilbert
>
 
#14
Re: issue w/ ftp code

I have found the answer to my troubles. The ftp protocol lists up to
2000 files and the target dir had more, so the bottom (lower case) files
were not being transmitted.

Does anyone know if this can be increased by setting a parameter or
something like that?
That is part of the ftp server's configuration. Ask the server admin to change it.
 
D

drrob1

Guest
#15
issue w/ ftp code

I tried iftp /s ls -lth and got an unknown command error. And I got the
same error w/ iftp /s ls

What am I doing wrong?

On Mon, 2008-09-29 at 08:01 -0500, rconn wrote:

> drrob1 wrote:
>
> Quote:
> > Does tcmd allow me to enter a command to be executed on the remote
> > host. That is, right now if I type "dir", that is likely translated
> to
> > a linux command. I want the remote site to do "ls -lth". Can I do
> that?
> See the IFTP /S option.
>
> Rex Conn
> JP Software
 
#16
issue w/ ftp code

On Tue, 30 Sep 2008 13:30:15 -0500, "JP Software Forums"
<neil@jpsoft.com>,drrob1 <> wrote:


>I tried iftp /s ls -lth and got an unknown command error. And I got the
>same error w/ iftp /s ls
>
>What am I doing wrong?
You can't execute any OS command, only FTP commands. HELP should tell you what
commands are available (see below, Serv-U server). Furthermore, executing LIST
involves much more than just issuing the command (to open a data channel for the
dir listing); I doubt you'll be able to do it manually. Even if the server
recognized LS, it may not recognize options, and you'd certainly run into the
problems with the data channel.


v:\> iftp /s help
help
214-The following commands are recognized.
ABOR ACCT ALLO APPE CDUP CWD DELE EPRT EPSV FEAT HELP LIST MDTM MKD
MODE NLST NOOP OPTS PASS PASV PORT PWD QUIT REIN REST RETR RMD RNFR
RNTO SITE SIZE SMNT STAT STOR STOU STRU SYST TYPE USER XCUP XCWD XMKD
XPWD XRMD
214 Help OK.
 
May 30, 2008
42
0
#17
issue w/ ftp code

From: JP Software Forums [mailto:neil@jpsoft.com]
Sent: Friday, October 03, 2008 9:32 AM
Subject: RE: [Support-t-280] issue w/ ftp code

>
> From: JP Software Forums [mailto:neil@jpsoft.com]
> Sent: Sunday, September 28, 2008 9:07 PM
> Subject: RE: [Support-t-280] issue w/ ftp code
>
[snip]

> There is nothing in the FTP protocol that limits file listings to 2,000
> files. I regularly list directories with more than 2,000 files without
[snip]

> configured to do so? for instance, see:
> http://www.webmasterworld.com/forum40/1504.htm)
>
> Jonathan Gilbert
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
> Rex Conn
> JP Software
Durr? Did you mean to put text into your reply?

Jonathan Gilbert
 
May 30, 2008
42
0
#18
issue w/ ftp code

From: JP Software Forums [mailto:neil@jpsoft.com]
Sent: Monday, October 06, 2008 6:53 PM
Subject: RE: [Support-t-280] issue w/ ftp code

>
> From: JP Software Forums [mailto:neil@jpsoft.com]
> Sent: Friday, October 03, 2008 9:32 AM
> Subject: RE: [Support-t-280] issue w/ ftp code
>
> > From: JP Software Forums [mailto:neil@jpsoft.com]
> > Sent: Sunday, September 28, 2008 9:07 PM
> > Subject: RE: [Support-t-280] issue w/ ftp code
> >
> [snip]
> > There is nothing in the FTP protocol that limits file listings to 2,000
> > files. I regularly list directories with more than 2,000 files without
> [snip]
> > configured to do so? for instance, see:
> > http://www.webmasterworld.com/forum40/1504.htm
> >
> > Jonathan Gilbert
> >
> >
> Rex Conn
> JP Software
Once again I see no text here at all. I presume if I were to log into the
forum interface I would see something?

I continue to be rather unimpressed by the new forum system... I agree with
all the complaints other members have as well, *especially* regarding the
duplicate 'From:' fields. I have reviewed RFC2822, and I am fairly certain
that a message with multiple 'From:' headers is malformed. Note how Outlook
2000 perceived the messages on this forum -- see the 'From:' quotations at
the top of this message. I'm also rather unhappy about the way vBulletin
insists on reformatting my e-mail using silly tags for things like
quotations and URLs.

Has it really been less trouble for you than SparkList was?

Jonathan Gilbert
 
Jun 3, 2008
27
0
#20
issue w/ ftp code

On Tue, 07 Oct 2008 18:23:42 -0500, "JP Software Forums"
<neil@jpsoft.com>,logic <> wrote Re RE:
[Support-t-280] issue w/ ftp code:


>I continue to be rather unimpressed by the new forum system...
Quite so. IMO a yahoo group: http://groups.yahoo.com/ would be
better.
--
At first they laugh at you, then they ignore you, then they fight you, then you win.