You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "KWON BYUNGCHANG (JIRA)" <ji...@apache.org> on 2016/03/10 08:43:40 UTC

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

     [ https://issues.apache.org/jira/browse/YARN-4666?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

KWON BYUNGCHANG updated YARN-4666:
----------------------------------
    Attachment: YARN-4666.patch

I've attached patch.


> 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
>    Affects Versions: 2.7.1
>            Reporter: Antonio Bellezza
>         Attachments: YARN-4666.patch
>
>
> 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)