nextcloud-desktop.git
5 years agoUse Q_REQUIRED_RESULT directly like in other places
Kevin Ottens [Wed, 30 Dec 2020 12:46:14 +0000 (13:46 +0100)]
Use Q_REQUIRED_RESULT directly like in other places

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMark vfs functions as OC_REQUIRED_RESULT
Hannah von Reth [Thu, 17 Dec 2020 13:13:24 +0000 (14:13 +0100)]
Mark vfs functions as OC_REQUIRED_RESULT

5 years agoHandle errors in convertToPlaceholder
Hannah von Reth [Wed, 30 Dec 2020 11:53:03 +0000 (12:53 +0100)]
Handle errors in convertToPlaceholder

5 years agoUpdate windows launch on start binary location
Hannah von Reth [Tue, 15 Dec 2020 14:02:33 +0000 (15:02 +0100)]
Update windows launch on start binary location

Fixes: #7672
5 years agoFix testVersionOfInstalledBinary for brandings
Dominik Schmidt [Mon, 14 Dec 2020 14:42:35 +0000 (15:42 +0100)]
Fix testVersionOfInstalledBinary for brandings

5 years agoUse owncloudcmd in testVersionOfInstalledBinary
Dominik Schmidt [Mon, 14 Dec 2020 14:37:05 +0000 (15:37 +0100)]
Use owncloudcmd in testVersionOfInstalledBinary

... as it works without X in CI.

5 years agoFix style
Dominik Schmidt [Mon, 14 Dec 2020 13:47:45 +0000 (14:47 +0100)]
Fix style

5 years agoAdd todo for Qt 5.15
Hannah von Reth [Mon, 14 Dec 2020 12:35:05 +0000 (13:35 +0100)]
Add todo for Qt 5.15

5 years agoCleanup pathtoUNC and its test
Hannah von Reth [Mon, 14 Dec 2020 12:32:28 +0000 (13:32 +0100)]
Cleanup pathtoUNC and its test

5 years agoClarify comment
Hannah von Reth [Mon, 14 Dec 2020 11:48:49 +0000 (12:48 +0100)]
Clarify comment

5 years agoSimplify file comparison
Hannah von Reth [Mon, 14 Dec 2020 11:37:33 +0000 (12:37 +0100)]
Simplify file comparison

5 years agoInclude auth type in http log
Hannah von Reth [Wed, 9 Dec 2020 14:39:01 +0000 (15:39 +0100)]
Include auth type in http log

5 years agoLog the final http request
Hannah von Reth [Wed, 9 Dec 2020 12:14:05 +0000 (13:14 +0100)]
Log the final http request

5 years agoMerge pull request #2778 from nextcloud/windows_cfapi_backend_for_vfs
Kevin Ottens [Wed, 30 Dec 2020 15:16:57 +0000 (16:16 +0100)]
Merge pull request #2778 from nextcloud/windows_cfapi_backend_for_vfs

Windows cfapi backend for vfs

5 years agoEnsure we properly cancel hydration on server errors
Kevin Ottens [Tue, 29 Dec 2020 17:53:00 +0000 (18:53 +0100)]
Ensure we properly cancel hydration on server errors

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoDon't look at virtual files data for the mimetype matches
Kevin Ottens [Tue, 29 Dec 2020 14:11:33 +0000 (15:11 +0100)]
Don't look at virtual files data for the mimetype matches

Otherwise this would attempt to download the file everytime we check the
direct editor for a given file which wouldn't be adequate. Would also
lead to a deadlock in our case since that would happen in the main
thread and implicit hydration is driven from there as well.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoImplement callback between wrapper and vfs object for hydration requests
Kevin Ottens [Tue, 29 Dec 2020 14:02:39 +0000 (15:02 +0100)]
Implement callback between wrapper and vfs object for hydration requests

