Uploaded image for project: 'James Mime4j'
  1. James Mime4j
  2. MIME4J-90

Consistent parsing of header field names

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.5
    • 0.6
    • None
    • None

    Description

      RFC 822 defines a field as:
      field = field-name ":" [ field-body ] CRLF
      field-name = 1*<any CHAR, excluding CTLs, SPACE, and ":">

      This implies that a field name must consist of at least one character and may not contain spaces or tabs; not even trailing ones.

      Currently o.a.j.mime4j.parser.AbstractEntity#parseField accepts empty field names while o.a.j.mime4j.field.Field#parse accepts trailing spaces and tabs.

      Attachments

        1. mime4j-fieldname.patch
          5 kB
          Markus Wiederkehr
        2. mime4j-parse-name-body.patch
          8 kB
          Markus Wiederkehr

        Activity

          People

            Unassigned Unassigned
            wmax Markus Wiederkehr
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: