Re: Review Request 44337: Updated utils for URI constructor streaming.

2016-07-09 Thread Joris Van Remoortere

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44337/#review141568
---



Closing this review due to inactivity. Please see our 
[guidelines](https://github.com/apache/mesos/blob/master/docs/reopening-reviews.md)
 for reopening reviews.

- Joris Van Remoortere


On March 4, 2016, 3 a.m., Guangya Liu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44337/
> ---
> 
> (Updated March 4, 2016, 3 a.m.)
> 
> 
> Review request for mesos and Jie Yu.
> 
> 
> Bugs: MESOS-4851
> https://issues.apache.org/jira/browse/MESOS-4851
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Updated utils for URI constructor streaming.
> 
> 
> Diffs
> -
> 
>   src/tests/uri_tests.cpp 1d33ab110bed7c0b7ecfa5d608965da5a1729562 
>   src/uri/utils.cpp 3940dc041c1783eec9e7c950402fd7c42e620d8e 
> 
> Diff: https://reviews.apache.org/r/44337/diff/
> 
> 
> Testing
> ---
> 
> make
> make check
> ./bin/mesos-tests.sh --gtest_filter="UriTest.*"
> 
> 
> Thanks,
> 
> Guangya Liu
> 
>



Re: Review Request 44337: Updated utils for URI constructor streaming.

2016-03-03 Thread haosdent huang

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44337/#review122031
---




src/uri/utils.cpp (line 58)


How about `uri.path().empty()`?


- haosdent huang


On March 4, 2016, 3 a.m., Guangya Liu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44337/
> ---
> 
> (Updated March 4, 2016, 3 a.m.)
> 
> 
> Review request for mesos and Jie Yu.
> 
> 
> Bugs: MESOS-4851
> https://issues.apache.org/jira/browse/MESOS-4851
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Updated utils for URI constructor streaming.
> 
> 
> Diffs
> -
> 
>   src/tests/uri_tests.cpp 1d33ab110bed7c0b7ecfa5d608965da5a1729562 
>   src/uri/utils.cpp 3940dc041c1783eec9e7c950402fd7c42e620d8e 
> 
> Diff: https://reviews.apache.org/r/44337/diff/
> 
> 
> Testing
> ---
> 
> make
> make check
> ./bin/mesos-tests.sh --gtest_filter="UriTest.*"
> 
> 
> Thanks,
> 
> Guangya Liu
> 
>



Re: Review Request 44337: Updated utils for URI constructor streaming.

2016-03-03 Thread Guangya Liu

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44337/
---

(Updated 三月 4, 2016, 3 a.m.)


Review request for mesos and Jie Yu.


Bugs: MESOS-4851
https://issues.apache.org/jira/browse/MESOS-4851


Repository: mesos


Description
---

Updated utils for URI constructor streaming.


Diffs (updated)
-

  src/tests/uri_tests.cpp 1d33ab110bed7c0b7ecfa5d608965da5a1729562 
  src/uri/utils.cpp 3940dc041c1783eec9e7c950402fd7c42e620d8e 

Diff: https://reviews.apache.org/r/44337/diff/


Testing
---

make
make check
./bin/mesos-tests.sh --gtest_filter="UriTest.*"


Thanks,

Guangya Liu



Re: Review Request 44337: Updated utils for URI constructor streaming.

2016-03-03 Thread Guangya Liu


> On 三月 3, 2016, 7:16 p.m., Jie Yu wrote:
> > src/uri/utils.cpp, lines 57-61
> > 
> >
> > OK, this effectively disallowed URI's like:
> > ```
> > mailto:john@example.com
> > ```
> > 
> > I think according to URI rfc, 'path' should start with '/' if 
> > 'authority' (i.e., host) is present. That means the docker URI we create 
> > using uri::docker::xxx might be an invalid URI according to RFC.
> > 
> > One option is that we callout in uri.proto that 'path' does not include 
> > the leading '/' if host is specified. But that means for `file:///xxx/yyy`, 
> > the 'path' part is `xxx/yyy`, rather than `/xxx/yyy`. (same for http). Same 
> > for `http://xxx/yyy`.
> > 
> > We can still allow users to specify '/xxx/yyy' as the 'path' when 
> > calling uri::http(..) or uri::file(..), but we need to normalize it and 
> > remove te leading slash if host is specified.

I was adding some check to see if the `uri.path()` is empty, then do not add 
the slash.


- Guangya


---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44337/#review121909
---


On 三月 3, 2016, 3:03 p.m., Guangya Liu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44337/
> ---
> 
> (Updated 三月 3, 2016, 3:03 p.m.)
> 
> 
> Review request for mesos and Jie Yu.
> 
> 
> Bugs: MESOS-4851
> https://issues.apache.org/jira/browse/MESOS-4851
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Updated utils for URI constructor streaming.
> 
> 
> Diffs
> -
> 
>   src/tests/uri_tests.cpp 1d33ab110bed7c0b7ecfa5d608965da5a1729562 
>   src/uri/utils.cpp 3940dc041c1783eec9e7c950402fd7c42e620d8e 
> 
> Diff: https://reviews.apache.org/r/44337/diff/
> 
> 
> Testing
> ---
> 
> make
> make check
> ./bin/mesos-tests.sh --gtest_filter="UriTest.*"
> 
> 
> Thanks,
> 
> Guangya Liu
> 
>



Re: Review Request 44337: Updated utils for URI constructor streaming.

2016-03-03 Thread Jie Yu

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44337/#review121909
---




src/uri/utils.cpp (lines 57 - 61)


OK, this effectively disallowed URI's like:
```
mailto:john@example.com
```

I think according to URI rfc, 'path' should start with '/' if 'authority' 
(i.e., host) is present. That means the docker URI we create using 
uri::docker::xxx might be an invalid URI according to RFC.

One option is that we callout in uri.proto that 'path' does not include the 
leading '/' if host is specified. But that means for `file:///xxx/yyy`, the 
'path' part is `xxx/yyy`, rather than `/xxx/yyy`. (same for http). Same for 
`http://xxx/yyy`.

We can still allow users to specify '/xxx/yyy' as the 'path' when calling 
uri::http(..) or uri::file(..), but we need to normalize it and remove te 
leading slash if host is specified.


- Jie Yu


On March 3, 2016, 3:03 p.m., Guangya Liu wrote:
> 
> ---
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/44337/
> ---
> 
> (Updated March 3, 2016, 3:03 p.m.)
> 
> 
> Review request for mesos and Jie Yu.
> 
> 
> Bugs: MESOS-4851
> https://issues.apache.org/jira/browse/MESOS-4851
> 
> 
> Repository: mesos
> 
> 
> Description
> ---
> 
> Updated utils for URI constructor streaming.
> 
> 
> Diffs
> -
> 
>   src/tests/uri_tests.cpp 1d33ab110bed7c0b7ecfa5d608965da5a1729562 
>   src/uri/utils.cpp 3940dc041c1783eec9e7c950402fd7c42e620d8e 
> 
> Diff: https://reviews.apache.org/r/44337/diff/
> 
> 
> Testing
> ---
> 
> make
> make check
> ./bin/mesos-tests.sh --gtest_filter="UriTest.*"
> 
> 
> Thanks,
> 
> Guangya Liu
> 
>



Review Request 44337: Updated utils for URI constructor streaming.

2016-03-03 Thread Guangya Liu

---
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/44337/
---

Review request for mesos and Jie Yu.


Bugs: MESOS-4851
https://issues.apache.org/jira/browse/MESOS-4851


Repository: mesos


Description
---

Updated utils for URI constructor streaming.


Diffs
-

  src/tests/uri_tests.cpp 1d33ab110bed7c0b7ecfa5d608965da5a1729562 
  src/uri/utils.cpp 3940dc041c1783eec9e7c950402fd7c42e620d8e 

Diff: https://reviews.apache.org/r/44337/diff/


Testing
---

make
make check
./bin/mesos-tests.sh --gtest_filter="UriTest.*"


Thanks,

Guangya Liu