hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Bellezza (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-4666) API redirects from a standby resource manager drop query string parameters
Date Tue, 02 Feb 2016 18:04:39 GMT
Antonio Bellezza created YARN-4666:
--------------------------------------

             Summary: API redirects from a standby resource manager drop query string parameters
                 Key: YARN-4666
                 URL: https://issues.apache.org/jira/browse/YARN-4666
             Project: Hadoop YARN
          Issue Type: Bug
          Components: resourcemanager
            Reporter: Antonio Bellezza


When making an API request with a query string to a secondary resource manager, the redirection
doesn't contain the query string.
Example:

{code}
$ curl -v -H "Accept: application/json" "http://standby-server.mydomain:8088/ws/v1/cluster/apps?limit=10&user=someuser"
* Hostname was NOT found in DNS cache
*   Trying 192.168.0.123...
* Connected to standby-server.mydomain (192.168.0.123) port 8088 (#0)
> GET /ws/v1/cluster/apps?limit=10&user=someuser HTTP/1.1
> User-Agent: curl/7.35.0
> Host: standby-server.mydomain:8088
> Accept: application/json
> 
< HTTP/1.1 307 TEMPORARY_REDIRECT
< Cache-Control: no-cache
< Expires: Fri, 22 Jan 2016 16:43:42 GMT
< Date: Fri, 22 Jan 2016 16:43:42 GMT
< Pragma: no-cache
< Expires: Fri, 22 Jan 2016 16:43:42 GMT
< Date: Fri, 22 Jan 2016 16:43:42 GMT
< Pragma: no-cache
< Content-Type: text/plain; charset=UTF-8
< Location: http://active-server.mydomain:8088/ws/v1/cluster/apps
< Content-Length: 105
* Server Jetty(6.1.26.hwx) is not blacklisted
< Server: Jetty(6.1.26.hwx)
< 
This is standby RM. The redirect url is: http://active-server.mydomain:8088/ws/v1/cluster/apps
* Connection #0 to host standby-server.mydomain left intact
{code}

This may depend on RMWebAppFilter generating the redirect path from request.getRequestURI(),
which does not include query string parameters.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message