diff --git a/dspace-server-webapp/src/main/java/org/dspace/app/rest/utils/Utils.java b/dspace-server-webapp/src/main/java/org/dspace/app/rest/utils/Utils.java index 88278b531c14..18de25a4313b 100644 --- a/dspace-server-webapp/src/main/java/org/dspace/app/rest/utils/Utils.java +++ b/dspace-server-webapp/src/main/java/org/dspace/app/rest/utils/Utils.java @@ -449,6 +449,11 @@ public List constructBitstreamFormatList(HttpServletRequest req public List constructDSpaceObjectList(Context context, List list) { List dSpaceObjects = new LinkedList<>(); for (String string : list) { + // Remove double quotes from the start and end of the string - this double quotes are added when the + // request is called from the Python API + if (string.startsWith("\"") && string.endsWith("\"")) { + string = string.substring(1, string.length() - 1); + } if (string.endsWith("/")) { string = string.substring(0, string.length() - 1); }