Uploaded image for project: 'Axiom'
  1. Axiom
  2. AXIOM-434

Base64 class doesn't throw exception for invalid input.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.2.13
    • 1.2.15
    • API
    • None
    • all

    Description

      If a string which does not follow the rtf documentation (http://www.ietf.org/rfc/rfc2045.txt -> 6.8) is given as an argument for the decoding methods of the class org.apache.axiom.om.util.Base64, an exception for InvalidArgument should be thrown, but it isn't.

      For example an invalid string for decoding would be the string "me". So if we call the method this way:

      Base64.decode("me");

      the behaviour we expect is an exception to be thrown.

      Attachments

        Activity

          People

            veithen Andreas Veithen
            petkova.kristina Kristina Petkova
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: