You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Andriy Mahats (JIRA)" <ji...@apache.org> on 2018/10/01 10:36:00 UTC
[jira] [Updated] (CXF-7858) Base64 encoding issue
[ https://issues.apache.org/jira/browse/CXF-7858?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andriy Mahats updated CXF-7858:
-------------------------------
Description:
{code:java}
char[] chunk = Base64Utility.encodeChunk("".getBytes(), 0, 0, true); // chunk = null after evaluation
{code}
According to [https://tools.ietf.org/html/rfc4648#section-10]
h2. [10|https://tools.ietf.org/html/rfc4648#section-10]. Test Vectors
BASE64("") = ""
was:
{code:java}
char[] chunk = Base64Utility.encodeChunk("".getBytes(), 0, 0, true); // chunk = null after evaluation
{code}
According to https://tools.ietf.org/html/rfc4648#section-10
bas464 encoded empty string is empty string
> Base64 encoding issue
> ---------------------
>
> Key: CXF-7858
> URL: https://issues.apache.org/jira/browse/CXF-7858
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.2.6
> Reporter: Andriy Mahats
> Priority: Major
>
> {code:java}
> char[] chunk = Base64Utility.encodeChunk("".getBytes(), 0, 0, true); // chunk = null after evaluation
> {code}
> According to [https://tools.ietf.org/html/rfc4648#section-10]
> h2. [10|https://tools.ietf.org/html/rfc4648#section-10]. Test Vectors
>
> BASE64("") = ""
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)