[ 
https://issues.apache.org/jira/browse/TS-4022?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15004683#comment-15004683
 ] 

Daniel Xu commented on TS-4022:
-------------------------------

Ok, then I think what I was seeing was expected behavior. 

To clarify what I previously said about the 404, 
I realized a little later that the 404s were happening because the remap rules 
did a greedy substitution and left a bunch of trailing characters in the URI. 
What I put in the bug description is what had happened to the best of my 
knowledge.

> Incorrect behavior with remap prefix matching
> ---------------------------------------------
>
>                 Key: TS-4022
>                 URL: https://issues.apache.org/jira/browse/TS-4022
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>            Reporter: Daniel Xu
>
> If you have two remap rules like this:
> `map https://localhost:8081/1 https://httpbin.org/html`
> `map https://localhost:8081/10 https://httpbin.org/html`
> When connecting to `https://localhost:8081/10`, ATS will first replace 
> `https://localhost:8081/1` with `https://httpbin.org/html`, and then append 
> the `0` to the end. 
> So your final URI will look like:
> `https://httpbin.org/html0`, which should not be the case.
> If two remaps are explicitly specified, both should work.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to