From 544ea13db6948f7af2d9d4e3eea53bdb30670cc4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A9ter=20Kir=C3=A1ly?= Date: Fri, 19 Sep 2025 17:38:19 +0200 Subject: [PATCH] False error message if the PID of the server is not DOI #34 --- src/main/java/org/sead/uploader/dataverse/DVUploader.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/sead/uploader/dataverse/DVUploader.java b/src/main/java/org/sead/uploader/dataverse/DVUploader.java index d026719..334e704 100644 --- a/src/main/java/org/sead/uploader/dataverse/DVUploader.java +++ b/src/main/java/org/sead/uploader/dataverse/DVUploader.java @@ -966,7 +966,7 @@ private String multipartDirectFileUpload(Resource file, String path, int retries while (retries > 0) { // Start multipart upload with a call to Dataverse. It will make a call to S3 to start the multipart upload and will return a set of presigned Urls for us to upload the parts String urlString = server + "/api/datasets/:persistentId/uploadurls"; - urlString = urlString + "?persistentId=doi:" + datasetPID.substring(4) + "&key=" + apiKey + "&size=" + file.length(); + urlString = urlString + "?persistentId=" + datasetPID + "&key=" + apiKey + "&size=" + file.length(); HttpGet httpget = new HttpGet(urlString); CloseableHttpResponse response = httpclient.execute(httpget, getLocalContext()); try {