You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Klaus Ma (JIRA)" <ji...@apache.org> on 2015/12/02 02:03:11 UTC

[jira] [Commented] (MESOS-4034) URLs with doubled slashes return 404

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

Klaus Ma commented on MESOS-4034:
---------------------------------

That's because we use {{tokenzie("/")}} to get the path info; so if there're two {{/}}, the index is wrong :). Should we build related function for URL? e.g. URL sub-path parsing.

> URLs with doubled slashes return 404
> ------------------------------------
>
>                 Key: MESOS-4034
>                 URL: https://issues.apache.org/jira/browse/MESOS-4034
>             Project: Mesos
>          Issue Type: Bug
>    Affects Versions: 0.25.0
>            Reporter: James Peach
>            Priority: Minor
>
> The Mesos 0.25 HTTP request router no longer coalesces doubled slashes in the URL path. Previous versions did so this; we noticed when we upgraded a cluster and our metrics poller started getting 404s.
> {code}
> $ curl -v http://localhost:5050//metrics/snapshot
> * About to connect() to localhost port 5050 (#0)
> *   Trying 17.138.64.22... connected
> * Connected to localhost (127.0.0.1) port 5050 (#0)
> > GET //metrics/snapshot HTTP/1.1
> > User-Agent: curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.14.0.0 zlib/1.2.3 libidn/1.18 libssh2/1.4.2
> > Host: localhost:5050
> > Accept: */*
> >
> < HTTP/1.1 404 Not Found
> < Date: Wed, 02 Dec 2015 00:50:57 GMT
> < Content-Length: 0
> <
> * Connection #0 to host localhost left intact
> * Closing connection #0
> {code}



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