updated VRE Confirm URL

This commit is contained in:
Massimiliano Assante 2021-09-22 10:48:46 +02:00
parent 499689d741
commit faaca57b91
1 changed files with 3 additions and 3 deletions

View File

@ -28,8 +28,7 @@ public class DdasVREService extends HttpServlet {
private static final long serialVersionUID = 1L; private static final long serialVersionUID = 1L;
private static com.liferay.portal.kernel.log.Log _log = LogFactoryUtil.getLog(DdasVREService.class); private static com.liferay.portal.kernel.log.Log _log = LogFactoryUtil.getLog(DdasVREService.class);
private static final int CACHE_SECONDS_EXPIRATION = 1800; //30 minutes private static final int CACHE_SECONDS_EXPIRATION = 1800; //30 minutes
private static final String VRE_CONFIRM_URL = "https://blue-cloud.d4science.org/group/bluecloud-gateway/vre-data-pool";
/** /**
* @see HttpServlet#HttpServlet() * @see HttpServlet#HttpServlet()
*/ */
@ -85,7 +84,8 @@ public class DdasVREService extends HttpServlet {
Base64.Encoder withoutPaddingEncoder = Base64.getEncoder().withoutPadding(); Base64.Encoder withoutPaddingEncoder = Base64.getEncoder().withoutPadding();
String requestIdParam = withoutPaddingEncoder.encodeToString("otp".getBytes()); String requestIdParam = withoutPaddingEncoder.encodeToString("otp".getBytes());
String message = "Started downloading order files to Virtual Research Environment '"+requestId+"'"; String message = "Started downloading order files to Virtual Research Environment '"+requestId+"'";
String vreConfirmUrl = "https://blue-cloud.d4science.org/group/bluecloud-gateway/vre-data-pool?"+requestIdParam+"="+otp; //redirect URL
String vreConfirmUrl = new StringBuilder(VRE_CONFIRM_URL).append("?").append(requestIdParam).append("=").append(otp).toString(); //redirect URL
URL theURL = new URL(vreConfirmUrl); URL theURL = new URL(vreConfirmUrl);
theResponse = new BrokerResponse(status, message, theURL); theResponse = new BrokerResponse(status, message, theURL);
} }