You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Jason Pell (JIRA)" <ji...@apache.org> on 2012/10/09 14:00:04 UTC

[jira] [Created] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Jason Pell created CXF-4551:
-------------------------------

             Summary: MTOM + SchemaValidation results in empty input stream from data handler
                 Key: CXF-4551
                 URL: https://issues.apache.org/jira/browse/CXF-4551
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.7.0
            Reporter: Jason Pell


Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.

The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.

http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Posted by "Jason Pell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13474065#comment-13474065 ] 

Jason Pell commented on CXF-4551:
---------------------------------

was wondering if I could get some feedback on this patch.  Happy to do additional work for it to be acceptable.  I am blocked on this as I would like to make use of the changes in my project and do not want to maintain a local fork of cxf, but happy to depend on a 2.7.1-SNAPSHOT for a few months.
                
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
>                 Key: CXF-4551
>                 URL: https://issues.apache.org/jira/browse/CXF-4551
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.0
>            Reporter: Jason Pell
>         Attachments: MtomSchemaValidationBug-jaxws21.tar.gz, MtomSchemaValidationBug.tar.gz, patch.txt
>
>
> Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.
> The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.
> http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Resolved] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Posted by "Daniel Kulp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Daniel Kulp resolved CXF-4551.
------------------------------

       Resolution: Fixed
    Fix Version/s: 2.7.1
                   2.6.4
         Assignee: Daniel Kulp
    
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
>                 Key: CXF-4551
>                 URL: https://issues.apache.org/jira/browse/CXF-4551
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.0
>            Reporter: Jason Pell
>            Assignee: Daniel Kulp
>             Fix For: 2.6.4, 2.7.1
>
>         Attachments: MtomSchemaValidationBug-jaxws21.tar.gz, MtomSchemaValidationBug.tar.gz, patch.txt
>
>
> Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.
> The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.
> http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Posted by "Jason Pell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472305#comment-13472305 ] 

Jason Pell commented on CXF-4551:
---------------------------------

I am not sure whether 3813 should be re-opened and listed as incomplete or if the patch to fix the regression should be provided against this issue.

Some advice from devs would be good
                
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
>                 Key: CXF-4551
>                 URL: https://issues.apache.org/jira/browse/CXF-4551
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.0
>            Reporter: Jason Pell
>         Attachments: MtomSchemaValidationBug-jaxws21.tar.gz, MtomSchemaValidationBug.tar.gz
>
>
> Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.
> The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.
> http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Posted by "Jason Pell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472292#comment-13472292 ] 

Jason Pell commented on CXF-4551:
---------------------------------

In order to see this issue you need to force SoapUI to always use MTOM.  the src/test/resources soapui project does that.

                
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
>                 Key: CXF-4551
>                 URL: https://issues.apache.org/jira/browse/CXF-4551
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.0
>            Reporter: Jason Pell
>         Attachments: MtomSchemaValidationBug-jaxws21.tar.gz, MtomSchemaValidationBug.tar.gz
>
>
> Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.
> The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.
> http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Posted by "Jason Pell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Pell updated CXF-4551:
----------------------------

    Attachment: patch.txt

completed patch
code changes + tests
full build passes successfully

                
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
>                 Key: CXF-4551
>                 URL: https://issues.apache.org/jira/browse/CXF-4551
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.0
>            Reporter: Jason Pell
>         Attachments: MtomSchemaValidationBug-jaxws21.tar.gz, MtomSchemaValidationBug.tar.gz, patch.txt
>
>
> Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.
> The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.
> http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Posted by "Jason Pell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Pell updated CXF-4551:
----------------------------

    Attachment: MtomSchemaValidationBug.tar.gz
    
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
>                 Key: CXF-4551
>                 URL: https://issues.apache.org/jira/browse/CXF-4551
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.0
>            Reporter: Jason Pell
>         Attachments: MtomSchemaValidationBug.tar.gz
>
>
> Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.
> The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.
> http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Posted by "Jason Pell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472318#comment-13472318 ] 

Jason Pell commented on CXF-4551:
---------------------------------

I will review the following classes to see if they need to be updated to use the ServiceUtils.getSchemaValidationType

find . -name "*.java" -exec grep -l "schema-validation-enabled" {} \; 

