Skip to content

Commit 544ea13

Browse files
committed
False error message if the PID of the server is not DOI #34
1 parent 45af6f9 commit 544ea13

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/org/sead/uploader/dataverse/DVUploader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -966,7 +966,7 @@ private String multipartDirectFileUpload(Resource file, String path, int retries
966966
while (retries > 0) {
967967
// 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
968968
String urlString = server + "/api/datasets/:persistentId/uploadurls";
969-
urlString = urlString + "?persistentId=doi:" + datasetPID.substring(4) + "&key=" + apiKey + "&size=" + file.length();
969+
urlString = urlString + "?persistentId=" + datasetPID + "&key=" + apiKey + "&size=" + file.length();
970970
HttpGet httpget = new HttpGet(urlString);
971971
CloseableHttpResponse response = httpclient.execute(httpget, getLocalContext());
972972
try {

0 commit comments

Comments
 (0)