diff --git a/pom.xml b/pom.xml
index 8813174..230fae0 100644
--- a/pom.xml
+++ b/pom.xml
@@ -67,7 +67,6 @@
org.gcube.common
authorization-utils
- [1.0.0,2.0.0-SNAPSHOT)
org.gcube.information-system
@@ -157,23 +156,19 @@
1.8
-
-
-
-
-
-
-
org.gcube.data-publishing
storagehub-application-persistence
[3.0.0,4.0.0-SNAPSHOT)
+
+
org.json
json
20211205
+
org.apache.tika
tika-core
diff --git a/src/main/java/org/gcube/gcat/persistence/ckan/CKANUserCache.java b/src/main/java/org/gcube/gcat/persistence/ckan/CKANUserCache.java
index 9ff1f8c..34e610d 100644
--- a/src/main/java/org/gcube/gcat/persistence/ckan/CKANUserCache.java
+++ b/src/main/java/org/gcube/gcat/persistence/ckan/CKANUserCache.java
@@ -37,14 +37,15 @@ public abstract class CKANUserCache {
}
public static CKANUser getCurrrentCKANUser() {
- String context = SecretManager.instance.get().getContext();
+ SecretManager secretManager = SecretManager.instance.get();
+ String context = secretManager.getContext();
Cache userCache = userCachePerContext.get(context);
if(userCache == null) {
userCache = cacheManager.createCache(context, userCacheConfiguration);
userCachePerContext.put(context, userCache);
}
- String gcubeUsername = SecretManager.instance.get().getUser().getUsername();
+ String gcubeUsername = secretManager.getUser().getUsername();
CKANUser ckanUser = userCache.get(gcubeUsername);
if(ckanUser == null) {
ckanUser = new CKANUser();
diff --git a/src/main/java/org/gcube/gcat/rest/RequestFilter.java b/src/main/java/org/gcube/gcat/rest/RequestFilter.java
deleted file mode 100644
index 16a47a2..0000000
--- a/src/main/java/org/gcube/gcat/rest/RequestFilter.java
+++ /dev/null
@@ -1,36 +0,0 @@
-package org.gcube.gcat.rest;
-
-import java.io.IOException;
-
-import javax.ws.rs.container.ContainerRequestContext;
-import javax.ws.rs.container.ContainerRequestFilter;
-import javax.ws.rs.container.ContainerResponseContext;
-import javax.ws.rs.container.ContainerResponseFilter;
-import javax.ws.rs.container.PreMatching;
-import javax.ws.rs.ext.Provider;
-
-import org.gcube.common.authorization.utils.manager.SecretManager;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-@Provider
-@PreMatching
-public class RequestFilter implements ContainerRequestFilter, ContainerResponseFilter {
-
- private final static Logger logger = LoggerFactory.getLogger(RequestFilter.class);
-
- @Override
- public void filter(ContainerRequestContext requestContext) throws IOException {
- logger.trace("PreMatching RequestFilter");
- SecretManager.instance.remove();
- SecretManager.instance.get();
- }
-
- @Override
- public void filter(ContainerRequestContext requestContext, ContainerResponseContext responseContext)
- throws IOException {
- logger.trace("ResponseFilter");
- SecretManager.instance.remove();
- }
-
-}