211 Commits

Author SHA1 Message Date
Julian Raufelder
a736a33d88
Update database and UI to support S3 2021-04-30 09:22:23 +02:00
Manuel Jenny
b0f288f479
fix(S3): use listObjectsV2() 2021-04-30 09:22:23 +02:00
Manuel Jenny
cf715bc000
fix(S3): use own S3 Lru Cache 2021-04-30 09:22:22 +02:00
Manuel Jenny
4e082d5f8a
fix(S3): use trailing slash for folders 2021-04-30 09:22:22 +02:00
Manuel Jenny
a9525b4477
feat(S3): implement move() 2021-04-30 09:22:22 +02:00
Manuel Jenny
ddbb59b831
feat(S3): add new file() method 2021-04-30 09:22:21 +02:00
Manuel Jenny
fe15c748bc
fix(S3): ContentRepositoryFactory to use proper Cloud 2021-04-30 09:22:21 +02:00
Manuel Jenny
24e96b7205
fix(S3): make sure the build works 2021-04-30 09:22:21 +02:00
Manuel Jenny
bc3c0adba5
feat(S3): use SUFFIX, remove unthrowable exceptions 2021-04-30 09:22:21 +02:00
Manuel Jenny
7d9c20d137
feat(S3): cleanup S3CloudContentRepository
- use proper signature
- add TODO for error handling
2021-04-30 09:22:20 +02:00
Manuel Jenny
4afd6bc703
feat(S3): implement exists(), write(), read() and delete()
- add implementation for `exists()`
- add implementation for `write()`
- add implementation for `read()`
- add implementation for `delete()`
- add support for `currentAccount()`
2021-04-30 09:22:20 +02:00
Manuel Jenny
c63db47e56
feat(S3): support PutObjectResult, fix key / name
- add S3File creation with `PutObjectResult` support.
- properly extract name of file / folder from key.
2021-04-30 09:22:20 +02:00
Manuel Jenny
fe21e3988d
chore(pCloud): rename folder to parent 2021-04-30 09:22:20 +02:00
Manuel Jenny
3cf028ddce
feat(S3): implement list() and create() 2021-04-30 09:22:20 +02:00
Manuel Jenny
250e711d4a
feat(S3): implement S3CloudNodeFactory 2021-04-30 09:22:19 +02:00
Manuel Jenny
00a63228c1
feat(S3): initial structure (non functional S3Impl) 2021-04-30 09:22:19 +02:00
Manuel Jenny
0224532c45
feat(S3): add AWS S3 SDK dependency 2021-04-30 09:22:19 +02:00
Julian Raufelder
4f8f817808
#307 fix pCloud login in F-Droid 2021-04-24 23:37:07 +02:00
Manuel Jenny
c9489a3795
fix(pCloud): issue #305 NullReference
Fix #305: NullReference when calling loadFolder with empty string
2021-04-23 17:19:34 +02:00
Julian Raufelder
b304d6e828
Rename crypto maxFileNameLength to shorteningThreshold 2021-04-19 15:30:22 +02:00
Julian Raufelder
cfe1716f8f
#198 enable desugaring to fix OneDrive in Android 6.0 on some devices 2021-04-13 14:58:36 +02:00
Julian Raufelder
ae4c57ac8e
Fix MasterkeyCryptoCloudProviderTest and enhance logging when test fails 2021-04-12 16:00:22 +02:00
Julian Raufelder
4871172fb4
Finish tests of MasterkeyCryptoCloudProvider 2021-04-09 15:02:14 +02:00
Julian Raufelder
65ad054ff3
Enhance visibility for testing 2021-04-09 14:56:40 +02:00
Julian Raufelder
a4762fb32a
Test content of written vault config as well
While creating a vault, check also the content for the
vault.cryptomator file.
2021-04-09 09:24:36 +02:00
Julian Raufelder
f6c8554779
Add VaultConfigBuilder as parameter in createVault
To enhance testing
2021-04-09 09:22:41 +02:00
Julian Raufelder
23350a8cd7
Write createVault test and started with lockVault but still WIP 2021-04-08 21:58:16 +02:00
Julian Raufelder
cf5bf19c98
Provide SecureRandom as parameter for better testing and code dedup 2021-04-08 21:57:16 +02:00
Julian Raufelder
e34597a716
Improve error handling while verifying VaultConfig 2021-04-07 18:29:23 +02:00
Julian Raufelder
3fef796546
Add vault format 8 support 2021-04-07 16:59:32 +02:00
Julian Raufelder
6df05fd95b
Simplify exists check in CloudImpls:write
Switching if (exists(file) && !replace) to  if (!replace && exists(file))
2021-04-07 15:50:00 +02:00
Julian Raufelder
932ea09b62
Merge branch 'develop' into feature/vault-format-8 2021-03-29 14:05:29 +02:00
Julian Raufelder
9364d77f80
Merge branch 'feature/pcloud' into develop 2021-03-26 21:02:08 +01:00
Julian Raufelder
9843e77c3f
Reformat code to apply to project style guide 2021-03-26 17:07:08 +01:00
Manuel Jenny
d227c5c0fd
fix: use static sets, user proper name 2021-03-26 17:07:07 +01:00
Manuel Jenny
728d5262ab
fix: handleApiError() with name 2021-03-26 17:07:07 +01:00
Manuel Jenny
d3609ac691
fix: directly return newFile 2021-03-26 17:07:07 +01:00
Manuel Jenny
aaf7f4bfb5
fix: remove file encoding left overs 2021-03-26 17:07:07 +01:00
Manuel Jenny
c57a59c29b
fix: remove filename encoding 2021-03-26 17:07:06 +01:00
Manuel Jenny
6217c42440
chore: add TODO regarding filename encoding 2021-03-26 17:07:06 +01:00
Manuel Jenny
e1bc82b89a
fix: throw NoSuchCloudFileException if API Error Code is 2002 2021-03-26 17:07:06 +01:00
Manuel Jenny
5695a5c0ed
Revert "fix: list for root folder"
This reverts commit a2215694b1a25312dfeaced866561ec1447f09a9.
2021-03-26 17:07:05 +01:00
Manuel Jenny
e35f1d6087
fix: list for root folder 2021-03-26 17:07:05 +01:00
Manuel Jenny
9b93fb9623
feat: remove idCache and switch to loading with paths 2021-03-26 17:07:05 +01:00
Manuel Jenny
6ccee05851
fix: instantiate separate idCache for each PCloud instance 2021-03-26 17:07:04 +01:00
Manuel Jenny
d3bb9d30aa
fix: remove cache for OkHttpClient 2021-03-26 17:07:04 +01:00
Manuel Jenny
20939f9ba0
fix: rename writeData to writeToData 2021-03-26 17:07:04 +01:00
Manuel Jenny
c5c139f962
fix: once again remove unused imports... 2021-03-26 17:07:04 +01:00
Manuel Jenny
b97a4750c6
feat: implement file cache
Due to the way the pCloud revision handling is implemented every
download will actually be a cache miss even if the file is small enough
and didn't change since last download.

Therefore, we have to implement our own file cache.
2021-03-26 17:07:03 +01:00
Manuel Jenny
8c030a5f9c
fix: throw NoSuchCloudFileException if fileId is missing 2021-03-26 17:07:03 +01:00