diff --git a/CHANGELOG.md b/CHANGELOG.md index b0d1b59..b879504 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm ## [v3.7.0-SNAPSHOT] - Provided the "Export as PDF" facility [#26026] +- Integrated the GeoportalExporter as service [#27321] ## [v3.6.0] 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 5b7a5cc..adbcb55 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 @@ -18,6 +18,7 @@ import org.apache.commons.io.IOUtils; import org.apache.http.client.methods.HttpGet; import org.gcube.portlets.user.geoportaldataviewer.client.GeoportalDataViewerConstants; import org.gcube.portlets.user.geoportaldataviewer.server.mongoservice.GeoportalServiceIdentityProxy; +import org.gcube.portlets.user.geoportaldataviewer.server.util.SessionUtil; import org.gcube.portlets.user.uriresolvermanager.geoportal.GeoportalExporterAPI; import org.slf4j.Logger; import org.slf4j.LoggerFactory; @@ -62,7 +63,8 @@ public class GeoportalExporterActionServlet extends HttpServlet { logger.info("doGet called with Input Params [projectID: " + projectID + ", ucdID: " + ucdID + "]"); try { - + String scope = SessionUtil.getCurrentContext(req, true); + logger.info("the scope is: "+scope); GeoportalServiceIdentityProxy identity = new GeoportalServiceIdentityProxy(req); String theToken = identity.getToken(); String theIdentity = identity.getIdentity();