Re: Review Request 52105: Avoid redirect loop in `/redirect/xxx` in the master.

2016-09-28 Thread Charles Allen
d to 127.0.0.1 (127.0.0.1) port 5050 (#0) > GET /master/redirect_foo HTTP/1.1 > Host: 127.0.0.1:5050 > User-Agent: curl/7.43.0 > Accept: */* > < HTTP/1.1 404 Not Found < Date: Wed, 28 Sep 2016 17:49:54 GMT < Content-Length: 0 < * Connection #0 to host 127.0.0.1 left intact ``` It is worth noting that in this PR /master/redirect/ and /redirect/ return 404, not 307. This behavior is consistent with master. Thanks, Charles Allen

Re: Review Request 52105: Avoid redirect loop in `/redirect/xxx` in the master.

2016-09-28 Thread Charles Allen
ot;/redirect/") || > > + strings::startsWith(request.url.path, > > + "/" + master->self().id + > > "/redirect/")) { > > +// Stop redirection here to avoid fall into an infinite > >

Re: Review Request 52105: Avoid redirect loop in `/redirect/xxx` in the master.

2016-09-28 Thread Charles Allen
uest to the > > master. > > ``` Fixed - Charles --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/52105/#review150313 -------

Re: Review Request 52105: Avoid redirect loop in `/redirect/xxx` in the master.

2016-09-28 Thread Charles Allen
. * Connected to 127.0.0.1 (127.0.0.1) port 5050 (#0) > GET /master/redirect_foo HTTP/1.1 > Host: 127.0.0.1:5050 > User-Agent: curl/7.43.0 > Accept: */* > < HTTP/1.1 404 Not Found < Date: Wed, 28 Sep 2016 17:49:54 GMT < Content-Length: 0 < * Connection #0 to host 127.0.0.1 left intact ``` It is worth noting that in this PR /master/redirect/ and /redirect/ return 404, not 307. This behavior is consistent with master. Thanks, Charles Allen

Re: Review Request 52105: Avoid redirect loop in `/redirect/xxx` in the master.

2016-09-28 Thread Charles Allen
t; Date: Wed, 28 Sep 2016 17:49:54 GMT < Content-Length: 0 < * Connection #0 to host 127.0.0.1 left intact ``` It is worth noting that in this PR /master/redirect/ and /redirect/ return 404, not 307. This behavior is consistent with master. Thanks, Charles Allen

Re: Review Request 52105: Prevent `/redirect/foo` loop.

2016-09-28 Thread Charles Allen
re to avoid fall into an infinite > > redirection loop. > > +return NotFound(); > >} else { > > ``` > > > > in the previous comment. Sure, I can do that. - Charles --------

Re: Review Request 52105: Prevent `/redirect/foo` loop.

2016-09-23 Thread Charles Allen
> > would get unexpected result. So how about just return 404 which consistent > > with `/redirect/` > > > > ``` > > // When current master is not the leader, redirect to the leading > > master. > > if (!master->elected()) { > >

Re: Review Request 52105: Prevent `/redirect/foo` loop.

2016-09-23 Thread Charles Allen
.1 > Host: 127.0.0.1:5050 > User-Agent: curl/7.43.0 > Accept: */* > < HTTP/1.1 404 Not Found < Date: Fri, 23 Sep 2016 17:30:55 GMT < Content-Length: 0 < * Connection #0 to host 127.0.0.1 left intact ``` It is worth noting that in this PR /master/redirect/ and /redirect/ return 404, not 307. This behavior is consistent with master. Thanks, Charles Allen

Re: Review Request 52105: Prevent `/redirect/foo` loop.

2016-09-23 Thread Charles Allen
.org/r/52105/#review150185 ------- On Sept. 22, 2016, 8:47 p.m., Charles Allen wrote: > > --- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apach

Re: Review Request 52105: Prevent `/redirect/foo` loop.

2016-09-22 Thread Charles Allen
ks`. Could you elaborate the user > > cases about this? Because we have handled the endpoint redirection > > automatically internal. For example, when you request > > `http://NON_LEADING_MASTER:5050/master/frameworks`, mesos master would > > redirect to `http://LEADING

Re: Review Request 52105: Prevent `/redirect/foo` loop.

2016-09-22 Thread Charles Allen
050 (#0) > GET /redirectNOTFOUND/foo/bar HTTP/1.1 > Host: 127.0.0.1:5050 > User-Agent: curl/7.43.0 > Accept: */* > < HTTP/1.1 404 Not Found < Date: Thu, 22 Sep 2016 20:35:47 GMT < Content-Length: 0 < * Connection #0 to host 127.0.0.1 left intact ``` It is worth noting that in this PR /master/redirect/ and /redirect/ return 404, not 307. This behavior is consistent with master. Thanks, Charles Allen

Re: Review Request 52105: Prevent `/redirect/foo` loop.

2016-09-22 Thread Charles Allen
l/7.43.0 > Accept: */* > < HTTP/1.1 307 Temporary Redirect < Date: Tue, 20 Sep 2016 23:13:43 GMT < Location: //10.17.97.185:5050/test < Content-Length: 0 < * Connection #0 to host 127.0.0.1 left intact ``` It is worth noting that in this PR /master/redirect/ and /redirect/ return 404, not 307. This behavior is consistent with master. Thanks, Charles Allen

Re: Review Request 52105: Add smarter master redirects.

2016-09-22 Thread Charles Allen
ks`. Could you elaborate the user > > cases about this? Because we have handled the endpoint redirection > > automatically internal. For example, when you request > > `http://NON_LEADING_MASTER:5050/master/frameworks`, mesos master would > > redirect to `http://LEADING

Re: Review Request 52105: Add smarter master redirects.

2016-09-21 Thread Charles Allen
--- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/52105/#review149824 ----------- On Sept. 21, 2016, 3:03 a.m., Charles Allen wrote: > > -

Review Request 52105: Add smarter master redirects.

2016-09-20 Thread Charles Allen
n: //10.17.97.185:5050/test < Content-Length: 0 < * Connection #0 to host 127.0.0.1 left intact ``` It is worth noting that in this PR /master/redirect/ and /redirect/ return 404, not 307. This behavior is consistent with master. Thanks, Charles Allen

Review Request 50862: [MESOS-5929] Update app.js to handle petabyte scale

2016-08-05 Thread Charles Allen
to app.js by breakpointing in the javascript using chrome developer tools, and modifying the javascript in the developer tools. This caused TB scale to display properly. Thanks, Charles Allen

Review Request 49483: Add Charles Allen to contributors

2016-06-30 Thread Charles Allen
Allen to contributors Diffs - docs/contributors.yaml 04451e3e040aeb155feee74c789677085e6544f5 Diff: https://reviews.apache.org/r/49483/diff/ Testing --- Thanks, Charles Allen

Re: Review Request 49422: Have maven run in batch mode

2016-06-30 Thread Charles Allen
at 111.1 KB/sec) ``` - Charles --- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/49422/#review140198 --- On June 30, 2016, 3:59 a.m., Char

Review Request 49422: Have maven run in batch mode

2016-06-29 Thread Charles Allen
cluster. Works fine. Thanks, Charles Allen