You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@guacamole.apache.org by "Michael Jumper (JIRA)" <ji...@apache.org> on 2017/09/23 20:29:01 UTC
[jira] [Resolved] (GUACAMOLE-385) HTTP tunnel uses incorrect
content type for write operations
[ https://issues.apache.org/jira/browse/GUACAMOLE-385?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Michael Jumper resolved GUACAMOLE-385.
--------------------------------------
Resolution: Fixed
Fix Version/s: 0.9.14-incubating
> HTTP tunnel uses incorrect content type for write operations
> ------------------------------------------------------------
>
> Key: GUACAMOLE-385
> URL: https://issues.apache.org/jira/browse/GUACAMOLE-385
> Project: Guacamole
> Issue Type: Bug
> Components: guacamole-common-js
> Affects Versions: 0.9.13-incubating
> Environment: Apache Tomcat >= 7
> Servlet 3.0
> Reporter: Ignasi Barrera
> Fix For: 0.9.14-incubating
>
>
> Some implementations of the HTTP servlet request do not allow a free use of the {{getInputStream()}} and {{getParameter()}} methods. This is especially annoying in Apache Tomcat >= 7 and Servlet 3.0, where invoking the {{getParameter()}} method consumes the {{InputStream}} (making later uses of it fail) and consuming the InputStream makes later {{getParameter()}} calls fail to find the parameters, as the request body has been consumed.
> If the request parameters are accessed in the tunnel servlet or a previous filter, the {{doWrite}} method in the base HTTP tunnel servlet always gets an already consumed {{InputStream}} and does not write anything to the socket, causing an eventual timeout in the client.
> This only happens if the media type of the request is {{application/x-www-form-urlencoded}}.
> This is related to: [GUAC-1252|https://glyptodon.org/jira/browse/GUAC-1252].
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)