You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Sergey Beryozkin (JIRA)" <ji...@apache.org> on 2007/01/31 19:20:05 UTC

[jira] Created: (CXF-398) XMLBinding Provider implementations can not receive Multipart/Related messages

XMLBinding Provider<Source> implementations can not receive Multipart/Related messages 
---------------------------------------------------------------------------------------

                 Key: CXF-398
                 URL: https://issues.apache.org/jira/browse/CXF-398
             Project: CXF
          Issue Type: Bug
          Components: JAX-WS Runtime
    Affects Versions: 2.0-RC
         Environment: Windows
            Reporter: Sergey Beryozkin
             Fix For: 2.0-RC


XMLBinding Provider<Source> implementaions should be able to get the root part of Multipart/Related messages as input Source in invoke(Source) and other (XML, text,  binary) attachments as MesageContext.INBOUND_MESSAGE_ATTACHMENTS

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


[jira] Closed: (CXF-398) XMLBinding Provider implementations can not receive Multipart/Related messages

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

Bozhong Lin closed CXF-398.
---------------------------

    Resolution: Fixed

patch reviewed and applied by Eoghan with r502283

> XMLBinding Provider<Source> implementations can not receive Multipart/Related messages 
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-398
>                 URL: https://issues.apache.org/jira/browse/CXF-398
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0-RC
>         Environment: Windows
>            Reporter: Sergey Beryozkin
>             Fix For: 2.0-RC
>
>         Attachments: rt_provider_attachment.patch, rt_provider_attachment2.patch
>
>
> XMLBinding Provider<Source> implementaions should be able to get the root part of Multipart/Related messages as input Source in invoke(Source) and other (XML, text,  binary) attachments as MesageContext.INBOUND_MESSAGE_ATTACHMENTS

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


[jira] Updated: (CXF-398) XMLBinding Provider implementations can not receive Multipart/Related messages

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

Sergey Beryozkin updated CXF-398:
---------------------------------

    Attachment: rt_provider_attachment.patch

Patch includes following updates :

* org.apache.cxf.binding.xml.XMLBindingFactory updated to add AttachmentInInterceptor to created bindings
* org.apache.cxf.jaxws.ProviderChainObserver.onMessage() adds AttachmentInInterceptor unless Provider's type parameter is DataSource or SourceMessage
* org.apache.cxf.jaxws.support.ContextPropertiesMappping converts Message.getAttachments into Map<String, DataHandler> as per JAXWS spec
* org.apache.cxf.jaxws.interceptors.DispatchInInterceptor skips GET requets
* org.apache.cxf.jaxws.interceptors.DispatchOutInterceptor closes DataSource input stream after copying the data to output stream
* org.apache.cxf.jaxws.transports.http.JettyHTTPDestination updated not to duplicate response Content-Type and honour Content-Type property if set in Provider implementations

Added unit tests and system test


> XMLBinding Provider<Source> implementations can not receive Multipart/Related messages 
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-398
>                 URL: https://issues.apache.org/jira/browse/CXF-398
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0-RC
>         Environment: Windows
>            Reporter: Sergey Beryozkin
>             Fix For: 2.0-RC
>
>         Attachments: rt_provider_attachment.patch
>
>
> XMLBinding Provider<Source> implementaions should be able to get the root part of Multipart/Related messages as input Source in invoke(Source) and other (XML, text,  binary) attachments as MesageContext.INBOUND_MESSAGE_ATTACHMENTS

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


[jira] Updated: (CXF-398) XMLBinding Provider implementations can not receive Multipart/Related messages

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

Sergey Beryozkin updated CXF-398:
---------------------------------

    Attachment: rt_provider_attachment2.patch

Update to http2/JettyHTTPDestination and jaxws/ServletDestination to set Content-Type on response

> XMLBinding Provider<Source> implementations can not receive Multipart/Related messages 
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-398
>                 URL: https://issues.apache.org/jira/browse/CXF-398
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0-RC
>         Environment: Windows
>            Reporter: Sergey Beryozkin
>             Fix For: 2.0-RC
>
>         Attachments: rt_provider_attachment.patch, rt_provider_attachment2.patch
>
>
> XMLBinding Provider<Source> implementaions should be able to get the root part of Multipart/Related messages as input Source in invoke(Source) and other (XML, text,  binary) attachments as MesageContext.INBOUND_MESSAGE_ATTACHMENTS

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


[jira] Commented: (CXF-398) XMLBinding Provider implementations can not receive Multipart/Related messages

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469154 ] 

Sergey Beryozkin commented on CXF-398:
--------------------------------------

Forgot to add one more change description :
* Updated org.apache.cxf.jaxb.io.XMLMessageDataReader to try to read even if InputStream.available() shows 0, as it's not a reliable indication that the stream can not fetch more data

> XMLBinding Provider<Source> implementations can not receive Multipart/Related messages 
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-398
>                 URL: https://issues.apache.org/jira/browse/CXF-398
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0-RC
>         Environment: Windows
>            Reporter: Sergey Beryozkin
>             Fix For: 2.0-RC
>
>         Attachments: rt_provider_attachment.patch
>
>
> XMLBinding Provider<Source> implementaions should be able to get the root part of Multipart/Related messages as input Source in invoke(Source) and other (XML, text,  binary) attachments as MesageContext.INBOUND_MESSAGE_ATTACHMENTS

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


[jira] Commented: (CXF-398) XMLBinding Provider implementations can not receive Multipart/Related messages

Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CXF-398?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12469148 ] 

Sergey Beryozkin commented on CXF-398:
--------------------------------------

After this patch applied the follwing needs to be done :

* New Jira issue opened for creating LazyAttachmentMap which will defer the actual reading of the attachments until Provider<Source> will actually request them

* for Provider<SoapBody> : on response a Provider implementation may wish to return Message.OUTBOUND_MESSAGE_ATTACHMENTS, which will need to be converted in org.apache.cxf.jaxws.support.ContextPropertiesMappping to out Message.setAttachments;  org.apache.cxf.jaxws.ProviderChainObserver.onMessage() will need AttachmentOutInterceptor added too to handle this case

* Clarify if Provider<DataSource> implementations need to get the root part only as DataSource, if yes then it will require a single line change to ProviderChainObserver which does not (in the attached path) adds AttachmentInInterceptor for Provider<DataSource>

> XMLBinding Provider<Source> implementations can not receive Multipart/Related messages 
> ---------------------------------------------------------------------------------------
>
>                 Key: CXF-398
>                 URL: https://issues.apache.org/jira/browse/CXF-398
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-WS Runtime
>    Affects Versions: 2.0-RC
>         Environment: Windows
>            Reporter: Sergey Beryozkin
>             Fix For: 2.0-RC
>
>         Attachments: rt_provider_attachment.patch
>
>
> XMLBinding Provider<Source> implementaions should be able to get the root part of Multipart/Related messages as input Source in invoke(Source) and other (XML, text,  binary) attachments as MesageContext.INBOUND_MESSAGE_ATTACHMENTS

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