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

ASF subversion and git services commented on TS-1868:
-----------------------------------------------------

Commit f812fd05b69118a0cd20a594ce94112ca3998c4b in branch refs/heads/master 
from [~thachtran]
[ https://git-wip-us.apache.org/repos/asf?p=trafficserver.git;h=f812fd0 ]

TS-1868: TSREMAP_*_STOP does not stop remap plugin evaluation chain

I have several remap plugins that I want to combine in a single
remap rule. According to the doc, I can chain them in remap.config
and if one remap plugin return TSREMAP_NO_REMAP_STOP or
TSREMAP_DID_REMAP_STOP, the evaluation chain will be broken (no
further plugin down the chain gets to run).

However, I have found out that this is not the case. All remap
plugins in the chain will run regardless of plugins' return code.
The only time I see it breaks the chain is if a plugin specifies
that it wants to return a redirection response to the mapped url.

                
> TSREMAP_NO_REMAP_STOP/TSREMAP_DID_REMAP_STOP do not stop remap plugin 
> evaluation chain
> --------------------------------------------------------------------------------------
>
>                 Key: TS-1868
>                 URL: https://issues.apache.org/jira/browse/TS-1868
>             Project: Traffic Server
>          Issue Type: Bug
>          Components: Remap API
>            Reporter: Thach Tran
>            Assignee: Leif Hedstrom
>             Fix For: 3.3.3
>
>         Attachments: remap1.c, remap2.c, remap.config, ts_1868.diff
>
>
> I have several remap plugins that I want to combine in a single remap rule. 
> According to the doc, I can chain them in remap.config and if one remap 
> plugin return TSREMAP_NO_REMAP_STOP or TSREMAP_DID_REMAP_STOP, the evaluation 
> chain will be broken (no further plugin down the chain gets to run).
> However, I have found out that this is not the case. All remap plugins in the 
> chain will run regardless of plugins' return code. The only time I see it 
> breaks the chain is if a plugin specifies that it wants to return a 
> redirection response to the mapped url.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to