Skip to content

Commit c717ca1

Browse files
Merge pull request #454 from cap-java/IntegrationTestsFix
Fix copy attachment upload status handling and failing integration tests
2 parents d8ba558 + 34af7e2 commit c717ca1

4 files changed

Lines changed: 788 additions & 1471 deletions

File tree

sdm/src/main/java/com/sap/cds/sdm/service/handler/SDMCustomServiceHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1654,6 +1654,7 @@ private Map<String, Object> buildBasicFields(
16541654
fields.put("repositoryId", data.getRepositoryId());
16551655
fields.put("folderId", data.getFolderId());
16561656
fields.put("status", "Clean");
1657+
fields.put("uploadStatus", SDMConstants.UPLOAD_STATUS_SUCCESS);
16571658
fields.put("mimeType", mimeType);
16581659
fields.put("type", cmisDocument.getType());
16591660
fields.put("fileName", fileName);
@@ -1807,6 +1808,7 @@ private void createDraftEntries(
18071808
updatedFields.put("repositoryId", request.getRepositoryId());
18081809
updatedFields.put("folderId", request.getFolderId());
18091810
updatedFields.put("status", "Clean");
1811+
updatedFields.put("uploadStatus", SDMConstants.UPLOAD_STATUS_SUCCESS);
18101812
updatedFields.put("mimeType", mimeType);
18111813
updatedFields.put("type", cmisDocument.getType()); // Individual type for each attachment
18121814
updatedFields.put("fileName", fileName);

0 commit comments

Comments
 (0)