EZP-24854 EZP-26087 Update varnish configuration to purge required lo… - #128
benoitvidis wants to merge 1 commit into
Conversation
|
ping @joaoinacio @bdunogier |
|
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. |
They will also need to revert @joaoinacio's original kernel patch to test this and test the original issue he solved there. |
|
Good point @andrerom. I'll open a PR with the revert. |
|
To be backported to 5.4.9 as well :-) |
|
untested but looks OK afaict, as @bdunogier said should probably go through QA |
|
looks good to me aswell :) +1 |
|
Ping @andrerom can you approve unless you disapprove ? |
andrerom
left a comment
There was a problem hiding this comment.
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.
|
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?
|
|
(note, this is not needed for master if #143 goes in, as it replaces |
|
@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: It seem to have the expected behavior. |
|
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. |
|
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. |
…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: