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)

Reply via email to