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

Ashwin Murthy commented on MESOS-3902:
--------------------------------------

I tried to repro this in our production mesos cluster. I see the following:

ashwinm@mgmt01-sjc1:~$ curl -v -X POST -H "Content-Type: application/json" 
--data @body.json 
http://compute34-sjc1.prod.uber.internal:5050/api/v1/scheduler 
* About to connect() to compute34-sjc1.prod.uber.internal port 5050 (#0)
*   Trying 10.162.29.25... connected
> POST /api/v1/scheduler HTTP/1.1
> User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.2d 
> zlib/1.2.3.4 libidn/1.23 librtmp/2.3
> Host: compute34-sjc1.prod.uber.internal:5050
> Accept: */*
> Content-Type: application/json
> Content-Length: 120
> 
* upload completely sent off: 120out of 120 bytes
< HTTP/1.1 307 Temporary Redirect
< Date: Wed, 16 Mar 2016 05:01:13 GMT
< Location: //compute35-sjc1.prod.uber.internal:5050
< Content-Length: 0
< 
* Connection #0 to host compute34-sjc1.prod.uber.internal left intact
* Closing connection #0


> The Location header when non-leading master redirects to leading master is 
> incomplete.
> --------------------------------------------------------------------------------------
>
>                 Key: MESOS-3902
>                 URL: https://issues.apache.org/jira/browse/MESOS-3902
>             Project: Mesos
>          Issue Type: Bug
>          Components: HTTP API, master
>    Affects Versions: 0.25.0
>         Environment: 3 masters, 10 slaves
>            Reporter: Ben Whitehead
>            Assignee: Ashwin Murthy
>              Labels: mesosphere
>
> The master now sets a location header, but it's incomplete. The path of the 
> URL isn't set. Consider an example:
> {code}
> > cat /tmp/subscribe-1072944352375841456 | httpp POST 
> > 127.1.0.3:5050/api/v1/scheduler Content-Type:application/x-protobuf
> POST /api/v1/scheduler HTTP/1.1
> Accept: application/json
> Accept-Encoding: gzip, deflate
> Connection: keep-alive
> Content-Length: 123
> Content-Type: application/x-protobuf
> Host: 127.1.0.3:5050
> User-Agent: HTTPie/0.9.0
> +-----------------------------------------+
> | NOTE: binary data not shown in terminal |
> +-----------------------------------------+
> HTTP/1.1 307 Temporary Redirect
> Content-Length: 0
> Date: Fri, 26 Feb 2016 00:54:41 GMT
> Location: //127.1.0.1:5050
> {code}



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

Reply via email to