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

File copy fails when it has kernel extended attribute on Windows #3271

Closed
2 tasks done
XP1 opened this issue Jan 4, 2024 · 1 comment
Closed
2 tasks done

File copy fails when it has kernel extended attribute on Windows #3271

XP1 opened this issue Jan 4, 2024 · 1 comment
Labels
type:bug Something isn't working

Comments

@XP1
Copy link

XP1 commented Jan 4, 2024

Please agree to the following

Summary

Create an automatically saved screenshot using Snipping Tool when Avast File Shield is enabled

What software is involved?

  • Operating System: Windows 11 22631.2861
  • Cryptomator: 1.11.0 msi-4970
  • Snipping Tool: 11.2310.54.0
  • Avast: 23.12.6094 (build 23.12.8700.813)

Volume Type

WinFsp

Steps to Reproduce

  1. Make sure Avast File Shield is enabled: Protection > Core Shields > File Shield.
  2. Press the Print Screen key to activate the Snipping Tool and create a screenshot. Make sure it automatically saved to the %UserProfile%\Pictures\Screenshots folder.
  3. Avast adds a $KERNEL.PURGE.ASWAV kernel extended attribute to the file. Observe using:
fsutil file queryea "Screenshot 2024-01-04 053005.png"

Extended Attributes (EA) information for file C:\Users\User\Pictures\Screenshots\Screenshot 2024-01-04 053005.png:

Total Ea Size: 0x4c

Ea Buffer Offset: 0
Ea Name: $KERNEL.PURGE.ASWAV
Ea Value Length: 30
0000:  01 2e 00 00 00 00 00 00  00 00 00 00 00 00 00 10  ................
0010:  b3 ec 99 f3 22 9e d9 fd  03 c1 50 df c3 ad 98 f7  ....".....P.....
0020:  00 95 39 97 61 10 3f 69  85 f0 27 76 41 43 4d 34  ..9.a.?i..'vACM4
  1. Try to copy the "Screenshot ....png" file to a vault.

Expected Behavior

File copied successfully.

Actual Behavior

File created has 0 bytes.

File Explorer errors:

The destination already has a file named "..."

Destination Folder Access Denied
You need permission to perform this action

Log error:

create /Screenshot 2024-01-04 053005.png failed, file already exists.

Reproducibility

Always

Relevant Log Output

06:16:56.426 [Thread-12] TRACE o.c.frontend.fuse.ReadWriteAdapter - create /Screenshot 2024-01-04 053005.png with flags [READ, WRITE, CREATE_NEW]
06:16:56.433 [Thread-12] TRACE o.c.cryptofs.fh.FileHeaderHolder - Generating file header for C:\Users\User\TestVault\d\XP\XZRBHQAG57G7OWD4G5CCLGLAFEIMK6\HJXs0f3F-9GT2jjD38hsdkI3LdvgpwenS57c9ZwJx2mNskgZnDRVStMD4x-FYDUd.c9r
06:16:56.434 [Thread-12] DEBUG o.c.c.common.ReseedingSecureRandom - Seeding CSPRNG with 55 bytes...
06:16:56.434 [Thread-12] DEBUG o.c.c.common.ReseedingSecureRandom - Seeded CSPRNG.
06:16:56.437 [Thread-12] TRACE o.c.cryptofs.fh.OpenCryptoFile - First channel for this openFile. Initializing file size...
06:16:56.439 [Thread-12] TRACE o.c.frontend.fuse.OpenFileFactory - Opening 1 OpenFile{path=/Screenshot 2024-01-04 053005.png, channel=org.cryptomator.cryptofs.ch.CleartextFileChannel@912f70f}
06:16:56.440 [Thread-12] TRACE o.c.frontend.fuse.ReadWriteAdapter - setxattr /Screenshot 2024-01-04 053005.png $KERNEL.PURGE.ASWAV
06:16:56.440 [Thread-12] TRACE o.c.frontend.fuse.ReadOnlyAdapter - release /Screenshot 2024-01-04 053005.png (1)
06:16:56.440 [Thread-12] TRACE o.c.frontend.fuse.OpenFileFactory - Releasing 1 OpenFile{path=/Screenshot 2024-01-04 053005.png, channel=org.cryptomator.cryptofs.ch.CleartextFileChannel@912f70f}
06:16:56.441 [Thread-12] TRACE o.c.cryptofs.ch.CleartextFileChannel - org.cryptomator.cryptofs.ch.CleartextFileChannel@912f70f - Writing file header.
06:16:56.442 [Thread-12] TRACE o.c.frontend.fuse.ReadOnlyAdapter - getattr / (lastModifiedTime: 2024-01-04T11:16:56.4330484Z, lastAccessTime: 2024-01-04T11:16:56.4330484Z, creationTime: 2024-01-04T04:31:00.0510018Z, isRegularFile: false, isDirectory: true, isSymbolicLink: false, isOther: false, size: 20480, fileKey: null)
06:16:56.442 [Thread-12] TRACE o.c.frontend.fuse.ReadWriteAdapter - create /Screenshot 2024-01-04 053005.png with flags [READ, WRITE, CREATE_NEW]
06:16:56.443 [Thread-12] WARN  o.c.frontend.fuse.ReadWriteAdapter - create /Screenshot 2024-01-04 053005.png failed, file already exists.

Anything else?

No response

@XP1 XP1 added the type:bug Something isn't working label Jan 4, 2024
@XP1
Copy link
Author

XP1 commented Jan 4, 2024

Updated to 1.11.1.4989. Bug already fixed: #3207 (comment)

@XP1 XP1 closed this as completed Jan 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant