[ 
https://issues.apache.org/jira/browse/MESOS-6210?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15507096#comment-15507096
 ] 

haosdent commented on MESOS-6210:
---------------------------------

Hi, [~drcrallen] thanks a lot for your help! For http endpoints test cases, you 
may take a look at 
https://github.com/apache/mesos/blob/master/src/tests/master_tests.cpp#L3044

But for redirect, it may a bit different to write test cases because it 
requires we start multiple running masters in the test cases which we have not 
supported yet. In this case, we test it manually before.

> Master redirect with suffix gets in redirect loop
> -------------------------------------------------
>
>                 Key: MESOS-6210
>                 URL: https://issues.apache.org/jira/browse/MESOS-6210
>             Project: Mesos
>          Issue Type: Bug
>          Components: HTTP API
>            Reporter: Charles Allen
>              Labels: newbie
>
> Trying to go to a URI like 
> {{http://SOME_MASTER:5050/master/redirect/master/frameworks}} ends up in a 
> redirect loop.
> The expected behavior is to either not support anything after {{redirect}} in 
> the path (redirect must be handled by a smart client), or to redirect to the 
> suffix (redirect can be handled by a dumb client).



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

Reply via email to