fixed path

This commit is contained in:
Francesco Mangiacrapa 2024-04-19 15:05:02 +02:00
parent 06f87b7956
commit 069b631bc8
1 changed files with 1 additions and 3 deletions

View File

@ -105,7 +105,7 @@ public class GeoportalExporter {
if (userAgentName != null) {
LOG.info("Serving request as User-Agent {}", userAgentName);
String pollingCode = ucdID+"_"+projectID+"_"+System.currentTimeMillis();
String viewPdfURL = req.getServletContext()+"/view/"+pollingCode;
String viewPdfURL = req.getServletPath()+"/view/"+pollingCode;
String entity = entityHTMLMessage("Exporting as PDF...", "The project with " + projectID, true, viewPdfURL);
return Response.ok(entity).encoding("UTF-8").header(ConstantsResolver.CONTENT_TYPE, "text/html")
.build();
@ -251,8 +251,6 @@ public class GeoportalExporter {
LOG.info(this.getClass().getSimpleName() + " viewPDF - GET starts...");
LOG.debug("param is: pdfCode: {}", pdfCode);
checkPathParameterNotNull(req, EXPORT_TYPE, pdfCode);
try {