Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make it possible to place url rewriting before apicast in the policy chain #531

Merged
merged 5 commits into from
Dec 19, 2017

Conversation

davidor
Copy link
Contributor

@davidor davidor commented Dec 13, 2017

This PR introduces some changes in the code to stop depending on ngx.var.request. That variable is not changed after rewriting a url with ngx.req.set_uri, which is what the URL rewriting policy does. This was preventing us from placing the URL rewriting policy before the apicast one in the policy chain.

This was done without breaking compatibility with users that overwrite Configuration.extract_usage() and rely on it being called.

This limitation was presented in #529

@davidor davidor changed the title Make possible to place url rewriting before apicast in the policy chain [WIP] Make possible to place url rewriting before apicast in the policy chain Dec 13, 2017
@davidor davidor force-pushed the url-rewriting-before-apicast-policy branch 5 times, most recently from de0ea92 to 8488384 Compare December 14, 2017 10:03
@davidor davidor changed the title [WIP] Make possible to place url rewriting before apicast in the policy chain Make possible to place url rewriting before apicast in the policy chain Dec 14, 2017
@davidor davidor changed the title Make possible to place url rewriting before apicast in the policy chain Make it possible to place url rewriting before apicast in the policy chain Dec 14, 2017
@davidor davidor force-pushed the url-rewriting-before-apicast-policy branch from 8488384 to 97adc43 Compare December 14, 2017 10:12
@davidor davidor force-pushed the url-rewriting-before-apicast-policy branch from 97adc43 to bc608fc Compare December 14, 2017 10:17
@davidor davidor requested a review from mikz December 19, 2017 08:17
Copy link
Contributor

@mikz mikz left a comment

Choose a reason for hiding this comment

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

👍 great!

@davidor davidor merged commit 95aceb5 into master Dec 19, 2017
@davidor davidor deleted the url-rewriting-before-apicast-policy branch December 19, 2017 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants