ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AXIOM-434) Base64 class doesn't throw exception for invalid input.
Date Sat, 02 May 2015 19:55:06 GMT

    [ https://issues.apache.org/jira/browse/AXIOM-434?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14525434#comment-14525434
] 

Hudson commented on AXIOM-434:
------------------------------

SUCCESS: Integrated in ws-axiom-trunk #1995 (See [https://builds.apache.org/job/ws-axiom-trunk/1995/])
Rewrite the Base64Utils#decode(String) method to minimize the number of array allocations
and to throw an exception for data that is not correctly encoded (AXIOM-434). (veithen: rev
1677340)
* /webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/util/base64/AbstractBase64DecodingWriter.java
* /webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/util/base64/Base64Constants.java
* /webservices/axiom/trunk/modules/axiom-api/src/main/java/org/apache/axiom/util/base64/Base64Utils.java
* /webservices/axiom/trunk/modules/axiom-api/src/test/java/org/apache/axiom/util/base64/Base64UtilsTest.java


> 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
>            Assignee: Andreas Veithen
>            Priority: Trivial
>             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 was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message