Closed
Bug 75449
Opened 23 years ago
Closed 23 years ago
Attachment name is garbled when attachment is forwarded inline
Categories
(MailNews Core :: Internationalization, defect, P2)
Tracking
(Not tracked)
VERIFIED
FIXED
mozilla0.9.2
People
(Reporter: marina, Assigned: vparthas)
References
Details
(Keywords: regression, Whiteboard: [nsbeta1+][PDT+])
Attachments
(8 files)
91.12 KB,
image/jpeg
|
Details | |
122.94 KB,
image/gif
|
Details | |
1.89 KB,
text/plain
|
Details | |
3.37 KB,
text/plain
|
Details | |
97.50 KB,
image/jpeg
|
Details | |
3.60 KB,
patch
|
Details | Diff | Splinter Review | |
3.33 KB,
patch
|
Details | Diff | Splinter Review | |
5.02 KB,
patch
|
Details | Diff | Splinter Review |
*** observed with 2001-04-10 build *** Steps to reproduce: - compose a mail with non-ascii chars in the Subject field; - forward this message as an attchment; - get message, select it and forward inline this time; //note: non-ascii chars are garbled in the attachment area when getting attached and when you'll get this email click on the envelope and observed garbage for the attachment name
Comment 1•23 years ago
|
||
This is a new problem or also happens with NS 6.0/6.01? Questions: >- compose a mail with non-ascii chars in the Subject field; What charset did you choose? Did the non-ascii chars have valid code points with that charset? >- forward this message as an attchment; What charset did you choose for the forwading message? Was that the same charset as the original? >- get message, select it and forward inline this time; What charset did you choose for this?
Summary: Non-ascii headers are garbled when attachment is forwarded inline → Non-ascii headers are garbled when attachment is forwarded inline
< compose email with non-ascii chars in the Subject field: two test cases : first: used accented chars for the first scenario( tést ön prügres) - sent them out as latin-1; second: cyrillic chars , sent them out as Cyrillic KOI8-R; ( result is the same: forwarding inline an email that was forwarded as an attachment garbles the header); i'll report about 6.01
it doesn't happen in the rtm build, added regressin keyword
Keywords: regression
Comment 4•23 years ago
|
||
I am still not clear about the procedure. Do I have to forward twice, as attachment first then as inline with the same charset?
yes, that the sequence: forward twice (as an attachment first and as inline after it)
Comment 6•23 years ago
|
||
Is the first foward attachment is really needed to reproduce? If you forward as inline first then you don't see the problem?
to repro it you have to forwarded as an attachment first and then inline, because the problem is seen in the attachment area and when you forward inline the attachment doesn't show up there, i'll attach a screen shot
Comment 10•23 years ago
|
||
I see, not header in the thread pane, not header in the quoted body, but the string of the attachment.
Keywords: intl
Comment 11•23 years ago
|
||
So do you see any other problem related to this (like the body cannot be seen) or just the attachment names are garbled?
Reporter | ||
Comment 12•23 years ago
|
||
just the attachment names are garbled, body and subject in the thread are fine; changing the summary to clarify the problem
Summary: Non-ascii headers are garbled when attachment is forwarded inline → Non-ascii attachment name is garbled when attachment is forwarded inline
Comment 13•23 years ago
|
||
Could you attach the two messages? One after the forward as attachment, other after the forward as inline? I would like to see where the data got broken.
Reporter | ||
Comment 14•23 years ago
|
||
Reporter | ||
Comment 15•23 years ago
|
||
Reporter | ||
Comment 16•23 years ago
|
||
what i found out is that the problem is generic, not non-ascii only case. The problem is in Mozilla incorrectly treating space in the headers while displaying the file name. Look at the scree shot of the ascii file name displayed incorrectly in the attachment area. Naoki, please reassign to core people
Reporter | ||
Comment 17•23 years ago
|
||
Comment 18•23 years ago
|
||
The latest screen shot shows %20 which is space but it's also has something else like %5B and %5C. Please try again with ASCII only case.
Reporter | ||
Comment 19•23 years ago
|
||
The latest screen shot is pure ascii case: as far as i understand %5B and %5C stand for ":" and "[]"
Comment 20•23 years ago
|
||
That's right, let me change the summary and reassign to putterman.
Assignee: nhotta → putterman
Summary: Non-ascii attachment name is garbled when attachment is forwarded inline → Attachment name is garbled when attachment is forwarded inline
Comment 21•23 years ago
|
||
reassigning to varada, cc'ing ducarroz. Is this related to recent checkins regarding the attachment name?
Assignee: putterman → varada
Assignee | ||
Comment 22•23 years ago
|
||
The reason you see it as garbled is because we escape the characters. This was done to fix another bug about not being able to forward inline any message that was sent from a reply or forward message. We have a bug to fix the UI for the attachments.
Comment 24•23 years ago
|
||
*** Bug 77217 has been marked as a duplicate of this bug. ***
Comment 25•23 years ago
|
||
This should be considered as must fix, as it is a regression, and it has been hit by multiple people testing the product. Please assign M0.9.1
Keywords: nsbeta1
Comment 26•23 years ago
|
||
Sounds like this might be a dup of http://bugzilla.mozilla.org/show_bug.cgi?id=43689
Reporter | ||
Comment 27•23 years ago
|
||
as far as i understand bug # 43689 the problem is observed when the attachment is open from the envelop in a new browser window and is for JA file names, the problem in this bug report is generic: it happens with ascii file names as well and in different place: in composition window
Comment 28•23 years ago
|
||
Varada - What's the status on this one?
Updated•23 years ago
|
Whiteboard: [nsbeta1+]
Reporter | ||
Comment 30•23 years ago
|
||
i think we have to consider fixing this bug because it effect Edit as new case as well. Even though it is a core ( not specifically Intl) bug a lot of inlt users will be affected ( attachment with ascii letters is somewhat readable whereas non-ascii ones look like garbage)
Assignee | ||
Comment 32•23 years ago
|
||
Patch in hand
Assignee | ||
Comment 33•23 years ago
|
||
Current patch is not good - working on a better solution.
Status: NEW → ASSIGNED
Assignee | ||
Comment 34•23 years ago
|
||
There are few more parts to this bug than what met the eye. 1-on winnt (us verson) attach a file with a iso-8859-1 name like (prügres.txt). send as normal (not as latin-1)when it arrives, name of attachment is "pr". 2-fwd inline of a fwd attached, the inner message mime type is Content-Type: text/html, not message/rfc-822 3- Content-Type: message/rfc822; name="=?iso-8859-1?Q?t=E9st=20=F6n=20pr=FCgres?=" -4.x Content-Type: text/html; name="t%E9st%20%F6n%20pr%FCgres" -6.x
Comment 35•23 years ago
|
||
adding PDT+, but as we discussed, let's see if we can get a safe fix in the next couple of days. If not, we'll move into 0.9.3. If you don't think that's enough time then let's move into 0.9.3
Whiteboard: [nsbeta1+] → [nsbeta1+][PDT+]
Assignee | ||
Comment 36•23 years ago
|
||
Assignee | ||
Comment 37•23 years ago
|
||
This patch fixes the compose front-end escaping of the attachment name as well as inserts the correct Content Type for the forwarded attachment.
Comment 38•23 years ago
|
||
talked to varada, he's going to use NS_MsgHashIfNecessary() to make the file name safe for the underlying OS.
Assignee | ||
Comment 39•23 years ago
|
||
Assignee | ||
Comment 40•23 years ago
|
||
Attaching new patch with using NS_MsgHashIfNecessary and separating the extensions before the hash. r=ducarroz
Comment 41•23 years ago
|
||
there are some edge cases that we have to defend against, and varada's got a new patch that addresses them.
Assignee | ||
Comment 42•23 years ago
|
||
Assignee | ||
Comment 43•23 years ago
|
||
Attached new version of patch to address the edge case concerns.
Comment 44•23 years ago
|
||
oh good, you addressed the <giant string>.<giant string> case. R=ducarroz
Comment 45•23 years ago
|
||
sr=sspitzer
Comment 46•23 years ago
|
||
a= asa@mozilla.org for checkin to the trunk. (on behalf of drivers)
Blocks: 83989
Assignee | ||
Comment 47•23 years ago
|
||
Marking Fixed.
Assignee | ||
Comment 48•23 years ago
|
||
Really Marking Fixed.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 49•23 years ago
|
||
varada, so we are not using the file name when forwarding inline? all i see is e472d61f.eml..?
Reporter | ||
Comment 50•23 years ago
|
||
because we are escaping the file name in the attachment now ( is that the same as the "salted" file name while downloading?) this bug is fixed, verifying...
Status: RESOLVED → VERIFIED
Updated•20 years ago
|
Product: MailNews → Core
Updated•16 years ago
|
Product: Core → MailNews Core
You need to log in
before you can comment on or make changes to this bug.
Description
•