You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (Created) (JIRA)" <ji...@apache.org> on 2011/10/21 10:54:32 UTC
[jira] [Created] (CAMEL-4571) JettyHttpProducer - Should accept
HTTP content type header may have quotes around charset, which some HTTP
servers may return
JettyHttpProducer - Should accept HTTP content type header may have quotes around charset, which some HTTP servers may return
-----------------------------------------------------------------------------------------------------------------------------
Key: CAMEL-4571
URL: https://issues.apache.org/jira/browse/CAMEL-4571
Project: Camel
Issue Type: Improvement
Components: camel-jetty
Affects Versions: 2.8.3
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 2.9.0
Some HTTP servers may return back HTTP headers as
{code}
Content-Type : text/plain; charset="utf-8"
{code}
Notice the quotes around the charset.
This causes Jetty to fail when getting the response body with an exception
{code}
java.io.UnsupportedEncodingException: "utf-8"
at java.lang.StringCoding.decode(StringCoding.java:170)[:1.6.0_26]
at java.lang.String.<init>(String.java:443)[:1.6.0_26]
at java.io.ByteArrayOutputStream.toString(ByteArrayOutputStream.java:187)[:1.6.0_26]
at org.eclipse.jetty.client.ContentExchange.getResponseContent(ContentExchange.java:51)[110:org.eclipse.jetty.client:7.4.1.v20110513]
at org.apache.camel.component.jetty.JettyContentExchange.getBody(JettyContentExchange.java:122)
{code}
We need to cater for this and remove quotes from charset.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Resolved] (CAMEL-4571) JettyHttpProducer - Should accept
HTTP content type header may have quotes around charset, which some HTTP
servers may return
Posted by "Claus Ibsen (Resolved) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-4571.
--------------------------------
Resolution: Fixed
we can now handle quotes around charset in jetty http producer
> JettyHttpProducer - Should accept HTTP content type header may have quotes around charset, which some HTTP servers may return
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-4571
> URL: https://issues.apache.org/jira/browse/CAMEL-4571
> Project: Camel
> Issue Type: Improvement
> Components: camel-jetty
> Affects Versions: 2.8.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.8.3, 2.9.0
>
>
> Some HTTP servers may return back HTTP headers as
> {code}
> Content-Type : text/plain; charset="utf-8"
> {code}
> Notice the quotes around the charset.
> This causes Jetty to fail when getting the response body with an exception
> {code}
> java.io.UnsupportedEncodingException: "utf-8"
> at java.lang.StringCoding.decode(StringCoding.java:170)[:1.6.0_26]
> at java.lang.String.<init>(String.java:443)[:1.6.0_26]
> at java.io.ByteArrayOutputStream.toString(ByteArrayOutputStream.java:187)[:1.6.0_26]
> at org.eclipse.jetty.client.ContentExchange.getResponseContent(ContentExchange.java:51)[110:org.eclipse.jetty.client:7.4.1.v20110513]
> at org.apache.camel.component.jetty.JettyContentExchange.getBody(JettyContentExchange.java:122)
> {code}
> We need to cater for this and remove quotes from charset.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Updated] (CAMEL-4571) JettyHttpProducer - Should accept
HTTP content type header may have quotes around charset, which some HTTP
servers may return
Posted by "Claus Ibsen (Updated) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-4571:
-------------------------------
Affects Version/s: (was: 2.8.3)
2.8.0
Fix Version/s: 2.8.3
> JettyHttpProducer - Should accept HTTP content type header may have quotes around charset, which some HTTP servers may return
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-4571
> URL: https://issues.apache.org/jira/browse/CAMEL-4571
> Project: Camel
> Issue Type: Improvement
> Components: camel-jetty
> Affects Versions: 2.8.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.8.3, 2.9.0
>
>
> Some HTTP servers may return back HTTP headers as
> {code}
> Content-Type : text/plain; charset="utf-8"
> {code}
> Notice the quotes around the charset.
> This causes Jetty to fail when getting the response body with an exception
> {code}
> java.io.UnsupportedEncodingException: "utf-8"
> at java.lang.StringCoding.decode(StringCoding.java:170)[:1.6.0_26]
> at java.lang.String.<init>(String.java:443)[:1.6.0_26]
> at java.io.ByteArrayOutputStream.toString(ByteArrayOutputStream.java:187)[:1.6.0_26]
> at org.eclipse.jetty.client.ContentExchange.getResponseContent(ContentExchange.java:51)[110:org.eclipse.jetty.client:7.4.1.v20110513]
> at org.apache.camel.component.jetty.JettyContentExchange.getBody(JettyContentExchange.java:122)
> {code}
> We need to cater for this and remove quotes from charset.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (CAMEL-4571) JettyHttpProducer - Should accept
HTTP content type header may have quotes around charset, which some HTTP
servers may return
Posted by "Willem Jiang (Commented) (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/CAMEL-4571?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13132734#comment-13132734 ]
Willem Jiang commented on CAMEL-4571:
-------------------------------------
Merged the patch into camel-2.7.x branch.
> JettyHttpProducer - Should accept HTTP content type header may have quotes around charset, which some HTTP servers may return
> -----------------------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-4571
> URL: https://issues.apache.org/jira/browse/CAMEL-4571
> Project: Camel
> Issue Type: Improvement
> Components: camel-jetty
> Affects Versions: 2.8.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 2.8.3, 2.9.0
>
>
> Some HTTP servers may return back HTTP headers as
> {code}
> Content-Type : text/plain; charset="utf-8"
> {code}
> Notice the quotes around the charset.
> This causes Jetty to fail when getting the response body with an exception
> {code}
> java.io.UnsupportedEncodingException: "utf-8"
> at java.lang.StringCoding.decode(StringCoding.java:170)[:1.6.0_26]
> at java.lang.String.<init>(String.java:443)[:1.6.0_26]
> at java.io.ByteArrayOutputStream.toString(ByteArrayOutputStream.java:187)[:1.6.0_26]
> at org.eclipse.jetty.client.ContentExchange.getResponseContent(ContentExchange.java:51)[110:org.eclipse.jetty.client:7.4.1.v20110513]
> at org.apache.camel.component.jetty.JettyContentExchange.getBody(JettyContentExchange.java:122)
> {code}
> We need to cater for this and remove quotes from charset.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira