|
|
@@ -80,6 +80,12 @@ public class ObjectGetController {
|
|
|
}
|
|
|
|
|
|
String secretKey = cache.getIfPresent(token);
|
|
|
+ if (secretKey == null) {
|
|
|
+ String payload = "secretKey not found";
|
|
|
+ getObjectService.writeResponse(HttpServletResponse.SC_FORBIDDEN, payload);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
String queryString = String.format("token=%s&t=%s&nonce=%s", token, timestamp, nonce);
|
|
|
String host = ServletUtil.getHeader("host");
|
|
|
String url = String.format("//%s/%s", host, objectName);
|