1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

bug in ftp code

Discussion in 'Support' started by drrob1, Jul 6, 2008.

  1. drrob1

    drrob1 Guest

    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. vefatica

    Joined:
    May 20, 2008
    Messages:
    8,053
    Likes Received:
    30
    On Sun, 06 Jul 2008 22:15:27 -0500, you wrote:


    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.
     
  3. samintz

    samintz Scott Mintz

    Joined:
    May 20, 2008
    Messages:
    1,201
    Likes Received:
    11
    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:


     
  4. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,991
    Likes Received:
    84
    drrob1 wrote:

    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. Jim Cook

    Joined:
    May 20, 2008
    Messages:
    604
    Likes Received:
    0
    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:

    --
    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.
     
  6. drrob1

    drrob1 Guest

    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

    extension.

    under




    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
     
  7. drrob1

    drrob1 Guest

    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:

     
  8. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,991
    Likes Received:
    84
    issue w/ ftp code

    drrob1 wrote:

    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
     
  9. drrob1

    drrob1 Guest

    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:

     
  10. drrob1

    drrob1 Guest

    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:

     
  11. logic

    Joined:
    May 30, 2008
    Messages:
    42
    Likes Received:
    0
    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

    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
     
  12. drrob1

    drrob1 Guest

    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:

     
  13. rconn

    rconn Administrator
    Staff Member

    Joined:
    May 14, 2008
    Messages:
    9,991
    Likes Received:
    84
    issue w/ ftp code

    drrob1 wrote:

    See the IFTP /S option.

    Rex Conn
    JP Software
     
  14. David Marcus

    Joined:
    Jun 4, 2008
    Messages:
    649
    Likes Received:
    1
    Re: issue w/ ftp code

    That is part of the ftp server's configuration. Ask the server admin to change it.
     
  15. drrob1

    drrob1 Guest

    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:

     
  16. vefatica

    Joined:
    May 20, 2008
    Messages:
    8,053
    Likes Received:
    30
    issue w/ ftp code

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


    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.
     
  17. logic

    Joined:
    May 30, 2008
    Messages:
    42
    Likes Received:
    0
    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

    [snip]

    [snip]

    Durr? Did you mean to put text into your reply?

    Jonathan Gilbert
     
  18. logic

    Joined:
    May 30, 2008
    Messages:
    42
    Likes Received:
    0
    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

    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
     
  19. K_Meinhard

    Joined:
    May 20, 2008
    Messages:
    312
    Likes Received:
    0
    issue w/ ftp code

    ... and I still get some messages at least twice, e.g. this one.

    Mit freundlichem Gruß,

    Klaus Meinhard
     
  20. vpdura

    Joined:
    Jun 3, 2008
    Messages:
    27
    Likes Received:
    0
    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:


    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.
     

Share This Page