cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Grzybek (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-5357) CORBA binding corrupts byte arrays
Date Thu, 24 Oct 2013 07:25:06 GMT

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

Grzegorz Grzybek edited comment on CXF-5357 at 10/24/13 7:23 AM:
-----------------------------------------------------------------

Hello - here's a pull request: https://github.com/apache/cxf/pull/8.

The simple diff is all Chris needs:
{noformat}
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaStreamWriter.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaStreamWriter.java
@@ -277,7 +277,7 @@ public class CorbaStreamWriter implements XMLStreamWriter {
                                 int start,
                                 int len)
         throws XMLStreamException {
-        currentTypeListener.processCharacters(new String(text));
+        currentTypeListener.processCharacters(new String(text, start, len));
     }

     public java.lang.String getPrefix(java.lang.String uri)
{noformat}

regards
Grzegorz Grzybek


was (Author: gzres):
Hello - here's a pull request: https://github.com/apache/cxf/pull/8.

The simple diff is all Chris needs:
{noformat}
--- a/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaStreamWriter.java
+++ b/rt/bindings/corba/src/main/java/org/apache/cxf/binding/corba/runtime/CorbaStreamWriter.java
@@ -277,7 +277,7 @@ public class CorbaStreamWriter implements XMLStreamWriter {
                                 int start,
                                 int len)
         throws XMLStreamException {
-        currentTypeListener.processCharacters(new String(text, start, len));
+        currentTypeListener.processCharacters(new String(text));
     }

     public java.lang.String getPrefix(java.lang.String uri)
{noformat}

regards
Grzegorz Grzybek

> CORBA binding corrupts byte arrays
> ----------------------------------
>
>                 Key: CXF-5357
>                 URL: https://issues.apache.org/jira/browse/CXF-5357
>             Project: CXF
>          Issue Type: Bug
>          Components: CORBA Binding
>    Affects Versions: 2.7.7
>         Environment: W7/62, Java 7
>            Reporter: Chris Becker
>            Priority: Blocker
>         Attachments: RzBugRepro.zip
>
>
> When requesting a list of byte arrays from a service using CORBA binding, some arrays
contain extra data when received by a client.
> (for repro & more description, please see README.txt in attached project)



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message