You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ws.apache.org by "Kristina Petkova (JIRA)" <ji...@apache.org> on 2012/07/13 15:43:33 UTC

[jira] [Created] (AXIOM-434) Base64 class doesn't throw exception for invalid input.

Kristina Petkova created AXIOM-434:
--------------------------------------

             Summary: Base64 class doesn't throw exception for invalid input.
                 Key: AXIOM-434
                 URL: https://issues.apache.org/jira/browse/AXIOM-434
             Project: Axiom
          Issue Type: Bug
          Components: API
    Affects Versions: 1.2.13
         Environment: all
            Reporter: Kristina Petkova
            Priority: Trivial


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.



--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org


[jira] [Updated] (AXIOM-434) Base64 class doesn't throw exception for invalid input.

Posted by "Andreas Veithen (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/AXIOM-434?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andreas Veithen updated AXIOM-434:
----------------------------------

    Fix Version/s: 1.2.15

Scheduling this for 1.2.15.
                
> Base64 class doesn't throw exception for invalid input.
> -------------------------------------------------------
>
>                 Key: AXIOM-434
>                 URL: https://issues.apache.org/jira/browse/AXIOM-434
>             Project: Axiom
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 1.2.13
>         Environment: all
>            Reporter: Kristina Petkova
>            Priority: Trivial
>              Labels: patch
>             Fix For: 1.2.15
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org
For additional commands, e-mail: dev-help@ws.apache.org