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>
Hannah von Reth [Thu, 17 Dec 2020 13:13:24 +0000 (14:13 +0100)]
Mark vfs functions as OC_REQUIRED_RESULT
Hannah von Reth [Wed, 30 Dec 2020 11:53:03 +0000 (12:53 +0100)]
Handle errors in convertToPlaceholder
Hannah von Reth [Tue, 15 Dec 2020 14:02:33 +0000 (15:02 +0100)]
Update windows launch on start binary location
Fixes: #7672
Dominik Schmidt [Mon, 14 Dec 2020 14:42:35 +0000 (15:42 +0100)]
Fix testVersionOfInstalledBinary for brandings
Dominik Schmidt [Mon, 14 Dec 2020 14:37:05 +0000 (15:37 +0100)]
Use owncloudcmd in testVersionOfInstalledBinary
... as it works without X in CI.
Dominik Schmidt [Mon, 14 Dec 2020 13:47:45 +0000 (14:47 +0100)]
Fix style
Hannah von Reth [Mon, 14 Dec 2020 12:35:05 +0000 (13:35 +0100)]
Add todo for Qt 5.15
Hannah von Reth [Mon, 14 Dec 2020 12:32:28 +0000 (13:32 +0100)]
Cleanup pathtoUNC and its test
Hannah von Reth [Mon, 14 Dec 2020 11:48:49 +0000 (12:48 +0100)]
Clarify comment
Hannah von Reth [Mon, 14 Dec 2020 11:37:33 +0000 (12:37 +0100)]
Simplify file comparison
Hannah von Reth [Wed, 9 Dec 2020 14:39:01 +0000 (15:39 +0100)]
Include auth type in http log
Hannah von Reth [Wed, 9 Dec 2020 12:14:05 +0000 (13:14 +0100)]
Log the final http request
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
Nextcloud bot [Wed, 30 Dec 2020 03:48:58 +0000 (03:48 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Tue, 29 Dec 2020 03:48:59 +0000 (03:48 +0000)]
[tx-robot] updated from transifex
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
rakekniven [Wed, 23 Dec 2020 17:52:18 +0000 (18:52 +0100)]
Changed spelling of "etag".
Signed-off-by: rakekniven <mark.ziegler@rakekniven.de>
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>
Nextcloud bot [Sun, 27 Dec 2020 03:52:01 +0000 (03:52 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Sat, 26 Dec 2020 03:45:58 +0000 (03:45 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Fri, 25 Dec 2020 03:45:25 +0000 (03:45 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Thu, 24 Dec 2020 03:46:47 +0000 (03:46 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Wed, 23 Dec 2020 03:47:06 +0000 (03:47 +0000)]
[tx-robot] updated from transifex
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
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>
Nextcloud bot [Tue, 22 Dec 2020 03:48:05 +0000 (03:48 +0000)]
[tx-robot] updated from transifex
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.
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>
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
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>
Nextcloud bot [Mon, 21 Dec 2020 03:46:22 +0000 (03:46 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Sun, 20 Dec 2020 03:48:31 +0000 (03:48 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Sat, 19 Dec 2020 03:46:53 +0000 (03:46 +0000)]
[tx-robot] updated from transifex
Nextcloud bot [Fri, 18 Dec 2020 03:48:04 +0000 (03:48 +0000)]
[tx-robot] updated from transifex
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
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>
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>
Nextcloud bot [Thu, 17 Dec 2020 03:46:16 +0000 (03:46 +0000)]
[tx-robot] updated from transifex
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.
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>
Nextcloud bot [Wed, 16 Dec 2020 03:48:12 +0000 (03:48 +0000)]
[tx-robot] updated from transifex
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
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>
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>
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>
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>
Hannah von Reth [Wed, 9 Dec 2020 10:19:30 +0000 (11:19 +0100)]
Don't warn if everything is fine
Hannah von Reth [Mon, 19 Oct 2020 15:11:07 +0000 (17:11 +0200)]
Remove now unneeded cmake test and define
Hannah von Reth [Mon, 19 Oct 2020 12:47:58 +0000 (14:47 +0200)]
Replace custome date parser QDateTime::fromString(value, Qt::RFC2822Date)
Hannah von Reth [Thu, 3 Dec 2020 15:28:28 +0000 (16:28 +0100)]
Fix unit tests by setting Date header
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.
Hannah von Reth [Thu, 10 Dec 2020 15:50:59 +0000 (16:50 +0100)]
Speedup test build by compile the fake server just once
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
Hannah von Reth [Mon, 30 Nov 2020 11:20:27 +0000 (12:20 +0100)]
Pause sync when remove all dialog is displayed
Fixes: #8263
Hannah von Reth [Mon, 30 Nov 2020 11:17:47 +0000 (12:17 +0100)]
Use enum instead of int
Hannah von Reth [Thu, 26 Nov 2020 14:03:11 +0000 (15:03 +0100)]
Fix test on systems where C:\ is not writeable
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
Hannah von Reth [Mon, 16 Nov 2020 14:18:22 +0000 (15:18 +0100)]
Fix usePlaceholders migration
Hannah von Reth [Mon, 2 Nov 2020 12:24:43 +0000 (13:24 +0100)]
Remove junk files
Hannah von Reth [Thu, 29 Oct 2020 08:47:40 +0000 (09:47 +0100)]
Fix vfs experimental text
Hannah von Reth [Thu, 22 Oct 2020 15:12:00 +0000 (17:12 +0200)]
Fix folder permission check on NTFS
Fixes: #8187
Hannah von Reth [Thu, 22 Oct 2020 10:10:24 +0000 (12:10 +0200)]
Fix condition
Hannah von Reth [Wed, 21 Oct 2020 14:48:22 +0000 (16:48 +0200)]
Append .exe to crashreporter path so it is better located
Hannah von Reth [Mon, 19 Oct 2020 14:27:45 +0000 (16:27 +0200)]
Ensure the callback is triggered
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
Hannah von Reth [Thu, 15 Oct 2020 13:12:16 +0000 (15:12 +0200)]
Don't use exec() on dialogs
Hannah von Reth [Mon, 19 Oct 2020 13:22:51 +0000 (15:22 +0200)]
Update libcrashreporter-qt
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
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>
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>