186 Commits

Author SHA1 Message Date
Julian Raufelder
c685cc3645
Re-initialise the client to access the cloud when credentials changes
Fixes #395
2021-12-03 16:49:10 +01:00
Julian Raufelder
b5c1170d4b
Remove parallelism 2021-11-16 12:17:08 +01:00
Julian Raufelder
0c31410cec
Remove network check for caching as network is forced in WebDAV 2021-11-05 11:40:35 +01:00
Julian Raufelder
b163353c1e
Simplify TrustManager assignment 2021-11-05 11:40:26 +01:00
Julian Raufelder
ad8a2ae747
Set TLS1.3 as enabled protocol in WebDAV-client on Android >= v10
Fixes #374
2021-11-04 14:57:06 +01:00
Julian Raufelder
250d756917
Ask user to re-grant local storage permission when revoked #251 2021-10-28 17:50:25 +02:00
Julian Raufelder
810a9877ca
Implement local storage migration by removing them with a hint #251 2021-10-27 22:59:57 +02:00
Julian Raufelder
f39cc8da7c
Fix delete local cloud (#251) 2021-10-22 17:51:12 +02:00
Julian Raufelder
7add3e5bed
Delete local storage cloud and set its vault connection to null (#251) 2021-10-22 17:40:55 +02:00
Julian Raufelder
91d1a65ba7
Update target API to 30 (Android 11)
Write external storage got removed due to forced scoped storage. Local storage cloud is now only available using the storage access framework implementation. Migration still needs to be implemented as well as how to recover when the authentications fails in the LocalStorageAuthStrategy.

Fixes #251
2021-10-22 15:52:02 +02:00
Julian Raufelder
3b641a22d8
Remove unused Context variable from the WebDavClient 2021-10-21 11:20:44 +02:00
Julian Raufelder
f6cc2c75e0
Fix MasterkeyCryptoCloudProviderTest as we now use HS256 2021-10-20 11:25:36 +02:00
Julian Raufelder
fdb6341773
Use HS256 instead of defaulting to HS512 for signing vault.cryptomator
New vaults should be created using HS256 to be compatible with the desktop and iOS app. Before, we was defaulting to HS512. Now we specify the correct version.
While unlock, the algorithm specified in the header is used. 

Fixes #366
2021-10-20 10:53:34 +02:00
Julian Raufelder
d4e642ae83
Generic error while unlock when WebDAV password changed (fixes #364) 2021-10-08 22:40:14 +02:00
Julian Raufelder
e6bd62e937
Update dependencies 2021-10-01 17:10:31 +02:00
Julian Raufelder
49586ba53f
Remove tracking library included by google-http-java-client (fixes #358)
By using https://github.com/SailReal/google-http-java-client which removed in 03a2374c31 all (in our case deactivated) tracking stuff.

And move all submodules to the '/lib'-folder
2021-10-01 13:37:01 +02:00
Julian Raufelder
3896db3631
Display parent folder in NoDirFileDialog instead of the dir.c9r file 2021-09-22 15:54:23 +02:00
Julian Raufelder
2ae54f8748
#323 fix http status code 500 on some devices using Google Drive
Due to too complex query, see https://github.com/cryptomator/android/issues/323#issuecomment-911907421 for more details
2021-09-14 12:32:05 +02:00
Julian Raufelder
d4bf3ff668
Implement ExponentialBackOff to GoogleDrive to hopefully workaround #323
We now retry a request if e.g. a status code 500 was received for max 15 seconds with exponential back off
2021-09-01 09:32:39 +02:00
Julian Raufelder
b7e9aab2da
Update dependencies 2021-08-25 17:49:07 +02:00
Julian Raufelder
a018cbd898
#336 hacky way to recover from SQLiteException while inserting old data 2021-07-23 16:42:34 +02:00
Julian Raufelder
05574d952c
Add tests for database upgrades 2021-07-22 19:27:57 +02:00
Julian Raufelder
cf439a1030
Fix database upgrade from version 3 to 4
DAO object was used while upgrade which can lead later to crash when the object changed
2021-07-22 19:02:03 +02:00
Julian Raufelder
8435bd0174
Fix database upgrade from version 2 to 3
The update isn't executed at all :/
2021-07-22 18:11:15 +02:00
Julian Raufelder
1d6811e1e8
Fix create initial update status entry in database
Fortunately, SqlInsertBuilder.text("LICENSE_TOKEN", null) and SqlInsertBuilder.bool("LICENSE_TOKEN", null) have the same result in this context
2021-07-16 17:38:47 +02:00
Julian Raufelder
bed3f3ac04
Show beta disclaimer dialogue 2021-07-09 19:13:38 +02:00
Julian Raufelder
3ae90ab521
Fix Dropbox vault unlock in vault version 7 and caching enabled 2021-07-07 16:58:43 +02:00
Julian Raufelder
543a03212f
#328 fix rename vault in S3 leads to empty vault 2021-07-07 15:48:35 +02:00
Julian Raufelder
d18e08f8a4
Fix move in GoogleDrive 2021-07-06 18:58:50 +02:00
Julian Raufelder
10e03d3df2
Remove some unwraps 2021-07-06 17:38:55 +02:00
Julian Raufelder
c23a5a2cfc
Handle further exceptions in a less generic way 2021-07-06 15:30:34 +02:00
Julian Raufelder
210d0fa7f4
Handle less generic exceptions in catch clauses 2021-07-06 12:52:51 +02:00
Julian Raufelder
d82bcaa3e8
Update dependencies 2021-07-06 12:00:29 +02:00
Julian Raufelder
7deebbd919
Refactore further code to Kotlin 2021-07-05 17:54:42 +02:00
Julian Raufelder
5c024dbda9
Reformat code using new Kotlin formatting rule 2021-05-17 18:26:07 +02:00
Julian Raufelder
bb07076ba8
Fix build project using Java 11 2021-05-17 17:01:09 +02:00
Julian Raufelder
60e7a025a0
Enhance error handling in S3 access denied 2021-05-12 15:11:03 +02:00
Julian Raufelder
fe96e1ad64
Enhance error handling in S3 delete 2021-05-12 14:55:18 +02:00
Julian Raufelder
e16ba4e5a9
Fix creating folders in the RootFolder of the bucked in S3
Stat requests throws an IllegalStateException if key is empty string
2021-05-12 12:30:37 +02:00
Julian Raufelder
19d08fa692
User needs to always provide the endpoint in S3 cloud 2021-05-12 11:34:41 +02:00
Julian Raufelder
d5598c3dd0
Save stats request if lastmodify is set in header of write result in S3 2021-05-11 19:13:54 +02:00
Julian Raufelder
98d22547b1
Minor improvements in S3 error handling 2021-05-11 18:30:10 +02:00
Julian Raufelder
318a7422f4
Drop S3 clouds and vaults from the database
This is necessary because the path/region handling has changed with the new dependency in the s3 cloud
2021-05-11 17:32:22 +02:00
Julian Raufelder
bf2341af21
Use path and path prefix correctly in S3 2021-05-11 17:04:07 +02:00
Julian Raufelder
5e0f88bcff
Switch from aws-android-sdk-s3 to minio-java 2021-05-11 14:56:04 +02:00
Julian Raufelder
33eb4ce735
Merge branch 'feature/enable-desugaring' into develop 2021-05-11 14:29:38 +02:00
Julian Raufelder
df57e01fce
Throw specific Exception if Masterkey is not at the default location
And fix displaying those errors in local storage cloud because the enter password dialog was only partial present when this exception is thrown which leads to a nullpointer.
2021-05-05 14:41:03 +02:00
Julian Raufelder
b32b76be32
Merge branch 'develop' into feature/vault-format-8 2021-05-03 12:29:33 +02:00
Julian Raufelder
1eb8c079c6
Verify SHA256 of the APK in update process 2021-05-01 14:32:14 +02:00
Julian Raufelder
50fbec1bae
Response can be null in afterError of LoggingAwareRequestHandler in S3 2021-04-30 11:51:32 +02:00