From 93d189b0edf7385fcc55e4301dd00274f28d510b Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Thu, 8 Apr 2021 12:28:30 +0200 Subject: [PATCH] addding '/' in the path --- .../gcube/datatransfer/resolver/services/WekeoResolver.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/gcube/datatransfer/resolver/services/WekeoResolver.java b/src/main/java/org/gcube/datatransfer/resolver/services/WekeoResolver.java index 572fb2b..0408f65 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/services/WekeoResolver.java +++ b/src/main/java/org/gcube/datatransfer/resolver/services/WekeoResolver.java @@ -185,7 +185,7 @@ public class WekeoResolver { @GET @Produces({MediaType.TEXT_HTML}) - @Path("") + @Path("/") public InputStream index(@Context HttpServletRequest req) throws WebApplicationException{ String indexFile = "/WEB-INF/jsp/wekeo.jsp"; @@ -198,7 +198,7 @@ public class WekeoResolver { if(!(e instanceof WebApplicationException)){ //UNEXPECTED EXCEPTION managing it as WebApplicationException - String error = "Index.jsp not found. Please, contact the support!"; + String error = "wekeo.jsp not found. Please, contact the support!"; throw ExceptionManager.internalErrorException(req, error, this.getClass(), null); } //ALREADY MANAGED AS WebApplicationException