You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by co...@apache.org on 2022/12/13 06:05:27 UTC
[cxf-fediz] branch main updated: escape cache key
This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cxf-fediz.git
The following commit(s) were added to refs/heads/main by this push:
new 5615e590 escape cache key
new e982b4d6 Merge pull request #73 from amarkevich/escape_cache_key
5615e590 is described below
commit 5615e59010b716876b9d02155b6678272f39d06d
Author: Alexey Markevich <bu...@gmail.com>
AuthorDate: Wed Nov 23 14:42:51 2022 +0100
escape cache key
Cache key based on config name and usually started with slash. In case
of Infinispan the cli uses slash as resource separator therefore chache
cannot be checked easy way
---
.../src/main/java/org/apache/cxf/fediz/core/config/FedizContext.java | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/config/FedizContext.java b/plugins/core/src/main/java/org/apache/cxf/fediz/core/config/FedizContext.java
index 6fb4a7f0..c01b58af 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/config/FedizContext.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/config/FedizContext.java
@@ -246,7 +246,8 @@ public class FedizContext implements Closeable {
return replayCache;
}
final String replayCacheString = config.getTokenReplayCache();
- final String cacheKey = CACHE_KEY_PREFIX + '-' + config.getName();
+ // replace special characters
+ final String cacheKey = CACHE_KEY_PREFIX + '-' + config.getName().replace('/', '_');
try {
final Path diskstorePath = Files.createTempDirectory("fediz");
if (replayCacheString == null || replayCacheString.isEmpty()) {