[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Bug#2422: marked as done (kfm (kioslave) returns blank with WinNT ftp server)
From:       owner () bugs ! kde ! org (Stephan Kulow)
Date:       2000-01-20 14:03:01
[Download RAW message or body]

Your message dated Thu, 20 Jan 2000 13:58:41 -0000
with message-id <BA2BC8DF4A1BD311BE300090277B71EF2229F8@S1>
and subject line kfm (kioslave) returns blank with WinNT ftp server
has caused the attached bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Stephan Kulow
(administrator, KDE bugs database)

Received: (at submit) by bugs.kde.org; 14 Dec 1999 19:05:20 +0000
From Keith.Refson@earth.ox.ac.uk Tue Dec 14 20:05:20 1999
Received: from darwin.earth.ox.ac.uk ([163.1.22.6]:57496 "EHLO earth.ox.ac.uk")
	by max.tat.physik.uni-tuebingen.de with ESMTP id <S743071AbPLNTFF>;
	Tue, 14 Dec 1999 20:05:05 +0100
Received: from metropolis.earth.ox.ac.uk (metropolis [163.1.22.59])
	by earth.ox.ac.uk (8.9.3+Sun/8.9.1) with ESMTP id TAA23050
	for <submit@bugs.kde.org>; Tue, 14 Dec 1999 19:05:04 GMT
From:   Keith Refson <Keith.Refson@earth.ox.ac.uk>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-ID: <14422.38110.797820.798437@gargle.gargle.HOWL>
Date:   Tue, 14 Dec 1999 19:05:02 +0000 (GMT)
To:     submit@bugs.kde.org
Subject: kfm (kioslave) returns blank with WinNT ftp server
X-Mailer: VM 6.75 under 20.4 "Emerald" XEmacs  Lucid
Return-Path: <Keith.Refson@earth.ox.ac.uk>
X-Orcpt: rfc822;submit@bugs.kde.org

Package:kdebase
Version:1.1.2
Program:kioslave

Platform: Solaris 7 (but bug is general)

When I attempted to access out Windows NT ftp server using kfm, the
screen was blank and showed no files.   Access from command-line ftp
was fine.

Further investigation revealed that this was caused by

1) kioslave tried to set the ftp server into "unix" ls -l listing mode 
   using the "site dirstyle" command.

2) The server is somehow ALREADY configured to give unix-style
   directory listings.

3) kioslave actually toggled it back to MS-DOS style, and hence could
   not parse the output.

Here's a patch which I have tested and demonstrated to work.  It just
checks the output and reverses its error if it made one.

*** kdebase-1.1.2/kfm/kioslave/ftp.cpp  Tue Dec 14 18:43:02 1999
--- kdebase-1.1.2/kfm/kioslave/ftp.cpp~ Thu May 20 19:50:43 1999
***************
*** 232,243 ****
          // Okay, we're logged in. If this is IIS 4, switch dir listing style t
o Unix:
          if( ftpSendCmd( "syst", '2' ) )
              if( !strncmp( rspbuf, "215 Windows_NT version", 22 ) ) // will do
for any version
!           {
!              ftpSendCmd( "site dirstyle", '2' );
!              if( !strncmp( rspbuf, "200 MSDOS-like directory output is off", 2
2 ) )//It was in Unix style already!
!                 ftpSendCmd( "site dirstyle", '2' );
!
!           }
          if( redirect == 0L )
              return 1;

--- 232,239 ----
          // Okay, we're logged in. If this is IIS 4, switch dir listing style t
o Unix:
          if( ftpSendCmd( "syst", '2' ) )
              if( !strncmp( rspbuf, "215 Windows_NT version", 22 ) ) // will do
for any version
!                 ftpSendCmd( "site dirstyle", '2' );

!
          if( redirect == 0L )
              return 1;                 

------------------------

sincerely

Keith Refson

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic