Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CloudMirror / CFAPI / Can't get access to cloud data via system service. #245

Open
Modin-ua opened this issue Jul 12, 2022 · 1 comment
Open

Comments

@Modin-ua
Copy link

Turned out app started in service session (0) despite system privileges can't trigger data hydration from the cloud.
Although if data already pulled to sync root service app can read data without issues.

Exception discovered: if executable placed in %systemroot% it can trigger hydration.

Error client (service session) app receives: Access to the cloud file is denied. - 0x0000018B (395)
in ProcessMonitor(sysinternals) it would be error 0xC000CF18 indicated in CreateFile.

Issue can be reproduced by pointing any service app to not yet hydrated file in sync root for reading.

Or this way:

  • Copy executable file C:\Windows\System32\more.com to C:\more.com

  • Run in elevated console: psexec -h -s cmd

  • Try open any file in local sync root like: C:\more.com C:\sync_root_folder\cloud_file
    get Cannot access file error.

  • Run: C:\WINDOWS\system32\more.com C:\sync_root_folder\cloud_file
    see it opens fine.

Already discussed in Docs Q&A, directed to this issue tracker from there.
https://docs.microsoft.com/en-us/answers/questions/892349/cfapi-allow-data-fetch-for-services.html

Thanks,

@AliveDevil
Copy link

Same issue here.
Trying to create unit tests for CloudFiles with a Jenkins CI service account.

It's impossible to test now, as no callback is generated for file access from the sync provider process, and spawning a separate helper-process to perform file access to trigger callbacks fails with above issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants