You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Patrick Dumontel (JIRA)" <ji...@apache.org> on 2010/07/21 17:11:52 UTC
[jira] Created: (CAMEL-2981) DefaultHttpBinding's
populateRequestParameters should be more flexible when checking the content
type on POST
DefaultHttpBinding's populateRequestParameters should be more flexible when checking the content type on POST
-------------------------------------------------------------------------------------------------------------
Key: CAMEL-2981
URL: https://issues.apache.org/activemq/browse/CAMEL-2981
Project: Apache Camel
Issue Type: Improvement
Components: camel-http
Affects Versions: 2.4.0, 2.3.0
Reporter: Patrick Dumontel
Priority: Minor
Line 126 in DefaultHttpBinding checks if the request's method is POST and the content type is "application/x-www-form-urlencoded". This unfortunately fails a POST request where the content type includes the charset, e.g. "application/x-www-form-urlencoded; charset=UTF-8".
Could the equals be changed to startsWith?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (CAMEL-2981) DefaultHttpBinding's
populateRequestParameters should be more flexible when checking the content
type on POST
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang resolved CAMEL-2981.
---------------------------------
Fix Version/s: 2.5.0
Resolution: Fixed
Applied patch with thanks to Patrick, also merge the change into camel-http4.
> DefaultHttpBinding's populateRequestParameters should be more flexible when checking the content type on POST
> -------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-2981
> URL: https://issues.apache.org/activemq/browse/CAMEL-2981
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-http
> Affects Versions: 2.3.0, 2.4.0
> Reporter: Patrick Dumontel
> Assignee: Willem Jiang
> Priority: Minor
> Fix For: 2.5.0
>
>
> Line 126 in DefaultHttpBinding checks if the request's method is POST and the content type is "application/x-www-form-urlencoded". This unfortunately fails to populate the request parameters of a POST request where the content type includes the charset, e.g. "application/x-www-form-urlencoded; charset=UTF-8".
> Could the equals be changed to startsWith?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (CAMEL-2981) DefaultHttpBinding's
populateRequestParameters should be more flexible when checking the content
type on POST
Posted by "Patrick Dumontel (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Patrick Dumontel updated CAMEL-2981:
------------------------------------
Description:
Line 126 in DefaultHttpBinding checks if the request's method is POST and the content type is "application/x-www-form-urlencoded". This unfortunately fails to populate the request parameters of a POST request where the content type includes the charset, e.g. "application/x-www-form-urlencoded; charset=UTF-8".
Could the equals be changed to startsWith?
was:
Line 126 in DefaultHttpBinding checks if the request's method is POST and the content type is "application/x-www-form-urlencoded". This unfortunately fails a POST request where the content type includes the charset, e.g. "application/x-www-form-urlencoded; charset=UTF-8".
Could the equals be changed to startsWith?
> DefaultHttpBinding's populateRequestParameters should be more flexible when checking the content type on POST
> -------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-2981
> URL: https://issues.apache.org/activemq/browse/CAMEL-2981
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-http
> Affects Versions: 2.3.0, 2.4.0
> Reporter: Patrick Dumontel
> Priority: Minor
>
> Line 126 in DefaultHttpBinding checks if the request's method is POST and the content type is "application/x-www-form-urlencoded". This unfortunately fails to populate the request parameters of a POST request where the content type includes the charset, e.g. "application/x-www-form-urlencoded; charset=UTF-8".
> Could the equals be changed to startsWith?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (CAMEL-2981) DefaultHttpBinding's
populateRequestParameters should be more flexible when checking the content
type on POST
Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/activemq/browse/CAMEL-2981?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Willem Jiang reassigned CAMEL-2981:
-----------------------------------
Assignee: Willem Jiang
> DefaultHttpBinding's populateRequestParameters should be more flexible when checking the content type on POST
> -------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-2981
> URL: https://issues.apache.org/activemq/browse/CAMEL-2981
> Project: Apache Camel
> Issue Type: Improvement
> Components: camel-http
> Affects Versions: 2.3.0, 2.4.0
> Reporter: Patrick Dumontel
> Assignee: Willem Jiang
> Priority: Minor
>
> Line 126 in DefaultHttpBinding checks if the request's method is POST and the content type is "application/x-www-form-urlencoded". This unfortunately fails to populate the request parameters of a POST request where the content type includes the charset, e.g. "application/x-www-form-urlencoded; charset=UTF-8".
> Could the equals be changed to startsWith?
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.