You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Antonio Bellezza (JIRA)" <ji...@apache.org> on 2016/02/02 19:04:39 UTC

[jira] [Created] (YARN-4666) API redirects from a standby resource manager drop query string parameters

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)