Skip to content
This repository was archived by the owner on Sep 3, 2026. It is now read-only.

EZP-24854 EZP-26087 Update varnish configuration to purge required lo… - #128

Closed
benoitvidis wants to merge 1 commit into
ezsystems:masterfrom
benoitvidis:ezp-26087-varnish-purge-and-multiple-locations
Closed

benoitvidis wants to merge 1 commit into
ezsystems:masterfrom
benoitvidis:ezp-26087-varnish-purge-and-multiple-locations

Conversation

@benoitvidis

@benoitvidis benoitvidis commented Jul 18, 2016 •

Copy link
Copy Markdown

…cations only

cf https://jira.ez.no/browse/EZP-26087
and ezsystems/ezplatform-ee#3

The current implementation of varnish ban allows only one Location ID to be set in the X-Location-Id Header.

The proposal is to:

  1. update default varnish configuration (this PR)
  2. revert ezsystems/ezpublish-kernel@12353b4

@andrerom

Copy link
Copy Markdown
Contributor

ping @joaoinacio @bdunogier

@bdunogier

bdunogier commented Oct 18, 2016 •

Copy link
Copy Markdown
Contributor

So this will work because the comma is considered as a word boundary, making sure every location id is interpreted individually ?

It looks okay to me, but I'd like QA to a) verify that this is indeed failing b) test the patch.

@andrerom

Copy link
Copy Markdown
Contributor

It looks okay to me, but I'd like QA to a) verify that this is indeed failing b) test the patch.

They will also need to revert @joaoinacio's original kernel patch to test this and test the original issue he solved there.

@bdunogier

Copy link
Copy Markdown
Contributor

Good point @andrerom. I'll open a PR with the revert.

@gggeek

gggeek commented Oct 27, 2016 •

Copy link
Copy Markdown
Contributor

To be backported to 5.4.9 as well :-)
Side note for the reader: the regression was introduced apparently in 5.4.5

@joaoinacio

Copy link
Copy Markdown
Contributor

untested but looks OK afaict, as @bdunogier said should probably go through QA

@dspe

dspe commented Oct 31, 2016

Copy link
Copy Markdown
Contributor

looks good to me aswell :) +1

@bdunogier bdunogier left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code changes approved, can be tested as far as I am concerned.

@bdunogier

Copy link
Copy Markdown
Contributor

Ping @andrerom can you approve unless you disapprove ?

@andrerom andrerom left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Assuming we adapt kernel as well for this, so maybe this is 1.7+ and 5.4 (assuming prior fix that caused this was backported to 5.4) only then.

@gggeek

gggeek commented Nov 14, 2016 •

Copy link
Copy Markdown
Contributor

Sorry to chime in so late guys, but I am not 100% sure that putting the \b modifier here is the best solution - as it kind of introduces a hard coupling between the VCL and the php code in the purge client (https://github.com/ezsystems/ezpublish-kernel/pull/1806/files).

What if we put the \b modifier directly in the client instead?

  • more flexible vcl
  • less BC breaks
  • same results

@andrerom

andrerom commented Nov 14, 2016 •

Copy link
Copy Markdown
Contributor

(note, this is not needed for master if #143 goes in, as it replaces X-Location-Id with xkey, 5.x however is still an open topic on this)

@miguelcleverti

Copy link
Copy Markdown

@benoitvidis I posted a comment in EZP-26087 with the tests results of the PR.

I but in short the PR does not seem to solve the issue.

After making a BAN request for multiple X-Location-Id's there is still cache for the controller with multiple X-Location-Id, however for controllers with only one X-Location-Id the BAN request works has intended.

Further more if the BAN request is made using the syntax:
X-Location-Id: (978687|123|7987|7237) Instead of: X-Location-Id: ^(978687|123|7987|7237)$

It seem to have the expected behavior.

@yannickroger

Copy link
Copy Markdown
Contributor

Could any one help our QA to validate this fix? Or else we will have to close this PR as they can't fix the problem using it.

@andrerom

andrerom commented Oct 10, 2017 •

Copy link
Copy Markdown
Contributor

Closing this as we in the meantime have moved to xkey, if someone has solution that won't break this, please share on JIRA issue.

@andrerom andrerom closed this Oct 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Development

Successfully merging this pull request may close these issues.

8 participants