diff --git a/src/main/java/org/gcube/portlets/user/bluecloud/DdasVreIntegration.java b/src/main/java/org/gcube/portlets/user/bluecloud/DdasVreIntegration.java index 72ab4c5..2c8193a 100644 --- a/src/main/java/org/gcube/portlets/user/bluecloud/DdasVreIntegration.java +++ b/src/main/java/org/gcube/portlets/user/bluecloud/DdasVreIntegration.java @@ -52,9 +52,6 @@ import net.spy.memcached.MemcachedClient; */ public class DdasVreIntegration extends MVCPortlet { private static com.liferay.portal.kernel.log.Log log = LogFactoryUtil.getLog(DdasVreIntegration.class); - //The Blue-Cloud DD&AS Service endpoint for feedback about downloads - public static final String BROKERf_FEEDBACK_ENDPOINT = "https://data.blue-cloud.org/api/vre/download-ready"; - private static final String BC_BROKER_RESOURCE_NAME = "Blue-Cloud-DataDownloadAndAccess"; private static final String CATEGORY_NAME = "Service"; @@ -78,7 +75,7 @@ public class DdasVreIntegration extends MVCPortlet { boolean result = false; if (params != null && params.length > 0) { String otp = params[0]; - System.out.println("Read OTP="+otp); + log.debug("Read Blue-Cloud cache OTP="+otp); if (otp != null && !otp.equals("")) { JsonElement brokerRequest = checkRequest(otp); if (brokerRequest == null) {//the token is expired or there was no request, return to the JSP token expired page @@ -259,6 +256,9 @@ public class DdasVreIntegration extends MVCPortlet { JsonElement jelement = new JsonParser().parse(brokerRequest); JsonObject jobject = jelement.getAsJsonObject(); log.debug("Found tempCode into memcached, broker request="+jobject.toString()); + log.debug("Invalidating tempCode into memcached with key="+code); + entries.delete(code); + log.debug("Invalidated key "+ code + " with success."); return jelement; } catch(Exception e){ log.error("Failed to check the correctness of the broker request", e); diff --git a/src/main/webapp/html/ddasvreintegration/view.jsp b/src/main/webapp/html/ddasvreintegration/view.jsp index bbf14c0..c58ce49 100644 --- a/src/main/webapp/html/ddasvreintegration/view.jsp +++ b/src/main/webapp/html/ddasvreintegration/view.jsp @@ -33,5 +33,7 @@ pageContext.setAttribute("responseResultSuccess", responseResultSuccess);

Your order , is being retrieved and the dataset are being saved to your workspace area, you will receive an e-email when the download process is completed. You may close this Tab now.

+  Close diff --git a/src/main/webapp/html/error_pages/bc-token-expired.jsp b/src/main/webapp/html/error_pages/bc-token-expired.jsp index bfaa4e3..4040ebc 100644 --- a/src/main/webapp/html/error_pages/bc-token-expired.jsp +++ b/src/main/webapp/html/error_pages/bc-token-expired.jsp @@ -10,16 +10,16 @@ <%@page import="com.liferay.portal.kernel.util.WebKeys"%> - +<%String orderData = (String) renderRequest.getAttribute("orderData");%>

- We're sorry, it seems that too much time is passed since your order on Blue-Cloud Data Discovery & Access Service.
- Please close this page and trigger the move to VRE again from Blue-Cloud Data Discovery & Access Service application. + We're sorry, your order has either expired or was already submitted.
+ Please close this page and click the Push to VRE button from Blue-Cloud Data Discovery & Access Service again.

- Close + Close