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

Review request for mesos and Benjamin Mahler.


Repository: mesos


Description
-------

This test currently fails with:

```
src\tests\files_tests.cpp(346): error: Value of: (response)->status
  Actual: "404 Not Found"
Expected: OK().status
Which is: "200 OK"
    Body: ""
src\tests\files_tests.cpp(347): error: Value of: (response)->body
  Actual: ""
Expected: stringify(expected)
Which is: "{\"data\":\"body\"}"
```

This is due to libprocess decoding the query in both `http::get()` and
in the `DataDecoder`. However, libprocess only encodes once. When the
user has a query with a literal ASCII escape sequence, it is expected
that it should only need to be encoded once. That is `foo%3Abar`
should be represented in the query as `foo%253Abar`. Because
libprocess decodes twice, but currently only encodes once, this query
erroneously becomes `foo:bar`. The added test demonstrates how this
breaks something such as the `files` server.


Diffs
-----

  src/tests/files_tests.cpp d09279077ec704167991933349ee943ab44d0aa9 


Diff: https://reviews.apache.org/r/68420/diff/1/


Testing
-------


Thanks,

Andrew Schwartzmeyer

Reply via email to