Uploaded image for project: 'Commons Codec'
  1. Commons Codec
  2. CODEC-36

[codec] Support of Base 64 Encoding with URL and Filename Safe Alphabet

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 1.x
    • None
    • Operating System: other
      Platform: All

    • 31961

    Description

      The default Base64 alphabet is not safe to use for URL query parameters since
      the '+' character is converted to a ' ' (space) when the parameter value is
      retrieved from the request (ServeltRequest.getParameter(String)
      and .getParameterValues(String)).

      It is possible to post-process the result of Base64.encodeBase64 but I would
      rather prefer to specify an alternate alphabet or call another method.

      Refer to http://www.ietf.org/rfc/rfc3548.txt section 4 for more information.

      Regards,
      Alain Gilbert

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              agilbert@taleo.com Alain Gilbert
              Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: