osintegrator commented on issue #7996:
URL: https://github.com/apache/trafficserver/issues/7996#issuecomment-868958476


   Steps to reproduce:
   1. Run ATS 9.0.1 or 9.0.2 with such configuration:
   ```
   # Enable cache_range_requests and cachekey plugins
   echo "cachekey.so --include-headers=Range --remove-all-params=true" >> 
etc/trafficserver/plugin.config
   echo "cache_range_requests.so --no-modify-cachekey" >> 
etc/trafficserver/plugin.config
   # Enable debug plugin
   echo "xdebug.so" >> etc/trafficserver/plugin.config
   # Enable automatic remapping
   export PROXY_CONFIG_URL_REMAP_REMAP_REQUIRED=0
   # Disable checking headers from origin
   export PROXY_CONFIG_HTTP_CACHE_REQUIRED_HEADERS=0
   # Run it!
   ./bin/traffic_server
   ```
   2. Make any request (forward or reverse) with `Range` and `X-Debug: 
X-Cache-Key` headers:
   ```
   curl  -H 'X-Debug: X-Cache-Key' -v -o foobar -H "Host: some-host:8080" -H 
"Range: bytes=1000-2000" 
"http://localhost:8080/content/?param1=123456&param2=67890";
   ```
   3. You will get such result:
   ```
   > GET /path/?param1=123456&param2=67890 HTTP/1.1
   > Host: some-host:8080
   > User-Agent: curl/7.74.0
   > Accept: */*
   > X-Debug: X-Cache-Key
   > Range: bytes=1000-2000
   > 
   * Mark bundle as not supporting multiuse
   < HTTP/1.1 502 Cannot find server.
   < Date: Sat, 26 Jun 2021 06:51:10 GMT
   < Connection: keep-alive
   < Server: ATS/9.0.2
   < Cache-Control: no-store
   < Content-Type: text/html
   < Content-Language: en
   < X-Cache-Key: /some-host/8080/path/
   < Content-Length: 391
   < 
   
   ```
   This is the wrong result, because you should get 
`/some-host/8080/Range:bytes=start-end/path/` instead of `/some-host/8080/path/`


-- 
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.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to