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

Ilya Pronin updated MESOS-6871:
-------------------------------
    Description: 
{{process::http::URL::parse()}} can mistake the host part for the scheme 
because of unsuitable use of {{std::string::find_first_of()}} method which 
looks for the first character equal to one of the characters in the given 
sequence.

E.g. {{URL::parse("http/abcdef")}} will construct a {{URL}} that represents 
{{http://cdef/}}.

Review request: https://reviews.apache.org/r/55177/

  was:
{{process::http::URL::parse()}} can mistake the host part for the scheme 
because of unsuitable use of {{std::string::find_first_of()}} method which 
looks for the first character equal to one of the characters in the given 
sequence.

E.g. {{URL::parse("http/abcdef")}} will construct an {{URL}} that represents 
{{http://cdef/}}.

Review request: https://reviews.apache.org/r/55177/


> Scheme handling in libprocess URL::parse()
> ------------------------------------------
>
>                 Key: MESOS-6871
>                 URL: https://issues.apache.org/jira/browse/MESOS-6871
>             Project: Mesos
>          Issue Type: Bug
>          Components: libprocess
>    Affects Versions: 1.1.0
>            Reporter: Ilya Pronin
>            Assignee: Ilya Pronin
>
> {{process::http::URL::parse()}} can mistake the host part for the scheme 
> because of unsuitable use of {{std::string::find_first_of()}} method which 
> looks for the first character equal to one of the characters in the given 
> sequence.
> E.g. {{URL::parse("http/abcdef")}} will construct a {{URL}} that represents 
> {{http://cdef/}}.
> Review request: https://reviews.apache.org/r/55177/



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

Reply via email to