question

wangfu avatar image
5 Votes"
wangfu asked User1-3296 commented

[Bug Report] Cfapi: AckDelete broken on Win10 2004

I'm not sure this is the right place to report this,

When working with the Cloud Filter API, I encountered an issue that only reproduce on Win10 2004.

When user is deleting a 0KB sparse placeholder file, in the CF_CALLBACK_TYPE_NOTIFY_DELETE callback, if passing an unsuccessful CompletionStatus(e.g. STATUS_UNSUCCESSFUL) to the platform, in theory this should fail the user's delete action and prevent the file from being deleted, but on Win10 2004, file got deleted anyway.

On Win10 versions before 2004, it behaves as expected, error message popup, saying "The cloud operation is unsuccessful", and the file is left untouched.

The minimal changes to reproduce this issue based on the official CloudMirror sample can be found at:

https://github.com/wangfu91/Windows-classic-samples/pull/1/files

This seems like a bug of Win10 2004, very much like the ICopyHook bug in Win10 1803.


windows-api
· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thank you for bringing this to our attention. I can reproduce this issue on Windows 10 2004 but it works on 1909. I've reported it internally.

1 Vote 1 ·

Thanks,

Please also noted that besides the online-only placeholders, partially populated directories are also affected.

If a directory is not fully populated(Can be set using CF_UPDATE_FLAG_ENABLE_ON_DEMAND_POPULATION flag), Set AckDelete.CompletionStatus to STATUS_UNSUCCESSFUL also cannot prevent the deletion on Win10 2004.


0 Votes 0 ·

Thank you for useful information.

0 Votes 0 ·

Hi, any updates?

Has this issue been confirmed by the engineering team as a bug?

Any ETA on when the fix will available?



0 Votes 0 ·

Yes, this issue is confirmed internally and has been reported. Thanks for your contribution. But there is no ETA for a fix. You can monitor Known issues and Resolved issues with public release.


0 Votes 0 ·
Show more comments
User1-3296 avatar image
2 Votes"
User1-3296 answered

Hi, could you pls provide us with an update on this issue? We could no see a fix in any Win releases until today. Thanks!

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

WebDAV-4685 avatar image
2 Votes"
WebDAV-4685 answered WebDAV-4685 edited

I can reproduce this bug on the latest Windows Home 21H1 19043.1165, cldflt.sys 10.0.19041.1110.
@RitaHan-MSFT How do we report and monitor the status of this issue?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

wangfu avatar image
0 Votes"
wangfu answered

I just tested on Windows 11 (build 10.0.22000.194), it seems this bug has finally been fixed by Microsoft.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.