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

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

Benjamin Bannier created MESOS-8329:
---------------------------------------

             Summary: 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


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)