Skip to content

Conversation

@jhiapple
Copy link
Contributor

@jhiapple jhiapple commented Jun 9, 2021

By adding "X-Effective-URL" to the request header "X-Debug",
the header "X-Effective-URL" header will be inserted to the
request headers with the effective URL value.

Exposes the TSHttpTxnEffectiveUrlStringGet() result, which is
the URL after the remap.

Note: the inserted header is intentionally X-prefixed for consistency
with the other headers inserted by the xdebug plugin.

By adding "X-Effective-URL" to the request header "X-Debug",
the header "X-Effective-URL" header will be inserted to the
request headers with the effective URL value.

Exposes the TSHttpTxnEffectiveUrlStringGet() result, which is
the URL after the remap.

Note: the inserted header is intentionally X-prefixed for consistency
with the other headers inserted by the xdebug plugin.
@jhiapple jhiapple requested a review from bryancall as a code owner June 9, 2021 17:55
@randall randall added this to the 10.0.0 milestone Jun 9, 2021
@randall randall added the Plugins label Jun 9, 2021
Note that the response code is as such irrelevant in this test
since what is being tested is the request header rewriting.

Strangely, in local testing the
@apache apache deleted a comment from jhiapple Jun 14, 2021
@apache apache deleted a comment from zwoop Jun 14, 2021
@apache apache deleted a comment from jhiapple Jun 14, 2021
@apache apache deleted a comment from jhiapple Jun 14, 2021
@apache apache deleted a comment from elsloo Jun 14, 2021
@bryancall
Copy link
Contributor

I will review it

@ywkaras
Copy link
Contributor

ywkaras commented Jun 21, 2021

Do we want this in 9.2 or not until 10?

@zwoop
Copy link
Contributor

zwoop commented Jun 22, 2021

We can add this to 9.2.x.

}

if (dst != TS_NULL_MLOC) {
TSHandleMLocRelease(buffer, hdr, dst);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You could move this between lines 397 and 398, and eliminate this if statement. Once you did that, you could declare dst on line 395 and delete line 303.

@jhiapple
Copy link
Contributor Author

jhiapple commented Jul 20, 2021 via email

@randall randall merged commit 170e12b into apache:master Jul 21, 2021
@zwoop zwoop modified the milestones: 10.0.0, 9.2.0 Sep 23, 2021
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Sep 24, 2021
(backport of apache#7931)

By adding "X-Effective-URL" to the request header "X-Debug",
the header "X-Effective-URL" header will be inserted to the
request headers with the effective URL value.

Exposes the TSHttpTxnEffectiveUrlStringGet() result, which is
the URL after the remap.

Note: the inserted header is intentionally X-prefixed for consistency
with the other headers inserted by the xdebug plugin.
jhiapple added a commit to jhiapple/trafficserver that referenced this pull request Jun 22, 2023
URLs can have commas which makes the URLs fragile when multiple URLs are returned,
and the values of multiple X-Effective-URL headers are merged.

Follow-up on 170e12b (Adds new X-Effective-URL header to the xdebug plugin (apache#7931))
maskit pushed a commit that referenced this pull request Jul 17, 2023
#9899)

* Add doublequotes around the URL of X-Effective-URL.

URLs can have commas which makes the URLs fragile when multiple URLs are returned,
and the values of multiple X-Effective-URL headers are merged.

Follow-up on 170e12b (Adds new X-Effective-URL header to the xdebug plugin (#7931))

* Document the X-Effective-URL.
masaori335 pushed a commit to masaori335/trafficserver that referenced this pull request Sep 26, 2023
apache#9899) (apache#615)

* Add doublequotes around the URL of X-Effective-URL.

URLs can have commas which makes the URLs fragile when multiple URLs are returned,
and the values of multiple X-Effective-URL headers are merged.

Follow-up on 170e12b (Adds new X-Effective-URL header to the xdebug plugin (apache#7931))

* Document the X-Effective-URL.

(cherry picked from commit 7016476)

Co-authored-by: jhiapple <85640167+jhiapple@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants