renamed variable

This commit is contained in:
Francesco Mangiacrapa 2024-04-24 11:55:32 +02:00
parent 1abd00f6cb
commit a039617790
2 changed files with 22 additions and 13 deletions

View File

@ -1,5 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?><project-modules id="moduleCoreId" project-version="1.5.0">
@ -26,7 +27,8 @@
<wb-module deploy-name="uri-resolver-2.10.0-SNAPSHOT">
@ -53,7 +55,8 @@
<wb-resource deploy-path="/" source-path="/target/m2e-wtp/web-resources"/>
@ -80,7 +83,8 @@
<wb-resource deploy-path="/" source-path="/src/main/webapp" tag="defaultRootSource"/>
@ -107,7 +111,8 @@
<wb-resource deploy-path="/WEB-INF/classes" source-path="/src/main/java"/>
@ -140,7 +145,8 @@
<dependent-module archiveName="geoportal-data-mapper-1.1.0-SNAPSHOT.jar" deploy-path="/WEB-INF/lib" handle="module:/resource/geoportal-data-mapper/geoportal-data-mapper">
<dependency-type>uses</dependency-type>
</dependent-module>
@ -167,7 +173,8 @@
<property name="context-root" value="uri-resolver"/>
@ -194,7 +201,8 @@
<property name="java-output-path" value="/uri-resolver/target/classes"/>
@ -221,7 +229,8 @@
</wb-module>

View File

@ -121,14 +121,14 @@ public class GeoportalExporter {
boolean checked = false;
SecretManager cm = SecretManagerProvider.instance.get();
final String context = cm.getContext();
SecretManager secreteManager = SecretManagerProvider.instance.get();
final String context = secreteManager.getContext();
if (context == null) {
throw ExceptionManager.forbiddenException(req, "Cannot determine context (the scope)", this.getClass(),
helpURI);
}
final org.gcube.common.authorization.utils.user.User user = cm.getUser();
final org.gcube.common.authorization.utils.user.User user = secreteManager.getUser();
if (user == null) {
throw ExceptionManager.forbiddenException(req, "Cannot determine user", this.getClass(), helpURI);
}