Unoffical empeg BBS

Quick Links: Empeg FAQ | RioCar.Org | Hijack | BigDisk Builder | jEmplode | emphatic
Repairs: Repairs

Topic Options
#67752 - 06/02/2002 10:34 Is this an IE bug or a hijack bug?
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
I've got an interesting bug that happens when I use the Hijack FTP features with Internet Explorer.

Note: I have installed the Internet Explorer "browser enhancements" that let it function as a full-featured bidirectional FTP client. I am able to send and receive files to the player through hijack, and because of the HTTP interface, I can also easily make bookmarks to set the player RW and RO. So although everyone's first statement to me will be "use a real FTP client", I just want to say that it's convenient for me to be able to use IE and I would like to continue to do so.

Here is the bug:



The item with the strange name (indicated by the arrow) appears in most (all?) of the folders I browse to. Its name is random, and the randomness seems to come from random snippets of memory or cache from the browser. For instance, I once saw the name contain a large chunk of HTML code from the previously-displayed HTML page.

Where does this garbage item come from, and why does it appear only when I connect to the Hijack FTP server? It does not appear when I connect to other FTP servers.


Attachments
65870-ie_bug.gif (152 downloads)

_________________________
Tony Fabris

Top
#67753 - 06/02/2002 10:43 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
Nosferatu
enthusiast

Registered: 24/08/2001
Posts: 344
Loc: France, Champagne
I tried it and the characters are diifferent for me but take a look at the filesize


Attachments
65873-ftperror.jpg (129 downloads)

_________________________
Empeg IIa - 10 Gb - Red Fascia - Tuner, the day is coming - I Will Strike From the Grey -

Top
#67754 - 06/02/2002 10:43 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
adavidw
addict

Registered: 10/11/2000
Posts: 497
Loc: Utah, USA
Tony,

I've seen this too. If you hit refresh, the item with the garbage name should turn into the folder link to "..". At least that's what it does for me.

This still doesn't explain why on the first access, the ".." directory has a garbage name, though.

-Aaron
_________________________
-Aaron

Top
#67755 - 06/02/2002 10:44 Re: Is this an IE bug or a hijack bug? [Re: Nosferatu]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Right. As I said, the filename is random data from (what I think is) your browser cache. I think the file size is also random data.
_________________________
Tony Fabris

Top
#67756 - 06/02/2002 10:46 Re: Is this an IE bug or a hijack bug? [Re: adavidw]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
If you hit refresh, the item with the garbage name should turn into the folder link to "..". At least that's what it does for me.

This does not happen for me. The file name and icon continues to be random garbage.

Also, in my example screen shot, I was in the root and there should not have been a link to ".."
_________________________
Tony Fabris

Top
#67757 - 06/02/2002 10:48 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
adavidw
addict

Registered: 10/11/2000
Posts: 497
Loc: Utah, USA
It should be pretty easy to tell whether or not it's a kftpd bug by sniffing the FTP connection to see how the directory list comes down the wire. If that directory is sent as "..", but IE displays it as "Throatwarbler Mangrove", then it doesn't seem like it could be a bug in kftpd. If I was near my Windows machine right now, I'd do it myself.

Of course it is possible that Hijack is doing something slightly out of spec with the FTP session. However, that's no excuse for IE's behavior.


-Aaron
_________________________
-Aaron

Top
#67758 - 06/02/2002 10:48 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
peter
carpal tunnel

Registered: 13/07/2000
Posts: 4180
Loc: Cambridge, England
I was in the root and there should not have been a link to ".."

ls -a /

Peter

Top
#67759 - 06/02/2002 10:49 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
adavidw
addict

Registered: 10/11/2000
Posts: 497
Loc: Utah, USA
Oh, yeah. Does it exhibit the same behavior elsewhere (not in /)?

-Aaron
_________________________
-Aaron

Top
#67760 - 06/02/2002 10:53 Re: Is this an IE bug or a hijack bug? [Re: adavidw]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Oh, yeah. Does it exhibit the same behavior elsewhere (not in /)?

Yes. One garbage file seems to appear in each folder, including /.
_________________________
Tony Fabris

Top
#67761 - 06/02/2002 10:54 Re: Is this an IE bug or a hijack bug? [Re: peter]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
ls -a /

Error opening local file /.
> /:Permission denied

_________________________
Tony Fabris

Top
#67762 - 06/02/2002 10:57 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
adavidw
addict

Registered: 10/11/2000
Posts: 497
Loc: Utah, USA
Do you ever get the ".." directory when you're in the non-root directories? Or, do you just get the garbage folder?


-Aaron
_________________________
-Aaron

Top
#67763 - 06/02/2002 11:10 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
While I do not normally help with IE bugs, try this:

[hijack]
kftpd_show_dotdir=1


??

Top
#67764 - 06/02/2002 11:32 Re: Is this an IE bug or a hijack bug? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Do you ever get the ".." directory when you're in the non-root directories? Or, do you just get the garbage folder?

I never get the dotdir. Only the garbage icon.

[hijack]
kftpd_show_dotdir=1


I tried this, and it did not change the behavior.

I was running hijack 179, I will try upgrading to the latest one and see if that helps...
_________________________
Tony Fabris

