Closed Bug 213628 Opened 23 years ago Closed 19 years ago

Mozilla uploads wrong / empty file / does not upload file when filename or pathname includes no-break space ASCII character 160 ( )

Categories

(Core :: DOM: Core & HTML, defect)

x86
Windows XP
defect
Not set
critical

Tracking

()

RESOLVED FIXED

People

(Reporter: megabyte, Unassigned)

References

Details

(Keywords: dataloss)

When trying to submit an attachment to a bug, Bugzilla kept telling me that the file I submitted was empty. I finally narrowed it down to the pathname. The file was in "My Documents" directory, and my profile is named "Aaron. " since my computer name is the no-break space, ASCII character 160. Upon futher testing, I found that the same thing would happen if this character was anywhere in the path or filename. I tried other extended ASCII characters, but they worked. It seems like Mozilla is escaping this character as a regular space and is trying to upload a file from a place that doesn't exist resulting in dataloss. To test this theory, I tried creating a file with the same name except with a regular space in the name and then attempted to upload the file with the no-break space. Mozilla appeared to upload the file with the regular space instead. IE works fine. Firebird 20030714/WinXP.
Bug confirmed with Firebird 0.7+ 20031106 I tried to upload a file which filename containes à no-break space. I got an error when uploading. I submitted a patch for bug 218277 which also corrects this bug : I did the same test with my own Mozilla modified version, and the upload worked fine. bug 195946 is also concerned.
Depends on: 218277
*** Bug 278897 has been marked as a duplicate of this bug. ***
The same result seems to occur with ASCII 255 in the file name--a 0-length file is sent. But looking at bug #218277 it seems that the cause of this must be coming from completely different code than the ASCII 160 problem.
*** Bug 310476 has been marked as a duplicate of this bug. ***
hmm, this bug is marked "critical", dataloss, and affects all mozilla products. why hasn't it been fixed? a patch to fix this was available over two years ago.
This should be fixed on trunk now that bug 218277 has been checked in. Reporter, can you verify (with a Minefield or trunk Seamonkey build)?
Status: NEW → RESOLVED
Closed: 19 years ago
Resolution: --- → FIXED
works fine with Mozilla/5.0 (Macintosh; U; PPC Mac OS X Mach-O; en-US; rv:1.9a1) Gecko/20061121 Minefield/3.0a1. apologies for the bugspam.
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.