FileNode/set fails to delete files (fixes #2485)

This commit is contained in:
mdecimus
2025-12-12 16:12:04 +01:00
parent e944316312
commit 4e25f7ddf1
3 changed files with 29 additions and 3 deletions

View File

@@ -297,6 +297,18 @@ pub async fn test(params: &mut JMAPTest) {
);
// Delete file and sub folders
assert_eq!(
account
.jmap_destroy(
MethodObject::FileNode,
[&file_id],
[("onDestroyRemoveChildren", true)],
)
.await
.destroyed()
.collect::<AHashSet<_>>(),
[file_id.as_str(),].into_iter().collect::<AHashSet<_>>()
);
assert_eq!(
account
.jmap_destroy(
@@ -308,7 +320,6 @@ pub async fn test(params: &mut JMAPTest) {
.destroyed()
.collect::<AHashSet<_>>(),
[
file_id.as_str(),
sub_sub_folder_id.as_str(),
sub_folder_id.as_str(),
root_folder_id.as_str()