You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unlock vault or have the vault in an unlocked state
Expected Behavior
Pictures gets uploaded
Actual Behavior
Upload fails due to permission exception while accessing the picture.
Reproducibility
Always
Relevant Log Output
AutoUploadNotification Show storage permission required notification
AutoUploadService Failed to auto upload image(s).
org.cryptomator.domain.exception.FatalBackendException: java.io.FileNotFoundException: /storage/emulated/0/Pictures/Icons/Tutanota_Icon.png: open failed: EACCES (Permission denied)
at org.cryptomator.data.cloud.crypto.CryptoImplDecorator.writeShortNameFile(CryptoImplDecorator.kt:451)
at org.cryptomator.data.cloud.crypto.CryptoImplVaultFormat7.write(CryptoImplVaultFormat7.kt:437)
at org.cryptomator.data.cloud.crypto.CryptoCloudContentRepository.write(CryptoCloudContentRepository.kt:90)
at org.cryptomator.data.cloud.crypto.CryptoCloudContentRepository.write(CryptoCloudContentRepository.kt:21)
at org.cryptomator.data.repository.DispatchingCloudContentRepository.write(DispatchingCloudContentRepository.kt:149)
at org.cryptomator.presentation.service.AutoUploadService.writeCloudFile(AutoUploadService.java:219)
at org.cryptomator.presentation.service.AutoUploadService.upload(AutoUploadService.java:206)
at org.cryptomator.presentation.service.AutoUploadService.upload(AutoUploadService.java:199)
at org.cryptomator.presentation.service.AutoUploadService.upload(AutoUploadService.java:175)
at org.cryptomator.presentation.service.AutoUploadService.lambda$startBackgroundImageUpload$1$org-cryptomator-presentation-service-AutoUploadService(AutoUploadService.java:109)
at org.cryptomator.presentation.service.AutoUploadService$$ExternalSyntheticLambda1.run(Unknown Source:6)
at java.lang.Thread.run(Thread.java:920)
Caused by: java.io.FileNotFoundException: /storage/emulated/0/Pictures/Icons/Tutanota_Icon.png: open failed: EACCES (Permission denied)
at libcore.io.IoBridge.open(IoBridge.java:575)
at java.io.FileInputStream.<init>(FileInputStream.java:160)
at java.io.FileInputStream.<init>(FileInputStream.java:115)
at android.content.ContentResolver.openInputStream(ContentResolver.java:1527)
at org.cryptomator.presentation.util.ContentResolverUtil.openInputStream(ContentResolverUtil.kt:20)
at org.cryptomator.presentation.presenter.UriBasedDataSource.open(UriBasedDataSource.kt:18)
at org.cryptomator.domain.usecases.cloud.CancelAwareDataSource.open(CancelAwareDataSource.kt:22)
at org.cryptomator.data.cloud.crypto.CryptoImplDecorator.writeShortNameFile(CryptoImplDecorator.kt:423)
... 11 more
Caused by: android.system.ErrnoException: open failed: EACCES (Permission denied)
at libcore.io.Linux.open(Native Method)
at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
at libcore.io.BlockGuardOs.open(BlockGuardOs.java:273)
at libcore.io.ForwardingOs.open(ForwardingOs.java:567)
at android.app.ActivityThread$AndroidOs.open(ActivityThread.java:7756)
at libcore.io.IoBridge.open(IoBridge.java:561)
... 18 more
ErrorCode: KNRD:M7LU
Anything else?
I can not reproduce this on a Pixel 6 and Pixel 4 using GrapheneOS too.
I can reproduce it on a pixel 7a with the Whatsapp Media folder. Deleting the folder does not help, as whatsapp recreates it after restart. Fast workaround would be to respect .nomedia file.
Please agree to the following
Summary
Auto upload fails due to permission problem while reading the file during upload
System Setup
Cloud Type
No response
Steps to Reproduce
Expected Behavior
Pictures gets uploaded
Actual Behavior
Upload fails due to permission exception while accessing the picture.
Reproducibility
Always
Relevant Log Output
Anything else?
I can not reproduce this on a Pixel 6 and Pixel 4 using GrapheneOS too.
According to https://developer.android.com/training/data-storage/shared/media when accessing the
MediaStore
and withScoped storage
enabled,See
android/presentation/src/main/AndroidManifest.xml
Line 9 in 55d7f68
and
android/presentation/src/main/java/org/cryptomator/presentation/service/PhotoContentJob.kt
Lines 149 to 153 in 55d7f68
So I have currently no idea what the problem is here 🤔
The text was updated successfully, but these errors were encountered: