Bug 44241 - Konqueror doesn't handle publicfile's FTP EPLF output
Summary: Konqueror doesn't handle publicfile's FTP EPLF output
Status: CONFIRMED
Alias: None
Product: frameworks-kio
Classification: Frameworks and Libraries
Component: FTP (show other bugs)
Version: unspecified
Platform: Gentoo Packages Linux
: NOR normal
Target Milestone: ---
Assignee: KIO Bugs
URL:
Keywords:
: 98136 102811 126219 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-06-22 16:03 UTC by Malte S. Stretz
Modified: 2021-07-24 13:44 UTC (History)
8 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Malte S. Stretz 2002-06-22 15:53:52 UTC
(*** This bug was imported into bugs.kde.org ***)

Package:           konqueror
Version:           3.0.1 (using KDE 3.0.1 )
Severity:          normal
Installed from:    SuSE
Compiler:          gcc version 2.95.3 20010315 (SuSE)
OS:                Linux (i686) release 2.4.18
OS/Compiler notes: 

According to the FTP RFC the output of the LIST command may be in EBCDIC. There aren't many sites out there running such a server [1] but a friend of mine's got DJB's publicfile [2] running [3] which is one case.

With Konqueror neither can I access the listing nor can I download a file from his server. (This might change as he's currently hacking publicfile's ftpd to return ASCII output.)

Greets
Malte

[1]http://www.google.de/search?q=cache:jxi1pdM366QC:listserver.uk.freebsd.org/pipermail/freebsd-users/2002-February/005296.html+weird+ftp+publicfile+output&hl=de&lr=lang_de|lang_en&ie=UTF-8
[2]http://cr.yp.to/publicfile/
[3]ftp://ftp.soohrt.org

(Submitted via bugs.kde.org)
(Called from KBugReport dialog)
Comment 1 David Faure 2002-10-16 14:26:40 UTC
ftp://ftp.soohrt.org has indeed been changed to output a standard FTP listing    
output. I can't fix this bug then... Any other site that still works in    
EBCDIC?    
    
The given urls in the report seem to have changed too.    
[1] is a completely unrelated message (although it has ebcdic in it)    
[2] says 'file does not exist'  
 
Please reopen if you know another EBCDIC ftp site. 
Comment 2 Malte S. Stretz 2002-10-16 16:05:51 UTC
Try [4]. [2] should have been [5]. Oh, and here's [6] the hack against  
publicfile to make it generate ASCII output, if anybody's interested. 
   
[4]ftp://cr.yp.to   
[5]http://cr.yp.to/publicfile.html   
[6]http://source.soohrt.org/patches/publicfile.patch   
Comment 3 Thiago Macieira 2003-03-22 19:20:18 UTC
Actually, I think the problem is that the output to the LIST command is in EPLF 
format instead of the normal ls -l style. 
 
I'd have to check the RFCs, but I don't believe they mandate a format for the output 
of a LIST command. Maybe at the time there was no software parsing... (RFC 959) 
 
Mozilla can parse the output fine. 
Comment 4 Malte S. Stretz 2004-01-08 16:54:27 UTC
Changing to wishlist.
Comment 5 Malte S. Stretz 2004-05-13 00:49:25 UTC
After all that JJ talk on core-devel I just wanted to drop a note that thanks to coolo's mail I went and coded this feature yesterday night :)

I need to get rid of some rough edges (and grok some of kio_ftp's oddities), then I'll attach the patch to this bug.
Comment 6 Thiago Macieira 2005-03-30 13:30:06 UTC
*** Bug 102811 has been marked as a duplicate of this bug. ***
Comment 7 Thiago Macieira 2005-03-30 13:31:05 UTC
Malte: what is the status on your EPLF patch? Has it been committed? This bug report is still open.

If you don't have the time to sort the rough edges, attach the patch and we'll work on it.
Comment 8 Malte S. Stretz 2005-03-30 13:58:31 UTC
Doh, I completely forgot bout this bug.  I have to look through my harddisk to find the patch again.  The reason why I didn't attach it yet was that I failed to set up a test server with publicfile (at least without having djb all over my system).  Will have a look for the patch the next few days.
Comment 9 Thiago Macieira 2006-03-27 22:09:32 UTC
*** Bug 98136 has been marked as a duplicate of this bug. ***
Comment 10 Thiago Macieira 2006-03-27 22:11:33 UTC
Malte: any news? I'm upgrading this to "bug", since it's the only way we can support FTP servers that don't list directories in the Unix /bin/ls format.
Comment 11 Malte S. Stretz 2006-03-27 23:06:16 UTC
Hmmm... I was sure that I attached the patch, (actually, two patches) to this bug.  Seems like this bug doesn't like me :)  Weird.  Thiago, David, did I maybe send it to some of you directly?  Because I doubt that I still have it on my harddisk.

From my memories, one of the two patches was a rather hackish attempt to hook in the EPLF parsing running, the other one was almost a rewrite of the existing code using QRegExp instead of (deprecated) strtok.  It also included a parsing routine for DOS listings.  I remember that I asked why that code didn't use QRegExp in the first place if there's some rule against using such a "high level" class in kio.
Comment 12 Thiago Macieira 2006-04-02 00:00:18 UTC
I could try scanning my old mailboxes for this, but it won't be easy. I'll let you know if I find it (but I doubt I will).
Comment 13 Malte S. Stretz 2006-04-02 11:41:34 UTC
Its probably easier rewriting the code, it wasnt that much.  To clear this up:  Is there any reason against using QRegExp in KIO?
Comment 14 Tommi Tervo 2006-04-25 14:22:39 UTC
*** Bug 126219 has been marked as a duplicate of this bug. ***