Open Bug 739025 Opened 12 years ago Updated 1 month 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)

x86
Windows XP
defect

Tracking

(Not tracked)

People

(Reporter: World, Unassigned)

References

(Depends on 1 open bug)

Details

Attachments

(1 file, 1 obsolete file)

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)
Depends on: 503309
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.
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.
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).
No longer blocks: 580971
No longer blocks: 685112
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.
No longer blocks: 659355
Depends on: 659355
No longer blocks: 738284
FYI.
bug 335263 is for "row & in filename" case.
Severity: normal → S3
Attachment #9385301 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: