CfApi: Allow data fetch for services

Mikhail Mamedov 6 Reputation points
2022-06-16T15:43:07.44+00:00

Hi MS team,

I'm developing sync program with cloud filter API.
I encountered an issue with the access to the cloud file from any service application (from session 0):

When service app tries to open not yet hydrated file for reading it receives error: Access to the cloud file is denied
Error 0xC000CF18 STATUS_CLOUD_FILE_ACCESS_DENIED instead of trigger hydration of it.

Although service app can fetch new placeholders without any problem, can read their attributes, can open already hydrated files.

Also, I noticed that cloud app itself started as a service can fetch (hydrate) files in the sync root.

Is there any policy/setting can be applied to allow trigger the file hydration (CF_CALLBACK_TYPE_FETCH_DATA) for service apps?
For my implementation it is mandatory to have population/hydration by demand without restrictions for any process. (I have my own filtering in callbacks)

SDK in use 10.0.22000.0
Winver 21H2 19044.1706

Thanks,

@Rita Han - MSFT
@Xiaopo Yang - MSFT

Windows App SDK
Windows App SDK
A set of Microsoft open-source libraries, frameworks, components, and tools to be used in apps to access Windows platform functionality on many versions of Windows. Previously known as Project Reunion.
727 questions
Windows API - Win32
Windows API - Win32
A core set of Windows application programming interfaces (APIs) for desktop and server applications. Previously known as Win32 API.
2,432 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ashok Kumar 0 Reputation points
    2023-02-10T03:27:42.1433333+00:00

    Hi @Junjie Zhu - MSFT ,

    We are also facing the same issue. The application running as a service tries to open cloud files and we see the same error code. Is this issue fixed in latest windows version? Please let us know if there is any update on this one.

    Thanks

    Ashok

    0 comments No comments