[
https://issues.apache.org/jira/browse/CXF-7758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16543287#comment-16543287
]
Tomas Hofman commented on CXF-7758:
-----------------------------------
There isn't much detail in the report but I gather that the reported had to
enable request validation on the client side to make attachments transfer
working. His server implementation is non Java.
I tried to extend my test caseĀ [1] to involve some basic use cases with enabled
client side validation. I tried to use simple-fronted client and jaxws client.
Everything appears to be working fine. Concerning my original fix, I verified
again that the reproducer is passing in both cases with validation enabled and
disabled.
Could someone perhaps review the test to check that I'm not doing some nonsense
or suggest other things to test? I'm not very familiar with various frontends
offered by CXF. I didn't manage for instance to make simple-fronted client pass
server side validation at all, and had various issues with server reading empty
request because of simple-frontend client sending objects with different
namespace, or method arguments being named differently ("arg0" vs "request").
It could be that the reporter is facing something similar.
[1]
https://github.com/TomasHofman/cxf/commit/b1ad08217e901d15d570c651042550c869cd93cd
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
> Key: CXF-7758
> URL: https://issues.apache.org/jira/browse/CXF-7758
> Project: CXF
> Issue Type: Bug
> Components: Core
> Affects Versions: 3.2.4
> Reporter: Tomas Hofman
> Priority: Major
> Fix For: 3.1.16, 3.2.5
>
> Attachments: sample_jboss_bug_apache_cxf.zip
>
>
> With enabled validation, data handler returns empty input stream for
> attachment data.
> Reproducer:
> 1. Unzip the attachment
> 2. Build using "mvn clean install" and deploy war file to JBoss EAP 7.1.2.
> 3. Try calling the deployed soap service with attachments as given in the
> sample soap UI project.
> 4. Notice the resulting file is empty. This happens only when schema
> validation enabled. After removing SchemaValidation annotation it works fine.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)