-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Windows update 19041.685 broke the example code Placeholders.cpp#L73 #164
Comments
Thanks. The team is working on putting together an update to the sample. I do have confirmation that the problem is indeed that the sample wasn't setting RelativeFileName to just a file name. The update tightened enforcement of this pre-existing requirement. |
On this note, any way to get more detailed information about the infamous 0x8007017c error? There seems to be some ETL logs in %windir%\system32\LogFiles\CloudFiles, but they seem to require private pdbs.... Anything else maybe? |
RelativeFileName must be a file name, not a relative path. Other fixes: * Use std::wstring::size() instead of calling wcslen. * Use c_str() instead of data() if you want a null-terminated read-only C-style string. * Fix typos in wprintf format strings.
Fix is out. Thanks for your patience. |
The recent update 19041.685 broke the example code in
Windows-classic-samples/Samples/CloudMirror/CloudMirror/Placeholders.cpp
Line 73 in 5d152f5
The code now fails with the error
Failed to create placeholder for folder\file.txt with 8007017c
for all relative paths including a folder.A workaround for the issue is to provide the complete directory as
BaseDirectoryPath
toCfCreatePlaceholders
and set the
RelativeFileName
ofCF_PLACEHOLDER_CREATE_INFO
to the file name only.While the documentation can be interpreted that way, the wording and this example here were misleading.
The behavioural change in combination with bad error handling on our side has caused us quite some trouble and potential data loss for our customers.
The text was updated successfully, but these errors were encountered: