-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When caching is disabled with none, the cache key can be in there, and a race condition can be happend with this. To test this: 1) Strict caching mode 2) Made a request, 200 OK cache.set("$KEY", 200) 3) Update config to none 4) apicast/proxy:authorize -> cache.get($KEY) is 200 5) request go to the API 6) Authrep, cache for $KEY is deleted. Next request will return 403. Fixed behaviour: 1) Strict caching mode 2) Made a request, 200 OK cache.set("$KEY", 200) 3) Update config to none 4) apicast/proxy:authorize -> cache.get($KEY) is 200 5) cache_is_disabled = true -> execute backend call. 5) request go to the API, and fails 6) Authrep, cache for $KEY is deleted. Fix THREESCALE-4464 Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
- Loading branch information
Showing
3 changed files
with
12 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters