From 8e9ccce4891991e684552c15e2ab10868ea216ac Mon Sep 17 00:00:00 2001 From: Leonid Andreev Date: Fri, 23 Jun 2017 11:55:48 -0400 Subject: [PATCH] A one line fix for #3952, properly preserving the original type of an ingested tabular file. --- .../java/edu/harvard/iq/dataverse/ingest/IngestServiceBean.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/edu/harvard/iq/dataverse/ingest/IngestServiceBean.java b/src/main/java/edu/harvard/iq/dataverse/ingest/IngestServiceBean.java index c826f97692d..116f0b7472d 100644 --- a/src/main/java/edu/harvard/iq/dataverse/ingest/IngestServiceBean.java +++ b/src/main/java/edu/harvard/iq/dataverse/ingest/IngestServiceBean.java @@ -775,7 +775,7 @@ public boolean ingestAsTabular(Long datafile_id) { //DataFile dataFile) throws I if (FileUtil.MIME_TYPE_CSV_ALT.equals(dataFile.getContentType())) { tabDataIngest.getDataTable().setOriginalFileFormat(FileUtil.MIME_TYPE_CSV); } else { - tabDataIngest.getDataTable().setOriginalFileFormat(dataFile.getContentType()); + tabDataIngest.getDataTable().setOriginalFileFormat(originalContentType); } dataFile.setDataTable(tabDataIngest.getDataTable());