We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9984cfe commit 2e0f587Copy full SHA for 2e0f587
sdm/src/main/java/com/sap/cds/sdm/service/DocumentUploadService.java
@@ -308,7 +308,10 @@ private void formResponse(
308
JSONObject succinctProperties = jsonResponse.getJSONObject("succinctProperties");
309
status = "success";
310
objectId = succinctProperties.getString("cmis:objectId");
311
- mimeType = succinctProperties.getString("cmis:contentStreamMimeType");
+ mimeType =
312
+ succinctProperties.has("cmis:contentStreamMimeType")
313
+ ? succinctProperties.getString("cmis:contentStreamMimeType")
314
+ : null;
315
} else {
316
if (responseCode == 409) {
317
JSONObject jsonResponse = new JSONObject(responseString);
0 commit comments