INKHttpTxnSetHttpRetStatus not honored when an API transaction is reenabled
with INK_EVENT_HTTP_ERROR
-----------------------------------------------------------------------------------------------------
Key: TS-535
URL: https://issues.apache.org/jira/browse/TS-535
Project: Traffic Server
Issue Type: Bug
Components: TSAPI
Affects Versions: 2.1.3
Reporter: Eric Balsa
Assignee: Eric Balsa
Fix For: 2.1.5
imagine a plugin inside READ_REQUEST like:
....
INKHttpTxnSetHttpRetStatus(txnp, INK_HTTP_STATUS_NOT_FOUND);
......
INKHttpTxnReenable(txnp, INK_EVENT_HTTP_ERROR);
will always returns HTTP/1.1 500 INKApi Error
I think it should honor errors >=400 a plugin writer has set. This is important
inside READ_REQUEST where I may want to bail the rest of the state machine and
return something (other than 500) to the client immediately.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.