Closed Bug 38572 Opened 26 years ago Closed 26 years ago

cannot download file of type .zip from ftp directory tree

Categories

(Core :: Networking, defect, P3)

x86
Windows NT
defect

Tracking

()

VERIFIED WORKSFORME

People

(Reporter: tever, Assigned: mscott)

References

()

Details

(Whiteboard: [nsbeta2+] ETA? (this works for me))

Overview Description: Cannot download a file of type .zip from ftp tree. Steps to Reproduce: 1.) Go to URL above 2.) Select a zip file to download Actual Results: File does not download, busy bar remains busy. Expected Results: File should download Build Date & Platform Bug Found: NT 2000050808 Additional Information: Other file types download fine. Text files are opening normally. This is different from bug 38187 in that it is specific to zip files.
Keywords: nsbeta2
This is not a front-end issue if it's specific to file type. To verify, you could try typing in the URL to the zip file directly (or just clicking on the "URL" link in this bug). -> networking
Assignee: waterson → gagan
Component: XP Toolkit/Widgets: Trees → Networking
QA Contact: jrgm → tever
hmm, I think there's a lot of stuff going on here. For starters, the mime service isn't working properly (re-assigning to davidm). If you break where FTP asks the mime service for the mime type based on file extension (http://lxr.mozilla.org/seamonkey/source/netwerk/protocol/ftp/src/nsFTPChannel.c pp#420) in nsFTPChannel::GetcontentType(), that call fails, even though it should return "application/zip". However, fixing the mime service will fix this case, but unknown content type handling is broken in general. I've filed 38960 for this.
Assignee: gagan → davidm
Whats wrong with the mime service? As zip isn't defines ( at least in my build ) I would expect it to return an error. What am I missing? Do you expect me to return a mapper for application/octect-stream?
you're right, my fault. I assumed zip was mapped, so the real problem here is the new bug I opened, marking this a dupe. *** This bug has been marked as a duplicate of 38960 ***
Status: NEW → RESOLVED
Closed: 26 years ago
Resolution: --- → DUPLICATE
verified DUP
Status: RESOLVED → VERIFIED
I'm reopening this. It seems to be broken still (I tried a recent build on Win98). The bug it is supposedly a duplicate has been resolved. That bug dealt with the issue of content with *no* content-type at all. This one deals with content of type "application/zip" (at least I think so).
Status: VERIFIED → REOPENED
Resolution: DUPLICATE → ---
Putting on [nsbeta2+] radar for beta2 fix. Reassigning to gagan
Assignee: davidm → gagan
Status: REOPENED → NEW
Whiteboard: [nsbeta2+]
Not that 40558 is a dupe of this bug, even though it was marked dupe of 38960. The bug report there describes clearly thatthe problem is not happening for other mime types or for http download (try dling a nightly from ftp.mozilla.org). That bug seems to be really specific to .zip via ftp.
Jud: Is there any suggestions/pointers that you can provide? I am trying to look at it but haven't had much success in understanding all the pieces inside FTP. Thanks!
this is actually a problem w/ the unknowntype decoder and how it's interracting w/ the uri loader. .zip's work w/ HTTP because HTTP gives it a content type (usually application/zip) so the unknown decoder (which does byte scanning) doesn't get envoked. But, because FTP doesn't have a notion of content types, it calls .zips "unknown" which causes the uri loader to push it through the unknown decoder. It's looking like the chain is breaking or going recursive or soemthing.
ccing mscott since it looks like this might be his bug.
Assigning to mscott to catch his attention. mscott: I am at a complete loss of understanding on how this could be happening, but jud's comments indicate that this might be related to your area of expertise.
Assignee: gagan → mscott
gagan do you actually see this problem? I'm not able to reproduce this at all. I'm able to download the latest .zip for seamonkey off of sweetlou using a 7/11 build without any problems. The unknown content dialog comes up and asks me if I want to save the content. I say I do, specify a file and it gets downloaded. Has anyone else tried this recently?
This works for me. If no one else can reproduce it by tonight I'm going to mark it as such so PDT doesn't beat me over the head for having too many nsbeta2 bugs. =)
Whiteboard: [nsbeta2+] → [nsbeta2+] ETA? (this works for me)
yeah, this is working now. WFM
Status: NEW → RESOLVED
Closed: 26 years ago → 26 years ago
Resolution: --- → WORKSFORME
verif. Win NT 2000071108
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.