Closed
Bug 402298
Opened 17 years ago
Closed 17 years ago
Random base64 file names can contain '/'
Categories
(Core Graveyard :: File Handling, defect)
Core Graveyard
File Handling
Tracking
(Not tracked)
RESOLVED
FIXED
mozilla1.9beta1
People
(Reporter: Mardak, Assigned: Mardak)
References
Details
(Keywords: regression)
Attachments
(1 file)
872 bytes,
patch
|
jst
:
review+
jst
:
superreview+
|
Details | Diff | Splinter Review |
Base64 has alphanumeric and '+' and '/'. This causes problems with CreateUnique after setting the leafName.
Flags: blocking1.9?
Assignee | ||
Comment 1•17 years ago
|
||
Oh, for those curious, this results in the temporary file downloads to be <parent directory>-1
e.g.,
windows: c:\doc..local settings\Temp-1, Temp-2, etc
os x: /Users/Ed/Desktop-1
Assignee | ||
Comment 2•17 years ago
|
||
he he he...
[11/02/2007 14:39:12] <Mardak> unless there's some non-determinism [...] i would assume it gives the same results each time
I guess we know where the non-determinism is coming from ;)
1 illegal character out of 64.. picking 8 characters: probability of a filename without an illegal character: (63/64)^8 = 88% of the time -> one in 8.4 downloads.
Assignee | ||
Comment 3•17 years ago
|
||
die slash die.
Assignee: nobody → edilee
Status: NEW → ASSIGNED
Attachment #287186 -
Flags: superreview?(cbiesinger)
Attachment #287186 -
Flags: review?(cbiesinger)
Comment 4•17 years ago
|
||
This should block due to the issues it causes.
Target Milestone: --- → mozilla1.9 M9
Comment 5•17 years ago
|
||
Yes, this is needed to fully resolve an existing blocker.
Flags: blocking1.9? → blocking1.9+
Comment 6•17 years ago
|
||
Comment on attachment 287186 [details] [diff] [review]
v1
r+sr=jst to get this in for beta.
Attachment #287186 -
Flags: superreview?(cbiesinger)
Attachment #287186 -
Flags: superreview+
Attachment #287186 -
Flags: review?(cbiesinger)
Attachment #287186 -
Flags: review+
Assignee | ||
Comment 7•17 years ago
|
||
Checking in uriloader/exthandler/nsExternalHelperAppService.cpp;
/cvsroot/mozilla/uriloader/exthandler/nsExternalHelperAppService.cpp,v <-- nsExternalHelperAppService.cpp
new revision: 1.355; previous revision: 1.354
done
I suppose for a testcase, we would have to generate a large number of calls to SetUpTempFile and see if any randomly turn out to be "Desktop-1" or "Temp-1" instead of "<file>.<ext>.part".
For litmus.. "start a bunch of open-with downloads and see if they create a the correct temporary file"
Status: ASSIGNED → RESOLVED
Closed: 17 years ago
Flags: in-testsuite?
Flags: in-litmus?
Keywords: regression
Resolution: --- → FIXED
Updated•8 years ago
|
Product: Core → Core Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•