Uploaded image for project: 'OpenAM Agents'
  1. OpenAM Agents
  2. AMAGENTS-3780

(MIME) UTF-8 base64 headers encoding is missing "?=" at the end of encoded value

    XMLWordPrintable

    Details

      Description

      The UTF-8 base64 headers aren't correctly encoded (MIME), missing the "?=" characters, ending the encoded value.  Seems to be a regression as previous versions had this encoded.

      Should comply with RFC 2047 (https://tools.ietf.org/html/rfc2047)

       

      Generally, an "encoded-word" is a sequence of printable ASCII

      characters that begins with "=?", ends with "?=", and has two "?"s in

      between. It specifies a character set and an encoding method, and

      also includes the original text encoded as graphic ASCII characters,

      according to the rules for that encoding method.

       

       

      Reproduction Steps:

      1) Set a givenName (for example) containing an accent in the datastore

      2) Configure the new agent with default (or absent) "com.forgerock.agents.header.mime.encode" property

      3) Display the givenName value returned by the agent

       

      Expected result : 

      The encoded value ends with "?=" 

       

      Current result :

      Headers are base64 encoded but missing ending string "?="

      (pure ASCII headers are working as intended)

        Attachments

          Activity

            People

            Assignee:
            nick.james Nicholas James
            Reporter:
            jason.yuen Jason Yuen
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved: