From 2fae3ee31ade5d439e489171267a5bbc6efb5436 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Mon, 29 Apr 2024 15:11:57 +0200 Subject: [PATCH] updated code --- .../server/GeoportalExporterActionServlet.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalExporterActionServlet.java b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalExporterActionServlet.java index a1705f0..85623e5 100644 --- a/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalExporterActionServlet.java +++ b/src/main/java/org/gcube/portlets/user/geoportaldataviewer/server/GeoportalExporterActionServlet.java @@ -68,16 +68,16 @@ public class GeoportalExporterActionServlet extends HttpServlet { sendError(resp, "Bad Request. No context found!"); PortalContext pContext = PortalContext.getConfiguration(); - GCubeUser gcubeUser = pContext.getCurrentUser(req); String scope = pContext.getCurrentScope(contextID); - logger.info("User caller fullname is {}, scope {}", gcubeUser.getFullname(), scope); + logger.info("The scope is {}", scope); try { ScopeProvider.instance.set(scope); GeoportalServiceIdentityProxy identity = new GeoportalServiceIdentityProxy(req); String theToken = identity.getToken(); String theIdentity = identity.getIdentity(); - + logger.info("The identity is {}", theIdentity); + GeoportalExporterAPI geoportalExporterAPI = new GeoportalExporterAPI(); URL urlRequest = geoportalExporterAPI.exportProject("pdf", ucdID, projectID, false); String urlToRedirect = urlRequest.toString();