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
d92e4b0daf
fix: rename PCloudCloud stuff to PCloud
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
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
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
f14c46fa2a
feat(Data): add PCloudNode, PCloudFile, PCloudFolder and RootPCloudFolder
2021-03-26 17:06:48 +01:00
Julian Raufelder
02cf2521fa
#278 fix restore from backup problem by disabling backup
2021-03-24 15:03:54 +01:00
Julian Raufelder
d448b37f43
Recreate VAULT_ENTITY when changing CLOUD_ENTITY
...
Otherwise ForeignKeyBehaviour.ON_DELETE_SET_NULL causes vaults no longer have a cloud-id
2021-03-19 18:13:27 +01:00
Julian Raufelder
40c679e7dd
Fix database update crash when Dao object changed
2021-03-19 17:49:15 +01:00
Julian Raufelder
0f42ddd964
Rename webdavUrl to url in CloudEntity
2021-03-19 12:48:22 +01:00
Julian Raufelder
76c19377c1
Temporary add pcloud-sdk-java as project dependency
...
as long as https://github.com/pCloud/pcloud-sdk-java/pull/9 is not merged in upstream
2021-03-11 15:14:51 +01:00
Julian Raufelder
36fd5b2a8a
Refactor unlock and cloud authentication from UseCase to Activity
2021-03-09 14:06:01 +01:00
Julian Raufelder
c8e9616894
Update dependencies
2021-03-02 14:52:42 +01:00
Julian Raufelder
667fb82165
Create new project code style config and reformat code base with it
2021-02-18 16:13:21 +01:00
Julian Raufelder
3755eed300
Merge pull request #260 from markuskreusch/feature/253-cancel-unlocking
...
Feature/253 cancel unlocking
2021-02-17 20:33:42 +01:00
Markus Kreusch
abd7e74590
Allow unlock cancellation using cancel flag in the use case
2021-02-17 20:03:46 +01:00
Julian Raufelder
5b1d7cfefb
Merge pull request #264 from feature/168-sort-vault-list
...
Feature/168 sort vault list
2021-02-12 18:52:51 +01:00
Julian Raufelder
8d6bc95073
#265 unlocking vaults after changing OneDrive password displays error
...
This should be still enhanced by displaying the login screen but is already better than being stuck in a black screen.
2021-02-12 18:38:57 +01:00
Julian Raufelder
a217e58f94
Add logging to Google Drive cloud
2021-02-11 21:33:14 +01:00
Julian Raufelder
22c53f5abe
#168 start position indices by 0 and test position helper
2021-02-10 19:15:44 +01:00
Julian Raufelder
c5e05df01a
Merge branch 'develop' into feature/168-sort-vault-list
2021-02-10 18:14:43 +01:00