You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Chaitanya Choleti (JIRA)" <ji...@apache.org> on 2009/06/09 15:44:07 UTC
[jira] Created: (CXF-2272) Only mime-type (not content-type) should
be set on the message.
Only mime-type (not content-type) should be set on the message.
---------------------------------------------------------------
Key: CXF-2272
URL: https://issues.apache.org/jira/browse/CXF-2272
Project: CXF
Issue Type: Bug
Reporter: Chaitanya Choleti
In org.apache.cxf.transport.http.AbstractHttpDestination.setupMessage() method only mime-type should be set on the message.
For example:
If the content-type header on a request is :
application/xml;charset=utf-8
an IllegalArgumentException is thrown in org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod() as it expects only mime type.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CXF-2272) Only mime-type (not content-type) should
be set on the message.
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sergey Beryozkin updated CXF-2272:
----------------------------------
Component/s: REST
Affects Version/s: 2.3
2.2.3
Fix Version/s: 2.3
2.2.3
> Only mime-type (not content-type) should be set on the message.
> ---------------------------------------------------------------
>
> Key: CXF-2272
> URL: https://issues.apache.org/jira/browse/CXF-2272
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2.3, 2.3
> Reporter: Chaitanya Choleti
> Fix For: 2.2.3, 2.3
>
>
> In org.apache.cxf.transport.http.AbstractHttpDestination.setupMessage() method only mime-type should be set on the message.
> For example:
> If the content-type header on a request is :
> application/xml;charset=utf-8
> an IllegalArgumentException is thrown in org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod() as it expects only mime type.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2272) Only mime-type (not content-type)
should be set on the message.
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717674#action_12717674 ]
Sergey Beryozkin commented on CXF-2272:
---------------------------------------
I think it the issue with JAXRSUtils
> Only mime-type (not content-type) should be set on the message.
> ---------------------------------------------------------------
>
> Key: CXF-2272
> URL: https://issues.apache.org/jira/browse/CXF-2272
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2.3, 2.3
> Reporter: Chaitanya Choleti
> Fix For: 2.2.3, 2.3
>
>
> In org.apache.cxf.transport.http.AbstractHttpDestination.setupMessage() method only mime-type should be set on the message.
> For example:
> If the content-type header on a request is :
> application/xml;charset=utf-8
> an IllegalArgumentException is thrown in org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod() as it expects only mime type.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (CXF-2272) Only mime-type (not content-type)
should be set on the message.
Posted by "Sergey Beryozkin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12717687#action_12717687 ]
Sergey Beryozkin commented on CXF-2272:
---------------------------------------
Actually, I'm not sure I understand
Here's a sample post :
POST /bookstore/books HTTP/1.1
Content-Type: application/xml;charset=utf-8
User-Agent: Jakarta Commons-HttpClient/3.1
Host: localhost:9081
Content-Length: 98
<?xml version="1.0" encoding="UTF-8" standalone="yes"?><Book><name>CXF in Action - 2</name></Book>
and I see no problem in JAXRSUtils.findTargetMethod().
Do you MediaType.fromString() throwing this exception ?
Can you please attach a sample ?
> Only mime-type (not content-type) should be set on the message.
> ---------------------------------------------------------------
>
> Key: CXF-2272
> URL: https://issues.apache.org/jira/browse/CXF-2272
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2.3, 2.3
> Reporter: Chaitanya Choleti
> Fix For: 2.2.3, 2.3
>
>
> In org.apache.cxf.transport.http.AbstractHttpDestination.setupMessage() method only mime-type should be set on the message.
> For example:
> If the content-type header on a request is :
> application/xml;charset=utf-8
> an IllegalArgumentException is thrown in org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod() as it expects only mime type.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (CXF-2272) Only mime-type (not content-type) should
be set on the message.
Posted by "Chaitanya Choleti (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CXF-2272?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Chaitanya Choleti closed CXF-2272.
----------------------------------
Resolution: Fixed
> Only mime-type (not content-type) should be set on the message.
> ---------------------------------------------------------------
>
> Key: CXF-2272
> URL: https://issues.apache.org/jira/browse/CXF-2272
> Project: CXF
> Issue Type: Bug
> Components: REST
> Affects Versions: 2.2.3, 2.3
> Reporter: Chaitanya Choleti
> Fix For: 2.2.3, 2.3
>
>
> In org.apache.cxf.transport.http.AbstractHttpDestination.setupMessage() method only mime-type should be set on the message.
> For example:
> If the content-type header on a request is :
> application/xml;charset=utf-8
> an IllegalArgumentException is thrown in org.apache.cxf.jaxrs.utils.JAXRSUtils.findTargetMethod() as it expects only mime type.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.