Closed emodric closed 8 years ago
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
ban("obj.http.X-Location-Id ~ " + req.http.X-Location-Id);
Solution
Fix by making sure that location is one of the requested (starts/ends with provided value)
Original PR by @joaoinacio at https://github.com/ezsystems/ezpublish-kernel/pull/1427
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#L116Solution
Fix by making sure that location is one of the requested (starts/ends with provided value)
Original PR by @joaoinacio at https://github.com/ezsystems/ezpublish-kernel/pull/1427