cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lisa Penninger (JIRA)" <>
Subject [jira] Updated: (CXF-1972) cannot send MTOM attachment over 64K when server schema validation on
Date Mon, 12 Jan 2009 21:50:00 GMT


Lisa Penninger updated CXF-1972:


Changes to mtom sample code to reproduce issue.  Only change is to turn on validation.

> cannot send MTOM attachment over 64K when server schema validation on
> ---------------------------------------------------------------------
>                 Key: CXF-1972
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.1.3
>         Environment: RedHat Linux 2.6.9-42.ELsmp
>            Reporter: Lisa Penninger
>         Attachments:, 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 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.

View raw message