You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@trafficcontrol.apache.org by GitBox <gi...@apache.org> on 2019/03/06 21:56:29 UTC
[GitHub] [trafficcontrol] guzzijason opened a new issue #3384: Traffic
Router: HTTP-routed delivery service handles 'format=json' qstring
incorrectly
guzzijason opened a new issue #3384: Traffic Router: HTTP-routed delivery service handles 'format=json' qstring incorrectly
URL: https://github.com/apache/trafficcontrol/issues/3384
Observed in Traffic Router 2.3.1-9053
When sending query string `?format=json` in a request to a non-steering HTTP-routed DS (HTTP_LIVE_NATIONAL in this case), TR intercepts this request and does not redirect as expected. Only seems to happen with json.
Examples of correct behavior:
```
jtucke01@ARGO ~$ curl -I -X GET 'http://ccr.[REDACTED]/foo/bar'
HTTP/1.1 302 Found
Location: http://[REDACTED]/foo/bar
Content-Length: 0
Date: Wed, 06 Mar 2019 21:54:04 GMT
jtucke01@ARGO ~$ curl -I -X GET 'http://ccr.[REDACTED]/foo/bar?format=xml'
HTTP/1.1 302 Found
Location: http://[REDACTED]/foo/bar?format=xml
Content-Length: 0
Date: Wed, 06 Mar 2019 21:54:08 GMT
```
Example of unexpected behavior:
```
jtucke01@ARGO ~$ curl -I -X GET 'http://ccr.[REDACTED]/foo/bar?format=json'
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 101
Date: Wed, 06 Mar 2019 21:55:46 GMT
```
----------------------------------------------------------------
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