Open
Bug 739025
Opened 13 years ago
Updated 1 year ago
If "?" is contained in MIME-Type of Content-Type:(e.g. =?iso-8859-1?q?application/pdf), message body text(Part1.1) is used by Open, and if "major MIME type only" or "& is contained in major MIME type", Open dialog is not shown.
Categories
(MailNews Core :: MIME, defect)
Tracking
(Not tracked)
NEW
People
(Reporter: World, Unassigned)
References
(Depends on 1 open bug)
Details
Attachments
(1 file, 1 obsolete file)
1.99 KB,
text/plain
|
Details |
If "?" is contained in MIME-Type of Content-Type:, message body text(Part1.1) is used by Open, and if "major MIME type only" or "& is contained in major MIME type", Open dialog is not shown.
This bug is for problem reported to bug 580971, bug 659355, bug 685112, bug 738284, which are report of phenomenon with broken MIME type such as =?iso-8859-1?q?application/msword, =?windows-1252?q?application/pdf.
Data shown by "Open by Notepad"
(1) filename="pdf-file-01.pdf", Content-Type: =?iso-8859-1?q?application/pdf
Message Body text is shown.
> <div class="moz-text-plain" wrap=true graphical-quote=true style="font-family: -moz-fixed"><pre wrap>
> Messae body text - line 001
> Messae body text - line 002
> Messae body text - line 003
> </pre></div>
(2) filename="pdf-file-02.pdf", Content-Type: abc?def
Open dialog is not shown
(3) filename="pdf-file-03.pdf", Content-Type: abc?def/pdf
Message Body text is shown.
(4) filename="pdf-file-04.pdf", Content-Type: abc=def/pdf
Data in the part is shown(text data is placed for test)
(5) filename="pdf-file-05.pdf", Content-Type: acb#def/pdf
Data in the part is shown(text data is placed for test)
(6) filename="pdf-file-06.pdf", Content-Type: abc&def/pdf
Open dialog is not shown
(7) filename="pdf-file-91.pdf", Content-Type: abc-def
Open dialog is not shown
(8) filename="pdf-file-92.pdf", Content-Type: abc-def/pdf
Data in the part is shown(text data is placed for test)
Reporter | ||
Updated•13 years ago
|
Reporter | ||
Comment 1•13 years ago
|
||
If "Save As", different result was obtained.
(1) filename="pdf-file-01.pdf", Content-Type: =?iso-8859-1?q?application/pdf
Message Body text was saved to .pdf file.
> <div class="moz-text-plain" wrap=true graphical-quote=true style="font-family: -moz-fixed"><pre wrap>
> Messae body text - line 001
> Messae body text - line 002
> Messae body text - line 003
> </pre></div>
In any other case including case (3), abc?def/pdf, data of correct part was saved.
It looks that, even "Save As", part number(&part=1.x in internal location) is lost if multiple "?" is used in MIME type string.
Reporter | ||
Updated•13 years ago
|
Summary: If "?" is contained in MIME-Type of Content-Type:, message body text(Part1.1) is used by Open, and if "major MIME type only" or "& is contained in major MIME type", Open dialog is not shown. → If "?" is contained in MIME-Type of Content-Type:(e.g. =?iso-8859-1?q?application/pdf), message body text(Part1.1) is used by Open, and if "major MIME type only" or "& is contained in major MIME type", Open dialog is not shown.
Reporter | ||
Comment 2•13 years ago
|
||
Phenomenon of comment #1 is perhaps due to "=" in mime-type.
Internal URL is one like next.
...?keyword1=value1&...&keywordN=valueN&...&keywordP=valueP
for example,
&type=mime-type : mime-type == major-type/minor-type
&name=file_name
&part=part_number
(a) Any of "?", "&", "=" in mime-type value should be escaped in internal URL used by Tb.
(b) Tb should process "major mime-type only without trailing slash" correctly. (c) For file_name, file_name value should be quoted by double-quote if not quoted by '"', in case of "?", "&", "=" in file name value without quoting by '"'(known bug).
Reporter | ||
Comment 3•13 years ago
|
||
For Content-Type: =?iso-8859-1?q?application/pdf case(RFC2047 is wongly applied, string after last ? is correct mime-type), fix was proposed to Bug 659355.
Setting dependency.
Reporter | ||
Comment 4•12 years ago
|
||
FYI.
bug 335263 is for "row & in filename" case.
Updated•2 years ago
|
Severity: normal → S3
Updated•1 year ago
|
Attachment #9385301 -
Attachment is obsolete: true
You need to log in
before you can comment on or make changes to this bug.
Description
•