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

Failed to write back edited file on some devices #540

Closed
2 tasks done
SailReal opened this issue Jun 28, 2024 · 0 comments
Closed
2 tasks done

Failed to write back edited file on some devices #540

SailReal opened this issue Jun 28, 2024 · 0 comments
Labels
type:bug Something isn't working
Milestone

Comments

@SailReal
Copy link
Member

Please agree to the following

Summary

Writing back an edited file using a thrid party fails

System Setup

- Android: 14
- Cryptomator: 1.10.1
- Device: SM-P613

Cloud Type

No response

Steps to Reproduce

  1. Open a file using Cryptomator
  2. Change it using a third party app
  3. Resume to Cryptomator

Expected Behavior

Cryptomator uploads the changed file

Actual Behavior

Cryptomator shows an error and discards the change

Reproducibility

Intermittent

Relevant Log Output

E	20240628203518.368	ExceptionHandler	android.database.CursorIndexOutOfBoundsException: Requested column: -1, # of columns: 2
	at android.database.MatrixCursor.get(MatrixCursor.java:72)
	at android.database.MatrixCursor.isNull(MatrixCursor.java:324)
	at android.database.CursorWrapper.isNull(CursorWrapper.java:186)
	at org.cryptomator.presentation.util.ContentResolverUtil.fileModifiedDateForContentUri(ContentResolverUtil.kt:35)
	at org.cryptomator.presentation.util.ContentResolverUtil.fileModifiedDate(ContentResolverUtil.kt:22)
	at org.cryptomator.presentation.presenter.UriBasedDataSource.modifiedDate(UriBasedDataSource.kt:33)
	at org.cryptomator.domain.usecases.cloud.CancelAwareDataSource.modifiedDate(CancelAwareDataSource.kt:40)
	at org.cryptomator.data.cloud.crypto.CryptoImplDecorator.writeShortNameFile(CryptoImplDecorator.kt:452)
	at org.cryptomator.data.cloud.crypto.CryptoImplVaultFormat7.write(CryptoImplVaultFormat7.kt:460)
	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.domain.usecases.cloud.UploadFiles.writeCloudFile(UploadFiles.java:118)
	at org.cryptomator.domain.usecases.cloud.UploadFiles.upload(UploadFiles.java:94)
	at org.cryptomator.domain.usecases.cloud.UploadFiles.upload(UploadFiles.java:82)
	at org.cryptomator.domain.usecases.cloud.UploadFiles.upload(UploadFiles.java:74)
	at org.cryptomator.domain.usecases.cloud.UploadFiles.execute(UploadFiles.java:61)
	at org.cryptomator.domain.usecases.cloud.UploadFilesUseCase$Launcher$2.subscribe(UploadFilesUseCase.java:119)
	at io.reactivex.internal.operators.flowable.FlowableFromPublisher.subscribeActual(FlowableFromPublisher.java:29)
	at io.reactivex.Flowable.subscribe(Flowable.java:14935)
	at io.reactivex.Flowable.subscribe(Flowable.java:14882)
	at io.reactivex.internal.operators.flowable.FlowableSubscribeOn$SubscribeOnSubscriber.run(FlowableSubscribeOn.java:82)
	at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker$BooleanRunnable.run(ExecutorScheduler.java:288)
	at io.reactivex.internal.schedulers.ExecutorScheduler$ExecutorWorker.run(ExecutorScheduler.java:253)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:644)
	at java.lang.Thread.run(Thread.java:1012)

ErrorCode: MIOQ:KCRI

Anything else?

Can not reproduce it on my device, seems to be device specific

@SailReal SailReal added the type:bug Something isn't working label Jun 28, 2024
@SailReal SailReal added this to the 1.10.2 milestone Jun 28, 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