diff --git a/src/main/webapp/dataverse_template.xhtml b/src/main/webapp/dataverse_template.xhtml
index 8c4b323d93f..ac9135e7035 100644
--- a/src/main/webapp/dataverse_template.xhtml
+++ b/src/main/webapp/dataverse_template.xhtml
@@ -48,7 +48,7 @@
diff --git a/src/main/webapp/editdatafiles.xhtml b/src/main/webapp/editdatafiles.xhtml
index aa4eb5f228c..4d9bfd6ef1f 100644
--- a/src/main/webapp/editdatafiles.xhtml
+++ b/src/main/webapp/editdatafiles.xhtml
@@ -8,12 +8,11 @@
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:pt="http://java.sun.com/jsf/passthrough"
xmlns:cc="http://java.sun.com/jsf/composite"
- xmlns:o="http://omnifaces.org/ui"
- xmlns:iqbs="http://xmlns.jcp.org/jsf/composite/iqbs">
+ xmlns:o="http://omnifaces.org/ui">
-
+
diff --git a/src/main/webapp/file.xhtml b/src/main/webapp/file.xhtml
index f5232623822..1fd0bb884d5 100644
--- a/src/main/webapp/file.xhtml
+++ b/src/main/webapp/file.xhtml
@@ -8,12 +8,11 @@
xmlns:jsf="http://xmlns.jcp.org/jsf"
xmlns:pt="http://java.sun.com/jsf/passthrough"
xmlns:cc="http://java.sun.com/jsf/composite"
- xmlns:o="http://omnifaces.org/ui"
- xmlns:iqbs="http://xmlns.jcp.org/jsf/composite/iqbs">
+ xmlns:o="http://omnifaces.org/ui">
-
+
diff --git a/src/main/webapp/permissions-manage-files.xhtml b/src/main/webapp/permissions-manage-files.xhtml
index 49e930bc2ef..800fc5d8750 100644
--- a/src/main/webapp/permissions-manage-files.xhtml
+++ b/src/main/webapp/permissions-manage-files.xhtml
@@ -6,11 +6,10 @@
xmlns:p="http://primefaces.org/ui"
xmlns:c="http://java.sun.com/jsp/jstl/core"
xmlns:o="http://omnifaces.org/ui"
- xmlns:jsf="http://xmlns.jcp.org/jsf"
- xmlns:iqbs="http://xmlns.jcp.org/jsf/composite/iqbs">
+ xmlns:jsf="http://xmlns.jcp.org/jsf">
-
+
diff --git a/src/main/webapp/permissions-manage.xhtml b/src/main/webapp/permissions-manage.xhtml
index c0a7508be04..9fecf5ce5bc 100644
--- a/src/main/webapp/permissions-manage.xhtml
+++ b/src/main/webapp/permissions-manage.xhtml
@@ -4,12 +4,11 @@
xmlns:f="http://java.sun.com/jsf/core"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:p="http://primefaces.org/ui"
- xmlns:c="http://java.sun.com/jsp/jstl/core"
- xmlns:iqbs="http://xmlns.jcp.org/jsf/composite/iqbs">
+ xmlns:c="http://java.sun.com/jsp/jstl/core">
-
+
diff --git a/src/main/webapp/resources/js/fileupload.js b/src/main/webapp/resources/js/fileupload.js
index af7bed0d492..564239ee7ef 100644
--- a/src/main/webapp/resources/js/fileupload.js
+++ b/src/main/webapp/resources/js/fileupload.js
@@ -124,7 +124,7 @@ async function cancelDatasetEdit() {
var inDataverseCall = false;
-class fileUpload {
+var fileUpload = class fileUploadClass {
constructor(file) {
this.file = file;
this.state = UploadState.QUEUED;
@@ -549,8 +549,9 @@ async function uploadFailure(jqXHR, upid, filename) {
id = arguments.callee.caller.caller.arguments[1].files[0].row[0].attributes.upid.value;
status = arguments.callee.caller.caller.arguments[1].jqXHR.status;
statusText = arguments.callee.caller.caller.arguments[1].jqXHR.statusText;
- } catch {
+ } catch(err) {
console.log("Unable to determine status for error - assuming network issue");
+ console.log("Exception: " + err.message);
}
}
diff --git a/src/test/java/edu/harvard/iq/dataverse/export/DDIExporterTest.java b/src/test/java/edu/harvard/iq/dataverse/export/DDIExporterTest.java
index 8ce823eb600..2518e2ca335 100644
--- a/src/test/java/edu/harvard/iq/dataverse/export/DDIExporterTest.java
+++ b/src/test/java/edu/harvard/iq/dataverse/export/DDIExporterTest.java
@@ -1,6 +1,6 @@
package edu.harvard.iq.dataverse.export;
-import com.google.gson.Gson;
+import com.google.gson.*;
import edu.harvard.iq.dataverse.ControlledVocabularyValue;
import edu.harvard.iq.dataverse.DatasetFieldType;
import edu.harvard.iq.dataverse.DatasetFieldType.FieldType;
@@ -17,10 +17,15 @@
import java.io.File;
import java.io.IOException;
import java.io.StringReader;
+import java.lang.reflect.Type;
import java.nio.charset.StandardCharsets;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
+import java.time.Instant;
+import java.time.LocalDate;
+import java.time.LocalDateTime;
+import java.time.ZoneId;
import java.util.Arrays;
import java.util.HashSet;
import java.util.Set;
@@ -42,7 +47,10 @@ public class DDIExporterTest {
private static final SettingsServiceBean settingsService = Mockito.mock(SettingsServiceBean.class);
private static final LicenseServiceBean licenseService = Mockito.mock(LicenseServiceBean.class);
private static final MockDatasetFieldSvc datasetFieldTypeSvc = new MockDatasetFieldSvc();
- private static final Gson gson = new Gson();
+ private static final Gson gson = new GsonBuilder().registerTypeAdapter(LocalDate.class, (JsonDeserializer) (JsonElement json, Type type, JsonDeserializationContext jsonDeserializationContext) -> {
+ Instant instant = Instant.ofEpochMilli(json.getAsJsonPrimitive().getAsLong());
+ return LocalDateTime.ofInstant(instant, ZoneId.systemDefault());
+ }).create();
/*
* Setup and teardown mocks for BrandingUtil for atomicity.