Top
#67765 - 06/02/2002 11:39 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
I'll change v184 of Hijack to conform more to how other FTP servers operate. The "show_dotdirs" option will also disappear at that time, replaced by "rootdir_dotdot=1" for 100% conformity.

Cheers


Edited by mlord (06/02/2002 11:46)

Top
#67766 - 06/02/2002 11:49 Re: Is this an IE bug or a hijack bug? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
I'll change v184 of Hijack to conform more to how other FTP servers operate.

Cool, I'll just sit and hit refresh on the download page for the next few minutes, then.
_________________________
Tony Fabris

Top
#67767 - 06/02/2002 11:53 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
It's there now.. (you could use the "AutoHijack" notification system..)

Top
#67768 - 06/02/2002 12:16 Re: Is this an IE bug or a hijack bug? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Hmm. With 184, the garbage directory now seems to show up as a single dot. This allows me to keep clicking to get a URL of:

http://empeg/./././././

I still don't get a double dot in the "icons" view. Here is an example...



Any ideas?


Attachments
65921-ie_bug2.gif (120 downloads)

_________________________
Tony Fabris

Top
#67769 - 06/02/2002 12:28 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Well, '.' means "current directory", so if you click on it, that's perfectly valid behaviour (what you reported).

The '..' is probably being hidden by MSIE, since it has the UP-ARROW button above to do the same function.

Cheers

-ml

Top
#67770 - 06/02/2002 12:32 Re: Is this an IE bug or a hijack bug? [Re: mlord]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
I'll update the next version of kftpd to strip redundant "./" sub-elements from the path.

Cheers

Top
#67771 - 06/02/2002 13:10 Re: Is this an IE bug or a hijack bug? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Okay, makes sense.

Oddly, though, I'm still getting garbage icons. Sometimes it's the one-dot, sometimes it's the garbage icon. It's intermittent.

edit: and let me re-iterate that I do not get these garbage icons when I go to my FTP site at my ISP. I get the full explorer-style folder treatment but without either a single-dot nor a double-dot icon, and without the garbage icons.
_________________________
Tony Fabris

Top
#67772 - 06/02/2002 15:16 Re: Is this an IE bug or a hijack bug? [Re: Nosferatu]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Where did you find a Terabyte disk?
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#67773 - 06/02/2002 15:21 Re: Is this an IE bug or a hijack bug? [Re: mlord]
bonzi
pooh-bah

Registered: 13/09/1999
Posts: 2401
Loc: Croatia
Four frigging minutes!!
_________________________
Dragi "Bonzi" Raos Q#5196 MkII #080000376, 18GB green MkIIa #040103247, 60GB blue

Top
#67774 - 06/02/2002 15:50 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
Okay, Tony. Here's the deal:


Your windoze client is apparently dazed and baffled by the appearance of "." and ".." in the FTP directory listings. Some *nix FTP servers always provide them in the listings, and others only provide them when "ls -a" is used ("-a" == display ALL files, otherwise hide anything beginning with a dot).


Hijack currently shows ALL files by default. I will change the behaviour to hide "dot files" unless "-a" is given. That oughta keep your client software from puking all over itself.

v185, in a few minutes (gotta go make the change first).

Cheers

-ml

Top
#67775 - 06/02/2002 16:34 Re: Is this an IE bug or a hijack bug? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
I'm still getting the garbage icon in 185, so at this point I have to assume it's a bug in Internet Explorer. It's probably asking for the dot directories and then not processing them properly when it comes back from your stuff.

I agree that even if your program isn't perfectly following the standards, it's inexcusable for IE to display random garbage in an icon name.
_________________________
Tony Fabris

Top
#67776 - 07/02/2002 14:09 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
ClownBurner
member

Registered: 05/09/2000
Posts: 174
Loc: Irvine, CA USA
It's IE. They have about the worst FTP implementation in creation, because the RFC for FTP doesn't give them enough 'creative license' to munge the thing up, so they have to resort to just using the standard and making that work poorly.

No, I'm not bitter or anything.
_________________________
_____________ James Mancini

Top
#67777 - 07/02/2002 16:01 Re: Is this an IE bug or a hijack bug? [Re: ClownBurner]
ashmoore
addict

Registered: 24/08/1999
Posts: 564
Loc: TX
heh!
According to Bill Gates, that is called "innovation"
_________________________
========================== the chewtoy for the dog of Life

Top
#67778 - 07/02/2002 16:17 Re: Is this an IE bug or a hijack bug? [Re: mlord]
tfabris
carpal tunnel

Registered: 20/12/1999
Posts: 31600
Loc: Seattle, WA
Hey, Mark...

If our theory is correct, that IE is asking for the dotdirs but not displaying them correctly, is it possible for Hijack to have an option that deliberately suppresses the dotdirs, even if the client asks for them?

For example, maybe:

[hijack]
kftpd_show_dotdir=0

Wonder if that would fix it?
_________________________
Tony Fabris

Top
#67779 - 07/02/2002 20:23 Re: Is this an IE bug or a hijack bug? [Re: tfabris]
mlord
carpal tunnel

Registered: 29/08/2000
Posts: 14496
Loc: Canada
No, if the client asks for dotdirs, then Hijack has to pass them on. Otherwise some fool will set the option and then drive me nutty trying to debug his backup/restore problems later on..

-ml

Top