You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@mesos.apache.org by "Alexander Rukletsov (JIRA)" <ji...@apache.org> on 2017/12/14 14:33:00 UTC

[jira] [Updated] (MESOS-8329) Handling of URLs with multiple consecutive slashes is inconsistent

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

Alexander Rukletsov updated MESOS-8329:
---------------------------------------
    Labels: newbie++  (was: )

> Handling of URLs with multiple consecutive slashes is inconsistent
> ------------------------------------------------------------------
>
>                 Key: MESOS-8329
>                 URL: https://issues.apache.org/jira/browse/MESOS-8329
>             Project: Mesos
>          Issue Type: Bug
>          Components: libprocess
>    Affects Versions: 1.5.0
>            Reporter: Benjamin Bannier
>              Labels: newbie++
>
> The behavior of URLs containing multiple consecutive slashes is inconsistent, e.g., requesting {{/master//maintenance/schedule}} from a Mesos master returns a {{200 OK}}, while {{/master/maintenance//schedule}} returns a {{404 Not Found}}.
> This seems to be due to [us trimming slashes around process ids|https://github.com/apache/mesos/blob/master/3rdparty/libprocess/src/process.cpp#L3526-L3529] and no extra normalization of paths when finding handlers or installing handlers (see e.g., [here|https://github.com/apache/mesos/blob/master/3rdparty/libprocess/src/process.cpp#L3531-L3538] or [here|https://github.com/apache/mesos/blob/master/3rdparty/libprocess/src/process.cpp#L3714-L3730]).



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)