Skip to content
This repository has been archived by the owner on Jan 11, 2021. It is now read-only.

Fix EZP-24854: http cache purge bans wrong/additional location ids #17

Merged
merged 1 commit into from Jan 8, 2016

Conversation

emodric
Copy link
Member

@emodric emodric commented Jan 8, 2016

JIRA: https://jira.ez.no/browse/EZP-24854

Problem

When issue http cache (varnish) purge requests, a regex is used with multiple location Ids.
The problem is that the regex is matching all locations that contain the value, for example, banning location 2 will also ban 12, 20, 21.

vcl ref: ban("obj.http.X-Location-Id ~ " + req.http.X-Location-Id);
https://github.com/ezsystems/ezplatform/blob/master/doc/varnish/vcl/varnish4.vcl#L116

Solution

Fix by making sure that location is one of the requested (starts/ends with provided value)

Original PR by @joaoinacio at ezsystems/ezpublish-kernel#1427

emodric added a commit that referenced this pull request Jan 8, 2016
Fix EZP-24854: http cache purge bans wrong/additional location ids
@emodric emodric merged commit a4551fd into master Jan 8, 2016
@emodric emodric deleted the http_cache_purge_fix branch January 8, 2016 17:12
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant