dokan-dev / dokany

User mode file system library for windows with FUSE Wrapper
http://dokan-dev.github.io
5.21k stars 661 forks source link

Data corruption occured!! #1045

Closed onexzero closed 2 years ago

onexzero commented 2 years ago

Feature request can skip this form. Bug report must complete it. Check List must be 100% match or it will be automatically closed without further discussion. Please remove this line.

Environment

Check List

Description

I ran mirror as below.

mirror /n /d /r c:\Temp /l m:\

And open 1111.pptx in drive m: Edited and saved, then edited and saved again. But the first one seemed to be saved normally, Second, an Access denied error occurred. I closed powerpnt.exe and opened C:\Temp\1111.pptx, but It has not been opened, nor has it been erased. When I looked at the permission in the properties window, the ACL item was not marked at all like the attached picture. I manually adjusted the ACL entries and re-opened c:\Temp\1111.pptx, but it also did not open. The related log is attached.

Logs

Please attach in separate files: mirror output, library logs and kernel logs. In case of BSOD, please attach minidump or dump analyze output. ErrorReport.zip

onexzero commented 2 years ago

There seems to be a problem with Save As too. My driver works without any problems in v1.5, but in v2.x, a crash occurs when saving as a different name in MS-OFFICE programs such as Powerpoint. No application crash dump is created either.

Liryna commented 2 years ago

Hi,

Thanks for the report. When you say crash, what is crashing exactly?

What version of Excel are you using ?

onexzero commented 2 years ago

Powerpoint and msword are terminated without crash dump.

onexzero commented 2 years ago

msoffice 2016 pro plus

Liryna commented 2 years ago

I could not reproduce the issue. Everything looks fine with Office 2016 & the last release. excelsave

onexzero commented 2 years ago

I did not test with excel. Please open powerpnt or msword and click save repeatedly.

Liryna commented 2 years ago

Same I cannot repro. No crash and the file is still accessible. Have you tried mirroring a folder you have all permissions ? Like a Desktop\MyMirror or even run the mirror as admin ?

Liryna commented 2 years ago

Confirmed this is a permission issue. I could reproduce by mirroring a folder I had no rights like the C:\temp The logs also contains error regarding the token permission.

onexzero commented 2 years ago

Hi Liryna. I saw the capture you posted and thought it was strange, so I tried to reproduce it again, and found another strange error, so I attached the content and the file used for testing.

https://user-images.githubusercontent.com/31300523/149609308-bcd61796-36d7-4642-b898-d47226a2b258.mp4

1111.pptx

onexzero commented 2 years ago

At the time of capture, Windows defender was disabled and no programs were installed that could interfere with its operation.