428 Commits

Author SHA1 Message Date
Manuel Jenny
81bde173f1
fix: improve exception handling for read() 2021-03-26 17:07:03 +01:00
Manuel Jenny
2158e2a0d4
fix: move from stat to loadFile 2021-03-26 17:07:02 +01:00
Manuel Jenny
44c5029651
fix(rebase): use proper setter for Url 2021-03-26 17:07:02 +01:00
Manuel Jenny
5904073776
fix: remove unused imports 2021-03-26 17:07:02 +01:00
Manuel Jenny
2fcf53b633
feat: add exception handling 2021-03-26 17:07:02 +01:00
Manuel Jenny
1146a5e8fc
fix: file upload with unencoded filename
There seems to be an issue with unencoded filenames when uploading a new
file to the vault.

E.g. file name
"YYbfUTn6ViuRkXzeXXYAAu8z6DwFMrTNtPY3zpjn24RIUmzqqi4=.c9r" will result
in a broken upload. Encoding the filename will solve this:
"YYbfUTn6ViuRkXzeXXYAAu8z6DwFMrTNtPY3zpjn24RIUmzqqi4%3D.c9r"

However, this will actually result in the file's name being encoded. If
the filename and the encoded filename do not match we need to rename the
uploaded file using the correct filename.
2021-03-26 17:07:01 +01:00
Manuel Jenny
d9d88df49a
fix: use ROOT_FOLDER_ID inline 2021-03-26 17:07:01 +01:00
Manuel Jenny
eba5ab6a4c
fix: get root folder id from RemoteFolder 2021-03-26 17:07:01 +01:00
Manuel Jenny
80a0d7cdcd
fix: throw WrongCredentialsException in findEntry() 2021-03-26 17:07:01 +01:00
Manuel Jenny
369e1d1945
feat: add error code for revoked access token 2021-03-26 17:07:00 +01:00
Manuel Jenny
c1ca71be82
fix: remove PCloudIdCloudNode interface 2021-03-26 17:07:00 +01:00
Manuel Jenny
f7411ea286
fix: remove unused import 2021-03-26 17:07:00 +01:00
Manuel Jenny
c8a2c1dc19
feat: implement toasts for authentication errors 2021-03-26 17:07:00 +01:00
Manuel Jenny
d92e4b0daf
fix: rename PCloudCloud stuff to PCloud 2021-03-26 17:06:59 +01:00
Manuel Jenny
f17df0e179
fix: don't specify activityResult as optional 2021-03-26 17:06:59 +01:00
Manuel Jenny
9fc4626e61
fix: remove PCLOUD_CLIENT_ID from manifestPlaceholders 2021-03-26 17:06:59 +01:00
Manuel Jenny
73b3dc1459
fix: remove unused pCloud related logout code 2021-03-26 17:06:59 +01:00
Manuel Jenny
0bb01fec0e
fix: remove unused imports 2021-03-26 17:06:58 +01:00
Manuel Jenny
90c7c14471
fix: simplifications
- Change all `CloudNode` to `PCloudNode`
- Check `replace` before `exists()`
- Move definition of relocationEntry below exception
- Change `CloudFile` to `PCloudFile`
2021-03-26 17:06:58 +01:00
Manuel Jenny
b6cebf16fb
fix: move decrypt() for accessToken 2021-03-26 17:06:58 +01:00
Manuel Jenny
091f7eeacf
fix: read pCloud Client ID from BuildConfig 2021-03-26 17:06:58 +01:00
Manuel Jenny
c958558f50
fix: change signatures, remove unneccessary methods
- Change signatures of PCloudImpl, PCloudFile and PCloudFolder to match
  Google Drive implementation
- Remove unneccessary file() and folder() methods (read path directly)
2021-03-26 17:06:57 +01:00
Manuel Jenny
615fe5558e
fix: move() only rename if relocationResult has different name than target 2021-03-26 17:06:57 +01:00
Manuel Jenny
46dbde1103
fix(move): rename file after relocation 2021-03-26 17:06:57 +01:00
Manuel Jenny
8f145735ed
fix: missing IDs in cache 2021-03-26 17:06:57 +01:00
Manuel Jenny
81ee67b378
feat: introduce idCache for pCloud 2021-03-26 17:06:57 +01:00
Manuel Jenny
7dc9456d97
fix: null safe folderid for list 2021-03-26 17:06:56 +01:00
Manuel Jenny
b08a9cb549
fix: override contentLength to return size of data 2021-03-26 17:06:56 +01:00
Manuel Jenny
ad8d5338ca
fix: exist to also check files properly 2021-03-26 17:06:56 +01:00
Manuel Jenny
42abae3a5a
fix: read 2021-03-26 17:06:56 +01:00
Manuel Jenny
ceb2de61d4
fix: make fileid null safe 2021-03-26 17:06:55 +01:00
Manuel Jenny
c29801f132
Revert "fix: instatiate RootPCloudFolder with path /"
This reverts commit c93a6b289de6817f693fe00ef1f47130baeca4c6.
2021-03-26 17:06:55 +01:00
Manuel Jenny
85d920da19
fix: instatiate RootPCloudFolder with path / 2021-03-26 17:06:55 +01:00
Manuel Jenny
05b95cf5da
fix: folder listing 2021-03-26 17:06:55 +01:00
Manuel Jenny
4fd187e697
chore: simplify check if account was already registered 2021-03-26 17:06:54 +01:00
Manuel Jenny
bd2bfa9724
feat: implement account removal for pCloud 2021-03-26 17:06:54 +01:00
Manuel Jenny
9cc585eaf8
fix: set pCloud predefined to false 2021-03-26 17:06:54 +01:00
Manuel Jenny
550415627e
feat: add authentication for pCloud (including UI) 2021-03-26 17:06:54 +01:00
Manuel Jenny
6a249056b0
fix: set url to null, add TODO 2021-03-26 17:06:53 +01:00
Manuel Jenny
c9a73ced8f
feat: support multi instances, fix display name resource
- Allow multiple instances for pCloud
- Use correct display name resource
2021-03-26 17:06:53 +01:00
Manuel Jenny
85e2b16232
fix: add id() and url() 2021-03-26 17:06:53 +01:00
Manuel Jenny
9e3d0a91dc
fix: return proper type 2021-03-26 17:06:53 +01:00
Manuel Jenny
e2903820f7
fix: add missing withUrl() for pCloud 2021-03-26 17:06:52 +01:00
Manuel Jenny
faaec7a922
feat: add pCloud model and mappers, add strings 2021-03-26 17:06:52 +01:00
Manuel Jenny
80dce5ec60
feat: add pCloud implementation 2021-03-26 17:06:52 +01:00
Manuel Jenny
bb4572b9d0
feat(Data): introduce PCloudCloudNodeFactory 2021-03-26 17:06:52 +01:00
Manuel Jenny
9329062b54
feat(Data): introduce PCloudCloudContentRepositoryFactory 2021-03-26 17:06:51 +01:00
Manuel Jenny
32ce52c93d
feat(Domain): introduce PCLOUD CloudType 2021-03-26 17:06:51 +01:00
Manuel Jenny
fdf144c655
feat(Domain): add PCloudCloud 2021-03-26 17:06:51 +01:00
Manuel Jenny
f14c46fa2a
feat(Data): add PCloudNode, PCloudFile, PCloudFolder and RootPCloudFolder 2021-03-26 17:06:48 +01:00