This comes with a test simulating an open request coming from another
process (although in our case it's really just a thread). The actual
hydration works as expected by cfapi, handling of encrypted files is for
now missing.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoImprove test readability with a bunch of macros
Kevin Ottens [Wed, 23 Dec 2020 17:55:55 +0000 (18:55 +0100)]
Improve test readability with a bunch of macros

Since we often checked the same file states to see if they were virtual,
non virtual or gone, let's factor this out. This way intent in tests is
clearer.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoPort the tests to the CfApiWrapper
Kevin Ottens [Wed, 23 Dec 2020 17:05:53 +0000 (18:05 +0100)]
Port the tests to the CfApiWrapper

This reduces code duplication and opportunities of mistakes between the
test and the implementation.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoSplit the CfAPI lower level code in a wrapper
Kevin Ottens [Wed, 23 Dec 2020 16:38:05 +0000 (17:38 +0100)]
Split the CfAPI lower level code in a wrapper

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoAdd initial version of the CfApi backend
Kevin Ottens [Fri, 18 Dec 2020 11:37:03 +0000 (12:37 +0100)]
Add initial version of the CfApi backend

For now this implements only the logic necessary to get a test suite
equivalent to the TestSyncVirtualFiles one to pass. It doesn't (yet)
honor request to fetch files from the system.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoOne byte placeholders assumption only holds for the suffix backend
Kevin Ottens [Fri, 18 Dec 2020 11:16:39 +0000 (12:16 +0100)]
One byte placeholders assumption only holds for the suffix backend

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoDon't consider CfApi backend as experimental
Kevin Ottens [Fri, 18 Dec 2020 11:15:45 +0000 (12:15 +0100)]
Don't consider CfApi backend as experimental

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 30 Dec 2020 03:48:58 +0000 (03:48 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 29 Dec 2020 03:48:59 +0000 (03:48 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2748 from nextcloud/rakekniven-patch-1
Kevin Ottens [Mon, 28 Dec 2020 09:01:18 +0000 (10:01 +0100)]
Merge pull request #2748 from nextcloud/rakekniven-patch-1

Removed translation for "etag" and changed spelling

5 years agoChanged spelling of "etag".
rakekniven [Wed, 23 Dec 2020 17:52:18 +0000 (18:52 +0100)]
Changed spelling of "etag".

Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
5 years agoRemoved translation for "etag" and changed spelling
rakekniven [Sun, 20 Dec 2020 10:12:01 +0000 (11:12 +0100)]
Removed translation for "etag" and changed spelling

Shouldn't be translated.

Just checked https://en.wikipedia.org/wiki/HTTP_ETag and all available localized pages.

Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 27 Dec 2020 03:52:01 +0000 (03:52 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 26 Dec 2020 03:45:58 +0000 (03:45 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 25 Dec 2020 03:45:25 +0000 (03:45 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 24 Dec 2020 03:46:47 +0000 (03:46 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 23 Dec 2020 03:47:06 +0000 (03:47 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2759 from ivaradi/ubuntu-hirsute
István Váradi [Tue, 22 Dec 2020 09:55:48 +0000 (10:55 +0100)]
Merge pull request #2759 from ivaradi/ubuntu-hirsute

Add support for Hirsute

5 years agoAdd support for Hirsute
István Váradi [Tue, 22 Dec 2020 09:16:28 +0000 (10:16 +0100)]
Add support for Hirsute

Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 22 Dec 2020 03:48:05 +0000 (03:48 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2739 from hrittich/master
Kevin Ottens [Mon, 21 Dec 2020 11:07:44 +0000 (12:07 +0100)]
Merge pull request #2739 from hrittich/master

Fixed the autostart for AppImages. See #2504.

5 years agoFixed the autostart for AppImages. See #2504.
Hannah Rittich [Fri, 18 Dec 2020 12:13:55 +0000 (13:13 +0100)]
Fixed the autostart for AppImages. See #2504.

Signed-off-by: Hannah Rittich <hrittich@users.noreply.github.com>
5 years agoMerge pull request #2749 from nextcloud/rakekniven-patch-2
Kevin Ottens [Mon, 21 Dec 2020 08:12:42 +0000 (09:12 +0100)]
Merge pull request #2749 from nextcloud/rakekniven-patch-2

Changed triple dot to ellipsis

5 years agoChanged triple dot to ellipsis
rakekniven [Sun, 20 Dec 2020 10:17:49 +0000 (11:17 +0100)]
Changed triple dot to ellipsis

Reported at Transifex.

Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 21 Dec 2020 03:46:22 +0000 (03:46 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 20 Dec 2020 03:48:31 +0000 (03:48 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 19 Dec 2020 03:46:53 +0000 (03:46 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 18 Dec 2020 03:48:04 +0000 (03:48 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2726 from nextcloud/settings-ui
Kevin Ottens [Thu, 17 Dec 2020 10:00:48 +0000 (11:00 +0100)]
Merge pull request #2726 from nextcloud/settings-ui

UI improvements: Settings dialog

5 years agoUpdate the settings dialog window title.
Camila [Tue, 15 Dec 2020 21:11:31 +0000 (22:11 +0100)]
Update the settings dialog window title.

Signed-off-by: Camila <hello@camila.codes>
5 years agoGeneral settings: move buttons to the bottom left of their group boxes.
Camila [Tue, 15 Dec 2020 20:55:31 +0000 (21:55 +0100)]
General settings: move buttons to the bottom left of their group boxes.

Signed-off-by: Camila <hello@camila.codes>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 17 Dec 2020 03:46:16 +0000 (03:46 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2725 from nextcloud/default-mono-icons
Kevin Ottens [Wed, 16 Dec 2020 18:03:56 +0000 (19:03 +0100)]
Merge pull request #2725 from nextcloud/default-mono-icons

Make monochrome icons the default on Linux and Mac OS.

5 years agoMake monochrome icons the default on Linux and Mac OS.
Camila [Tue, 15 Dec 2020 20:07:51 +0000 (21:07 +0100)]
Make monochrome icons the default on Linux and Mac OS.

Unless it is branded with other icons.

Signed-off-by: Camila <hello@camila.codes>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 16 Dec 2020 03:48:12 +0000 (03:48 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2700 from nextcloud/major_engine_update
Kevin Ottens [Tue, 15 Dec 2020 11:32:17 +0000 (12:32 +0100)]
Merge pull request #2700 from nextcloud/major_engine_update

Major engine update

5 years agoAdjust the appimage script to the buildsystem changes
Kevin Ottens [Fri, 11 Dec 2020 01:22:48 +0000 (02:22 +0100)]
Adjust the appimage script to the buildsystem changes

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoWorkaround bug in older GCC used for the AppImage toolchain
Kevin Ottens [Fri, 11 Dec 2020 01:14:07 +0000 (02:14 +0100)]
Workaround bug in older GCC used for the AppImage toolchain

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoGet the excluded files test to pass again on Windows
Kevin Ottens [Fri, 11 Dec 2020 01:13:51 +0000 (02:13 +0100)]
Get the excluded files test to pass again on Windows

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoPlease the clang-tidy overlord
Kevin Ottens [Thu, 10 Dec 2020 18:52:58 +0000 (19:52 +0100)]
Please the clang-tidy overlord

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoDon't warn if everything is fine
Hannah von Reth [Wed, 9 Dec 2020 10:19:30 +0000 (11:19 +0100)]
Don't warn if everything is fine

5 years agoRemove now unneeded cmake test and define
Hannah von Reth [Mon, 19 Oct 2020 15:11:07 +0000 (17:11 +0200)]
Remove now unneeded cmake test and define

5 years agoReplace custome date parser QDateTime::fromString(value, Qt::RFC2822Date)
Hannah von Reth [Mon, 19 Oct 2020 12:47:58 +0000 (14:47 +0200)]
Replace custome date parser QDateTime::fromString(value, Qt::RFC2822Date)

5 years agoFix unit tests by setting Date header
Hannah von Reth [Thu, 3 Dec 2020 15:28:28 +0000 (16:28 +0100)]
Fix unit tests by setting Date header

5 years agoUse time the request was send,..
Hannah von Reth [Thu, 3 Dec 2020 15:27:43 +0000 (16:27 +0100)]
Use time the request was send,..

not when it was processed by the client, to determine the quality of the connection.

5 years agoSpeedup test build by compile the fake server just once
Hannah von Reth [Thu, 10 Dec 2020 15:50:59 +0000 (16:50 +0100)]
Speedup test build by compile the fake server just once

5 years agoOwncloud - virtual files smaller <1KB - problems with syncing
Hannah von Reth [Tue, 1 Dec 2020 15:58:19 +0000 (16:58 +0100)]
Owncloud - virtual files smaller <1KB - problems with syncing

The issue was caused by gziped responses not providing a
content lenght header.

Fixes: #8248
5 years agoPause sync when remove all dialog is displayed
Hannah von Reth [Mon, 30 Nov 2020 11:20:27 +0000 (12:20 +0100)]
Pause sync when remove all dialog is displayed

Fixes: #8263
5 years agoUse enum instead of int
Hannah von Reth [Mon, 30 Nov 2020 11:17:47 +0000 (12:17 +0100)]
Use enum instead of int

5 years agoFix test on systems where C:\ is not writeable
Hannah von Reth [Thu, 26 Nov 2020 14:03:11 +0000 (15:03 +0100)]
Fix test on systems where C:\ is not writeable

5 years agoDon't recurse the whole tree looking for a git dir, use PROJECT_SOURCE_DIR
Hannah von Reth [Mon, 23 Nov 2020 12:04:45 +0000 (13:04 +0100)]
Don't recurse the whole tree looking for a git dir, use PROJECT_SOURCE_DIR

5 years agoFix usePlaceholders migration
Hannah von Reth [Mon, 16 Nov 2020 14:18:22 +0000 (15:18 +0100)]
Fix usePlaceholders migration

5 years agoRemove junk files
Hannah von Reth [Mon, 2 Nov 2020 12:24:43 +0000 (13:24 +0100)]
Remove junk files

5 years agoFix vfs experimental text
Hannah von Reth [Thu, 29 Oct 2020 08:47:40 +0000 (09:47 +0100)]
Fix vfs experimental text

5 years agoFix folder permission check on NTFS
Hannah von Reth [Thu, 22 Oct 2020 15:12:00 +0000 (17:12 +0200)]
Fix folder permission check on NTFS

Fixes: #8187
5 years agoFix condition
Hannah von Reth [Thu, 22 Oct 2020 10:10:24 +0000 (12:10 +0200)]
Fix condition

5 years agoAppend .exe to crashreporter path so it is better located
Hannah von Reth [Wed, 21 Oct 2020 14:48:22 +0000 (16:48 +0200)]
Append .exe to crashreporter path so it is better located

5 years agoEnsure the callback is triggered
Hannah von Reth [Mon, 19 Oct 2020 14:27:45 +0000 (16:27 +0200)]
Ensure the callback is triggered

5 years agoDon`t block main thread when displaying all files removed dialog
Hannah von Reth [Thu, 15 Oct 2020 14:05:51 +0000 (16:05 +0200)]
Don`t block main thread when displaying all files removed dialog

Fixes: #8170
5 years agoDon't use exec() on dialogs
Hannah von Reth [Thu, 15 Oct 2020 13:12:16 +0000 (15:12 +0200)]
Don't use exec() on dialogs

5 years agoUpdate libcrashreporter-qt
Hannah von Reth [Mon, 19 Oct 2020 13:22:51 +0000 (15:22 +0200)]
Update libcrashreporter-qt

5 years agoDraw active progressbar
Hannah von Reth [Mon, 19 Oct 2020 13:29:51 +0000 (15:29 +0200)]
Draw active progressbar

Pass a widget to the progressbar in the folder delegate to draw the correct active state

5 years agoRemove the plugin loader mechanism for VFS backends
Kevin Ottens [Thu, 10 Dec 2020 13:40:25 +0000 (14:40 +0100)]
Remove the plugin loader mechanism for VFS backends

We will have all the code in public anyway so it can just be compiled
in. Thus no need to go through the plugin loading dance. Replaced the
loading with factory functions. Kept mostly the same structure
otherwise.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoAllow to control availability of folders in the settings dialog
Kevin Ottens [Thu, 10 Dec 2020 11:35:16 +0000 (12:35 +0100)]
Allow to control availability of folders in the settings dialog

It felt odd to be able to control the encryption status in the settings
dialog but not the availability. Also availability was controllable on
the root, so let's make it widely available.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoResurrect the display of subfolders for VFS sync folders
Kevin Ottens [Wed, 9 Dec 2020 15:54:49 +0000 (16:54 +0100)]
Resurrect the display of subfolders for VFS sync folders

This got removed from the settings since in that case selective sync
isn't supported. Unfortunately that's also necessary to display them to
allow encrypting folders via the context menu.

So we display the subfolders again but in the case of VFS we disable the
ability to (un)check them. They just have an icon, a name and a context
menu.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoUpdate the FolderStatusModel when a folder encryption ends
Kevin Ottens [Tue, 8 Dec 2020 17:05:29 +0000 (18:05 +0100)]
Update the FolderStatusModel when a folder encryption ends

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoSet the account state after E2EE is setup in the GUI
Kevin Ottens [Tue, 8 Dec 2020 16:09:24 +0000 (17:09 +0100)]
Set the account state after E2EE is setup in the GUI

Otherwise we would not display the E2EE message if the account was
connected before the creation of the settings dialog. This was likely
caused by the delayed creation of the settings dialog.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoRemove empty action in the settings toolbar
Kevin Ottens [Thu, 10 Dec 2020 10:12:11 +0000 (11:12 +0100)]
Remove empty action in the settings toolbar

This was causing an unwanted line in the middle of the bar.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoFix typo and style
Kevin Ottens [Tue, 8 Dec 2020 15:59:06 +0000 (16:59 +0100)]
Fix typo and style

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoGet rid of now unused GetFolderEncryptStatusJob
Kevin Ottens [Tue, 8 Dec 2020 15:23:31 +0000 (16:23 +0100)]
Get rid of now unused GetFolderEncryptStatusJob

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoRemove the encryption flag check from encrypted propagation code
Kevin Ottens [Tue, 8 Dec 2020 15:20:29 +0000 (16:20 +0100)]
Remove the encryption flag check from encrypted propagation code

If we use those encrypted propagation code paths, we already know from
the discovery phase (and thus the journal db) that the folders are
encrypted so no need to check again.

This will remove another expensive round trip with the server.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoRemove encrypt status job fetching from ClientSideEncryption
Kevin Ottens [Tue, 8 Dec 2020 14:51:48 +0000 (15:51 +0100)]
Remove encrypt status job fetching from ClientSideEncryption

This is now unused.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoNo need to fetch encryption data separately before discovery
Kevin Ottens [Tue, 8 Dec 2020 14:49:29 +0000 (15:49 +0100)]
No need to fetch encryption data separately before discovery

This step isn't necessary anymore, no one looks at ClientSideEncryption
for that information anyway.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoRemove unused methods on ClientSideEncryption
Kevin Ottens [Tue, 8 Dec 2020 14:42:28 +0000 (15:42 +0100)]
Remove unused methods on ClientSideEncryption

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoStop using e2e()->isFolderEncrypted() in the folder wizard
Kevin Ottens [Tue, 8 Dec 2020 14:36:17 +0000 (15:36 +0100)]
Stop using e2e()->isFolderEncrypted() in the folder wizard

We used the same approach than for the FolderStatusModel by getting the
is-encrypted property straight from the LSCOL job.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoFolderStatusModel now uses the LSCOL job result for encryption status
Kevin Ottens [Mon, 7 Dec 2020 18:37:21 +0000 (19:37 +0100)]
FolderStatusModel now uses the LSCOL job result for encryption status

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoFolderStatusModel LSCOL job now gets the is-encrypted property
Kevin Ottens [Mon, 7 Dec 2020 18:12:21 +0000 (19:12 +0100)]
FolderStatusModel LSCOL job now gets the is-encrypted property

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoStop using e2e()->isFolderEncrypted() in the jobs
Kevin Ottens [Mon, 7 Dec 2020 17:42:24 +0000 (18:42 +0100)]
Stop using e2e()->isFolderEncrypted() in the jobs

Thanks to the new discovery algorithm, we got all the freshest E2EE
information straight from the database so reuse it instead of going
through an in memory copy.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoSet the encrypted flag in the database when EncryptFolderJob succeeds
Kevin Ottens [Mon, 7 Dec 2020 17:17:14 +0000 (18:17 +0100)]
Set the encrypted flag in the database when EncryptFolderJob succeeds

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoChange EncryptFolderJob path convention
Kevin Ottens [Mon, 7 Dec 2020 17:12:45 +0000 (18:12 +0100)]
Change EncryptFolderJob path convention

It had a different path convention than all the other jobs, most likely
for legacy reasons because of the tight coupling it had to the settings
dialog.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoHave the folder token inside the EncryptFolderJob
Kevin Ottens [Mon, 7 Dec 2020 16:38:18 +0000 (17:38 +0100)]
Have the folder token inside the EncryptFolderJob

No need to look for a token on the outside we can just work properly by
keeping all the state encapsulated in the job.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoDon't use getFileRecordByE2eMangledName in jobs anymore
Kevin Ottens [Mon, 7 Dec 2020 15:33:36 +0000 (16:33 +0100)]
Don't use getFileRecordByE2eMangledName in jobs anymore

Thanks to the new discovery algorithm we got both mangled and original
file names in the item so no need to go through the database for
nothing.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoRepair E2EE deletions
Kevin Ottens [Tue, 1 Dec 2020 17:46:29 +0000 (18:46 +0100)]
Repair E2EE deletions

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMake sure the encrypted flag gets all the way to the journal db
Kevin Ottens [Tue, 1 Dec 2020 11:45:01 +0000 (12:45 +0100)]
Make sure the encrypted flag gets all the way to the journal db

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>