You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by GitBox <gi...@apache.org> on 2019/11/05 03:27:54 UTC

[GitHub] [knox] risdenk opened a new pull request #176: KNOX-1842 - Upgrade httpclient to 4.5.10

risdenk opened a new pull request #176: KNOX-1842 - Upgrade httpclient to 4.5.10
URL: https://github.com/apache/knox/pull/176
 
 
   ## What changes were proposed in this pull request?
   
   HttpClient 4.5.7 broke url normalization. Knox
   didn't have any tests for this case and so we
   had to revert after the fact. HttpClient 4.5.8
   fixed a lot of the url normalization and some
   libraries decided to turn url normalization off.
   
   This commit does the following:
   * Adds a test for %2F - KNOX-1005
       * This test passes under HttpClient 4.5.6 and 4.5.8+
       * It breaks as expected under HttpClient 4.5.7
   * Adds an explicit config enabling url normalization
       * Ensures that we are in control of url normalization
       * Adds a test for this configuration as well
   * Test with both HttpClient normalization enabled and disabled
       * `rest-assured` doesn't expose `RequestConfig` to disable
   url normalization
       * Shows how to use HttpClient in `GatewayBasicFuncTest`
   
   All the url safe characters like %2F are fixed by HTTPCLIENT-1968.
   
   The case of `/abc///def` is normalized to `/abc/def` the same
   way that Knox does internally with `getPathInfo` and Java URI.
   
   ## How was this patch tested?
   
   * Tested against multiple versions of HttpClient (4.5.6, 4.5.7, and 4.5.10)
   * `mvn -T.5C clean verify -Ppackage,release -Dshellcheck`

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services