From 7ee615cedf97a09d0063eb49cb66cbdfe60a7267 Mon Sep 17 00:00:00 2001 From: "francesco.mangiacrapa" Date: Fri, 19 Apr 2024 17:30:08 +0200 Subject: [PATCH] updated --- .../datatransfer/resolver/geoportal/exporter/HTML_Page.java | 1 + .../gcube/datatransfer/resolver/services/GeoportalExporter.java | 1 + 2 files changed, 2 insertions(+) diff --git a/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/HTML_Page.java b/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/HTML_Page.java index c681435..2ed0608 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/HTML_Page.java +++ b/src/main/java/org/gcube/datatransfer/resolver/geoportal/exporter/HTML_Page.java @@ -55,6 +55,7 @@ public class HTML_Page { + " }\n" + " async function playPDFPoll() {\n" + " const pdf_json = await fetchPDF_URL();\n" + + " console.log(\"response \"+pdf_json);\n" + " if (!(pdf_json.url === null || pdf_json.url === undefined)) {\n" + " window.location.replace(pdf_json.url);\n" + " } else {\n" diff --git a/src/main/java/org/gcube/datatransfer/resolver/services/GeoportalExporter.java b/src/main/java/org/gcube/datatransfer/resolver/services/GeoportalExporter.java index 9727b48..6025a5c 100644 --- a/src/main/java/org/gcube/datatransfer/resolver/services/GeoportalExporter.java +++ b/src/main/java/org/gcube/datatransfer/resolver/services/GeoportalExporter.java @@ -221,6 +221,7 @@ public class GeoportalExporter { LOG.info("FileReference at code {} is {}", pdfCode, fetchedPDF); if (fetchedPDF == null) { + LOG.info("returning not found"); return Response.status(Status.NOT_FOUND).entity(HTML_Page.getErrorPage("Job not created", "No job found with id "+pdfCode)) .type(MediaType.TEXT_HTML).build(); }