cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1972) cannot send MTOM attachment over 64K when server schema validation on
Date Tue, 13 Jan 2009 15:29:00 GMT

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

Daniel Kulp commented on CXF-1972:
----------------------------------


This is a JAXB bug..    I've logged a bug with them:
https://jaxb.dev.java.net/issues/show_bug.cgi?id=588

Feel free to vote for it there.


> cannot send MTOM attachment over 64K when server schema validation on
> ---------------------------------------------------------------------
>
>                 Key: CXF-1972
>                 URL: https://issues.apache.org/jira/browse/CXF-1972
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.3
>         Environment: RedHat Linux 2.6.9-42.ELsmp
>            Reporter: Lisa Penninger
>         Attachments: Server.java, stack.txt
>
>
> I'm using MTOM with CXF 2.1.3 to send an attachment to the server, with validation turned
on in the server.  Everything is working fine, as long as the attachment data is 64K or less.
 One byte over 64K, and the stream returned by getDataSource().getInputStream() is empty.
 The stream is created okay with all the data, but in DocLiteralInInterceptor.handleMessage
it eventually calls Base64Data.get, which does a close on the stream.  This is only a problem
if the stream is a FileInputStream, which it will be if the data is over 64K, and this particular
codepath is only taken if validation is turned on.  I've been able to reproduce this with
the mtom sample code.  I will attach my changes to Server.java to turn on validation, and
the stack trace showing where the problem occurs.
> Thanks, Lisa

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message