Closed
Bug 100591
Opened 23 years ago
Closed 23 years ago
[pp]Unable to Save an attachment from the twice forwarded mail
Categories
(SeaMonkey :: MailNews: Message Display, defect, P1)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.9
People
(Reporter: marina, Assigned: bugzilla)
References
Details
(Whiteboard: Have fix)
Attachments
(4 files, 4 obsolete files)
1.83 KB,
patch
|
alecf
:
superreview+
|
Details | Diff | Splinter Review |
1.11 KB,
patch
|
mscott
:
superreview+
|
Details | Diff | Splinter Review |
7.46 KB,
patch
|
mscott
:
superreview+
|
Details | Diff | Splinter Review |
855 bytes,
patch
|
mscott
:
superreview+
|
Details | Diff | Splinter Review |
*** observed with 2001-09-19-0.9.4. build *** Steps to reproduce: - compose a mail and forward it to yourself twice; - rightclick on the envelope where the attachment is; - choose "Save as.."; //note: no "Save As " dlgbox is coming up ( this is functionning correctly when the mail is forwarded just once)
Updated•23 years ago
|
i don't think those two bugs are related. Bug 95619 reports a problem with viewing attachments, this one deals with Saving them from the envelope.
Updated•23 years ago
|
Priority: -- → P1
Assignee | ||
Comment 4•23 years ago
|
||
I can still reproduce this problem using today's commercial build. CC'ing mscott
Status: NEW → ASSIGNED
Target Milestone: --- → mozilla0.9.9
Comment 6•23 years ago
|
||
WORKSFORME with today's trunk...
still not working for me with 2002-01-17 build, the Save as... dlgbox doesn't come up.
Assignee | ||
Comment 8•23 years ago
|
||
The save as problem is bug 114473 for which I have a fix...
Assignee | ||
Comment 9•23 years ago
|
||
This problem occurs on Windows only and is due to the fact the name of the attchment contains a column characters: [Fwd:xxxxxxxx]
Summary: Unable to Save an attachment from the twice forwarded mail → [pp]Unable to Save an attachment from the twice forwarded mail
Assignee | ||
Comment 10•23 years ago
|
||
This patch address the generic problem in the filePicker for Window when setting a invalid default file name. The WinAPI is not really frendly in that case! First I added code to correctly detect error with fileName. In the second part, I modified SetDefaultString to truncate fileName when it's too long and to remove illegal characters. That should reduce the change to hit the error I detect in the first part of the patch and therefore avoid use to clear the default name when we can fix it.
Assignee | ||
Comment 11•23 years ago
|
||
I still have more work to do in messenger to prevent problem when using the command save all attachment or when the attachment name contains a platform path separator (\, / or : depending of the platform). cc'ing law and hyatt for the first patch as it's their area.
Comment 12•23 years ago
|
||
Comment on attachment 66820 [details] [diff] [review] Proposed fix for Widget, v1 r=law Definitely a good feature to avoid problems with screwy urls that get into the file picker. Thanks.
Attachment #66820 -
Flags: review+
Assignee | ||
Comment 13•23 years ago
|
||
This patch address problem saving or opening an attachment which the name contains a path separator. The easy way to reproduce this problem is to send a document (MS Word by example) from a Mac with the following name: "apple\ibm.doc" and try to open it on Windows.
Assignee | ||
Updated•23 years ago
|
Attachment #66820 -
Attachment description: Proposed fix for Widget → Proposed fix for Widget, v1
Assignee | ||
Comment 14•23 years ago
|
||
This patch will sanitize file name when the user save an attachment to disk from the Message Display window/pane.
Assignee | ||
Updated•23 years ago
|
Attachment #66939 -
Attachment description: Proposed fix for mailnews/base → Proposed fix for mailnews/base, v1
Assignee | ||
Comment 15•23 years ago
|
||
With those 3 fixes, we are now able to save/display/open any attachment, whatever the origin platform of this one.
Whiteboard: Have fix
Assignee | ||
Comment 16•23 years ago
|
||
*** Bug 33567 has been marked as a duplicate of this bug. ***
Comment 17•23 years ago
|
||
Comment on attachment 66934 [details] [diff] [review] Proposed fix for URILoader, v1 r=law
Attachment #66934 -
Flags: review+
Comment 18•23 years ago
|
||
*** Bug 123133 has been marked as a duplicate of this bug. ***
Comment 19•23 years ago
|
||
Comment on attachment 66934 [details] [diff] [review] Proposed fix for URILoader, v1 It's a shame we can't put this in an inline global xpcom or string routine instead of repeating it twice in this file and once more in mail. sr=mscott
Attachment #66934 -
Flags: superreview+
Updated•23 years ago
|
Attachment #66939 -
Flags: superreview+
Comment 20•23 years ago
|
||
Comment on attachment 66939 [details] [diff] [review] Proposed fix for mailnews/base, v1 sr=mscott for most of the changes in this file. However as I mentioned in the last patch, it might be worth looking to see if we could use a global routine or maybe a global MACRO in nsCRT.h which defines the path separators on each platform. i.e. in nsCRT.h, how about adding below: #define CRSTR "\015" #define LFSTR "\012" #define CRLF "\015\012" /* A CR LF equivalent string */ the following: #define PATH_SEPARATOR where the value is defined based on the platform #if defined (XP_MAC) #define PATH_SEPARATORS ":" #else if defined (XP_WIN) #define PATH_SEPARATORS "\\/:*?\" etc. what do you think?
Assignee | ||
Comment 21•23 years ago
|
||
PATH_SEPARATORS "\\/:*?\" The only patch separator for windows is \, others are just illegal characters! Also the patch in mailnews is a little bit different than in the others module. Sure I am duplication code but as it was just a line (per platform), I did not feel the need to have a have a macro of a function. If we need this stuff in more places, then sure, a macro/function would be justified!
Comment 22•23 years ago
|
||
Comment on attachment 66939 [details] [diff] [review] Proposed fix for mailnews/base, v1 I couldn't tell how your macros were different in the uriloader vs. in mail? They looked identical to me. We don't have to call it platform separator, it can be called something different. But if we add a #define to nsCRT.h where we define line feeds & the like (or we could add it to nsIFile.h), then your code goes from: +#if defined(XP_MAC) + ucs2Str.ReplaceChar(':', '-'); +#elif defined(XP_WIN) || defined(XP_OS2) + ucs2Str.ReplaceChar("\\/:*?\"<>|", '_'); +#elif (defined(XP_UNIX) || defined(XP_BEOS) + ucs2Str.ReplaceChar('/', '_'); +#endif in 3 separate places to just someString.ReplaceChar(THE_PLATFORM_SPECIFIC_DEFINE, '_'); which is much easier to read and then we aren't copying the platform values in 3 separate places. It'll be easier to maintain if any of them change.
Comment 23•23 years ago
|
||
Comment on attachment 66939 [details] [diff] [review] Proposed fix for mailnews/base, v1 r=cavin.
Attachment #66939 -
Flags: review+
Comment 24•23 years ago
|
||
Comment on attachment 66939 [details] [diff] [review] Proposed fix for mailnews/base, v1 taking back the sr till we work out the #define issue.
Attachment #66939 -
Flags: superreview+
Assignee | ||
Comment 25•23 years ago
|
||
I'll rework on this fix once I checked in the fix for bug 122815 as that will create couple merge conflict...
Assignee | ||
Comment 26•23 years ago
|
||
I added defines for the path separator and illegal characters for each platform
Assignee | ||
Comment 27•23 years ago
|
||
Attachment #66820 -
Attachment is obsolete: true
Assignee | ||
Comment 28•23 years ago
|
||
the only change in the widget patch is the use of the new defined FILE_ILLEGAL_CHARACTERS.
Assignee | ||
Comment 29•23 years ago
|
||
the only change in the uriloader patch is the use of the new defined FILE_ILLEGAL_CHARACTERS and FILE_PATCH_SEPARATOR.
Attachment #66934 -
Attachment is obsolete: true
Assignee | ||
Comment 30•23 years ago
|
||
I rewrote a little bit this part of the fix to use the new defines and solve merge conflict with the another fix I checked in about truncating filename on Mac. Also I mofified an exixting function in nsMsgUtils.cpp which was filtering illegal characters. You will remark that the original code was removing more characters that I do now, this because it was made to work also on Window 3.1 which we are not supporting anymore :-)
Attachment #66939 -
Attachment is obsolete: true
Comment 31•23 years ago
|
||
Comment on attachment 68574 [details] [diff] [review] proposed fix, v2 (xpcom/io part) sr=mscott. Be sure to get module owner approval for this change though (I'd try dougt). I think this is the right place to put these defines though.
Attachment #68574 -
Flags: superreview+
Comment 32•23 years ago
|
||
Comment on attachment 68579 [details] [diff] [review] Proposed fix, v2 (uriloader part) sr=mscott
Attachment #68579 -
Flags: superreview+
Updated•23 years ago
|
Attachment #68583 -
Flags: superreview+
Comment 33•23 years ago
|
||
Comment on attachment 68583 [details] [diff] [review] Proposed fix, v2 (mailnews part) sr=mscott
Updated•23 years ago
|
Attachment #68576 -
Flags: superreview+
Comment 34•23 years ago
|
||
Comment on attachment 68576 [details] [diff] [review] Proposed fix, v2 (widget part) seems reasonable. sr=alecf
Assignee | ||
Comment 35•23 years ago
|
||
Comment on attachment 68574 [details] [diff] [review] proposed fix, v2 (xpcom/io part) I have added the needed defines into nsCRT.h
Attachment #68574 -
Attachment is obsolete: true
Assignee | ||
Comment 36•23 years ago
|
||
I moved the needed defines from nsILocalFiles.idl to nsCRT.h as requested by reviewer.
Comment 37•23 years ago
|
||
Comment on attachment 68911 [details] [diff] [review] Proposed fix, v2 (xpcom/ds part) sr=mscott
Attachment #68911 -
Flags: superreview+
Assignee | ||
Comment 38•23 years ago
|
||
Fixed and checked in
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Comment 39•23 years ago
|
||
verified on mozilla & netscape trunk 2002022703 builds
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: Browser → Seamonkey
You need to log in
before you can comment on or make changes to this bug.
Description
•