./api/src/main/java/org/apache/cxf/message/Message.java
./systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/ClientServerRPCLitTest.java
./systests/jaxws/src/test/java/org/apache/cxf/systest/jaxws/SchemaValidationClientServerTest.java
./systests/jaxws/src/test/java/org/apache/cxf/systest/provider/XMLServer.java
./systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/AbstractClientPersistenceTest.java
./systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/DecoupledClientServerTest.java
./systests/ws-rm/src/test/java/org/apache/cxf/systest/ws/rm/DecoupledBareTest.java
./systests/uncategorized/src/test/java/org/apache/cxf/systest/mtom/ClientMtomXopTest.java


jason@jason-Latitude-E6400:~/Development/cxf-trunk$ find . -name "*.java" -exec grep -l "SCHEMA_VALIDATION_ENABLED" {} \;
./rt/databinding/aegis/src/main/java/org/apache/cxf/aegis/databinding/AegisSchemaValidationInInterceptor.java
./rt/databinding/aegis/src/test/java/org/apache/cxf/aegis/integration/SchemaValidationTest.java
./rt/databinding/jaxb/src/main/java/org/apache/cxf/jaxb/attachment/JAXBAttachmentSchemaValidationHack.java
./rt/ws/rm/src/test/java/org/apache/cxf/ws/rm/soap/RMSoapInterceptorTest.java
./rt/javascript/javascript-tests/src/test/java/org/apache/cxf/javascript/JavascriptRhinoTest.java
./rt/frontend/jaxws/src/main/java/org/apache/cxf/jaxws/interceptors/WrapperClassOutInterceptor.java
./rt/frontend/jaxws/src/test/java/org/apache/cxf/jaxws/ConfiguredEndpointTest.java
./rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/ReadHeadersInterceptor.java
./rt/bindings/soap/src/main/java/org/apache/cxf/binding/soap/interceptor/SoapHeaderInterceptor.java
./rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/ReadHeaderInterceptorTest.java
./rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCInInterceptorTest.java
./rt/bindings/soap/src/test/java/org/apache/cxf/binding/soap/RPCOutInterceptorTest.java
./rt/core/src/main/java/org/apache/cxf/service/factory/AnnotationsFactoryBeanListener.java
./rt/core/src/test/java/org/apache/cxf/interceptor/DocLiteralInInterceptorTest.java
./systests/ws-security/src/test/java/org/apache/cxf/systest/ws/security/SecurityPolicyTest.java
./systests/uncategorized/src/test/java/org/apache/cxf/systest/schema_validation/ValidationClientServerTest.java


                
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
>                 Key: CXF-4551
>                 URL: https://issues.apache.org/jira/browse/CXF-4551
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.0
>            Reporter: Jason Pell
>         Attachments: MtomSchemaValidationBug-jaxws21.tar.gz, MtomSchemaValidationBug.tar.gz
>
>
> Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.
> The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.
> http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Commented] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Posted by "Jason Pell (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13472985#comment-13472985 ] 

Jason Pell commented on CXF-4551:
---------------------------------

As part of the patch I have updated the test cases that referenced "schema-validation-enabled" with Message.SCHEMA_VALIDATION_ENABLED.    This just makes the code consistent.
                
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
>                 Key: CXF-4551
>                 URL: https://issues.apache.org/jira/browse/CXF-4551
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.0
>            Reporter: Jason Pell
>         Attachments: MtomSchemaValidationBug-jaxws21.tar.gz, MtomSchemaValidationBug.tar.gz
>
>
> Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.
> The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.
> http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

[jira] [Updated] (CXF-4551) MTOM + SchemaValidation results in empty input stream from data handler

Posted by "Jason Pell (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CXF-4551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Jason Pell updated CXF-4551:
----------------------------

    Attachment: MtomSchemaValidationBug-jaxws21.tar.gz

further test to ensure its not a jaxws version problem.  Reverted back to jaxws 2.1 still same issue.
                
> MTOM + SchemaValidation results in empty input stream from data handler
> -----------------------------------------------------------------------
>
>                 Key: CXF-4551
>                 URL: https://issues.apache.org/jira/browse/CXF-4551
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.7.0
>            Reporter: Jason Pell
>         Attachments: MtomSchemaValidationBug-jaxws21.tar.gz, MtomSchemaValidationBug.tar.gz
>
>
> Even with a 1k file uploaded I cannot read its content in my web service implementation when I have schema validation enabled.
> The interesting thing is if I enable ws-policy security I can upload up to a 100k file, and 1 byte above that falls over again.
> http://cxf.547215.n5.nabble.com/Help-Schema-Validation-ON-MTOM-Large-Files-Empty-DataSource-input-stream-td5716122.html

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira