[jboss-jira] [JBoss JIRA] Resolved: (JBXB-89) JBossXB automatically unzips gzipped content when decoding base64 data.

Darran Lofthouse (JIRA) jira-events at jboss.com
Fri Nov 24 09:27:41 EST 2006


     [ http://jira.jboss.com/jira/browse/JBXB-89?page=all ]

Darran Lofthouse resolved JBXB-89.
----------------------------------

    Resolution: Done

Call the Base64.decode method that does not unzip GZipped content.

Added three tests to SimpleTypeBindingUnitTestCase

testBase64BinaryUnmarshalling
testBase64BinaryGZippedUnmarshalling
testBase64BinaryMarshalling

> JBossXB automatically unzips gzipped content when decoding base64 data.
> -----------------------------------------------------------------------
>
>                 Key: JBXB-89
>                 URL: http://jira.jboss.com/jira/browse/JBXB-89
>             Project: JBoss XML Binding (JBossXB)
>          Issue Type: Bug
>    Affects Versions: JBossXB-1.0.0.CR7
>            Reporter: Darran Lofthouse
>         Assigned To: Darran Lofthouse
>             Fix For: JBossXB-1.0
>
>
> JBossXB automatically unzips gzipped content when decoding base64 data.
> The reason why it is automatically unzipped is becuase the method unmarshalBase64 in org.jboss.xb.binding.SimpleTypeBindings is calling the method decode in org.jboss.util.Base64, this decode method after converting from Base64 detects that it is gzipped so unzippes it.  If we do not need to unzip the data we could call the decode method that takes the byte array instead of a String as this does not perform any unzipping.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the jboss-jira mailing list