500 when metadata does not exist

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2024-03-21 07:16:15 +01:00 committed by backportbot[bot]
parent f676072ecb
commit eb48bcf118
1 changed files with 2 additions and 1 deletions

View File

@ -1448,7 +1448,8 @@ public static String decryptStringSymmetricAsString(String string,
arbitraryDataProvider)
);
} else if (getMetadataOperationResult.getHttpCode() == HttpStatus.SC_NOT_FOUND) {
} else if (getMetadataOperationResult.getHttpCode() == HttpStatus.SC_NOT_FOUND ||
getMetadataOperationResult.getHttpCode() == HttpStatus.SC_INTERNAL_SERVER_ERROR) {
// new metadata
metadata = new DecryptedFolderMetadataFile(new com.owncloud.android.datamodel.e2e.v2.decrypted.DecryptedMetadata(),
new ArrayList<>(),