Hannah von Reth [Fri, 29 May 2020 11:29:46 +0000 (13:29 +0200)]
Hannah von Reth [Fri, 29 May 2020 09:00:21 +0000 (11:00 +0200)]
Fix crash on settings migration
Fixes: #7878
Hannah von Reth [Tue, 26 May 2020 09:51:35 +0000 (11:51 +0200)]
Fix usage of QMessageBox
Fixes: #7874
Hannah von Reth [Tue, 12 May 2020 12:10:02 +0000 (14:10 +0200)]
Fix order of pluginkit commands and modernise
Hannah von Reth [Wed, 13 May 2020 15:34:41 +0000 (17:34 +0200)]
Use separate loggin category for upload v1 and ng
Hannah von Reth [Tue, 5 May 2020 10:32:15 +0000 (12:32 +0200)]
Wizard: Raise own window
The OAuth authentication brings the broweser to the front, once thats done the wizard continues.
But the wizard ist now most probably hidden behind the browser
Hannah von Reth [Mon, 4 May 2020 13:54:11 +0000 (15:54 +0200)]
VFS Dialog: Don't enable on close button clicked
Issue: #7710
Hannah von Reth [Thu, 23 Apr 2020 08:34:41 +0000 (10:34 +0200)]
Remove unused struct
Hannah von Reth [Thu, 23 Apr 2020 08:28:07 +0000 (10:28 +0200)]
Remvoe now unneeded SyncRunFileLog::directionToStr
Hannah von Reth [Thu, 23 Apr 2020 08:25:03 +0000 (10:25 +0200)]
Remvoe now unneeded SyncRunFileLog::instructionToStr
Hannah von Reth [Wed, 22 Apr 2020 13:15:55 +0000 (15:15 +0200)]
Cleanup moc_csync.cpp include
Hannah von Reth [Wed, 22 Apr 2020 13:23:18 +0000 (15:23 +0200)]
Rename csync_instructions_e -> SyncInsturctions
Hannah von Reth [Wed, 22 Apr 2020 13:22:03 +0000 (15:22 +0200)]
Remove now unneede csync_instruction_str
Hannah von Reth [Wed, 18 Mar 2020 13:38:19 +0000 (14:38 +0100)]
Make bit flags better readable
Hannah von Reth [Wed, 22 Apr 2020 10:08:30 +0000 (12:08 +0200)]
Use Q_ENUM_NS for PinState
Hannah von Reth [Wed, 1 Apr 2020 09:39:56 +0000 (11:39 +0200)]
Test: Disable parallelism to ensure serial execution
Hannah von Reth [Wed, 1 Apr 2020 08:45:45 +0000 (10:45 +0200)]
Cookies: Do set cookies in DetermineAuthTypeJob too
As we don't support cookie based authentication anymore we can provide cookies here.
This fixes issues with loadbalancers access policy managers.
Hannah von Reth [Tue, 31 Mar 2020 11:51:18 +0000 (13:51 +0200)]
Cookies: Don't override cookies with outdated values
This code was actually not breaking most cookie handling by accident.
As the raw cookies where not split properly we added cookies with values like
"key: val; key2 = val2; key3 = val3"
When the code was corrected we overwrote the newer values in the jar with
the old ones from a request.
Olivier Goffart [Wed, 25 Mar 2020 10:37:03 +0000 (11:37 +0100)]
SocketAPI: fix status after a failure to move
Issue #7759
Hannah von Reth [Wed, 25 Mar 2020 17:02:55 +0000 (18:02 +0100)]
Test: Fix testMovedWithError for vfs mode
Hannah von Reth [Fri, 20 Mar 2020 16:39:10 +0000 (17:39 +0100)]
Sync: Fix handling of virtual files in error state
Issue: #7799
Hannah von Reth [Fri, 20 Mar 2020 10:17:48 +0000 (11:17 +0100)]
Test: Add test for vfs failed move crash
Hannah von Reth [Tue, 24 Mar 2020 11:01:04 +0000 (12:01 +0100)]
[Gui] Implement raiseDialog on Windows
Issue: #7774
Hannah von Reth [Wed, 18 Mar 2020 15:07:50 +0000 (16:07 +0100)]
[SocketApi] Ensure listener still exists
Hannah von Reth [Wed, 18 Mar 2020 11:26:15 +0000 (12:26 +0100)]
Improve logging of issues during plugin loading
If the plugin could not be loaded the client calls qFatal
Make the loading warnings critical so they get printed before we crash
Hannah von Reth [Mon, 9 Mar 2020 16:45:19 +0000 (17:45 +0100)]
Don't insert items into the folder model if selectiveSync is not supported
This fixes an assertion in FolderStatusModel::SubFolderInfo::resetSubs
rowCount reported 0 but we actually had items in the model
Hannah von Reth [Thu, 5 Mar 2020 17:13:09 +0000 (18:13 +0100)]
Make sure all cases are handled
Hannah von Reth [Thu, 5 Mar 2020 17:12:21 +0000 (18:12 +0100)]
[Gui] Fix vfs dialog not showing on Windows
Hannah von Reth [Tue, 3 Mar 2020 15:47:42 +0000 (16:47 +0100)]
Remove unused defines
Hannah von Reth [Tue, 3 Mar 2020 15:43:02 +0000 (16:43 +0100)]
Use Q_ENUM_NS to pretty print csync enums
Hannah von Reth [Fri, 27 Nov 2020 09:03:54 +0000 (10:03 +0100)]
Fix potential null pointer access
https://sentry.io/organizations/owncloud/issues/
1529161263/events/
02509984b5ca42ffb3960d9c9e161414/?project=79001&statsPeriod=14d
Olivier Goffart [Fri, 27 Nov 2020 09:03:32 +0000 (10:03 +0100)]
Folder Wizard: warn when adding a folder which is the parent of a sync'ed folder
issue #7741
Hannah von Reth [Tue, 4 Feb 2020 14:35:14 +0000 (15:35 +0100)]
Fix expansion of tree view on newly added accounts
The change is based on
97ce20ac028660e6ae3dd0b98d4b487999d8768a
I removed a few lines of code there which are already part of fetchMore()
Fixes: #7336
Hannah von Reth [Fri, 27 Nov 2020 08:58:57 +0000 (09:58 +0100)]
[Wizard] Make vfs dialog blocking
Calling the callback after the receiver was deleted caused a crash
Fixes: #7709
Fixes: #7711
Olivier Goffart [Thu, 6 Feb 2020 10:04:04 +0000 (11:04 +0100)]
fixup test
Olivier Goffart [Thu, 6 Feb 2020 09:47:59 +0000 (10:47 +0100)]
Tests: add a couple of move tests
This was an attempt to reproduce #7722, but this actually does not
reproduce it
Hannah von Reth [Mon, 10 Feb 2020 12:08:57 +0000 (13:08 +0100)]
[SSL] Print warning only if something changed
Hannah von Reth [Mon, 10 Feb 2020 12:08:19 +0000 (13:08 +0100)]
[SSL] Properly restore user accepted certificats
Hannah von Reth [Tue, 4 Feb 2020 13:44:02 +0000 (14:44 +0100)]
[Sanity] Remove old ifdef
Hannah von Reth [Fri, 24 Jan 2020 16:57:34 +0000 (17:57 +0100)]
Fix saving of cookies
Fixes: #7700
Hannah von Reth [Mon, 24 Feb 2020 12:11:58 +0000 (13:11 +0100)]
Don't hardcode PLUGINDIR
Olivier Goffart [Wed, 5 Feb 2020 12:04:52 +0000 (13:04 +0100)]
Make PluginFactory virtual to silent -Wnon-virtual-dtor warning
This is not necessary, but it also shouldn't hurt.
Olivier Goffart [Wed, 5 Feb 2020 11:57:09 +0000 (12:57 +0100)]
SyncEngine: no need to use QAtomicInt
This was done because the propagator jobs where running in a thread a long
time ago, but this is no longer the case.
(Also QAtomicInt::load is marked as deprecated now)
Olivier Goffart [Wed, 5 Feb 2020 11:52:58 +0000 (12:52 +0100)]
ProxyAuthHandler Use QPointer instead of QWeakPointer
QWeakPointer::data is deprecated.
In this case we should use QPointer
Hannah von Reth [Mon, 3 Feb 2020 13:23:09 +0000 (14:23 +0100)]
Remove old test scripts
Fixes: 7679
Hannah von Reth [Fri, 10 Jan 2020 15:41:01 +0000 (16:41 +0100)]
[Core] Include more information about the OS in the user agent
Hannah von Reth [Mon, 16 Dec 2019 15:33:41 +0000 (16:33 +0100)]
Don't ignore file sync notification after an unlock
For a usual file sync event we check for actual changes in the local file,
after an unlock the local file might be unchanged so we need to sync it anyhow.
Fixes: owncloud/enterprise#3609
Hannah von Reth [Wed, 4 Dec 2019 12:21:17 +0000 (13:21 +0100)]
Prepend PLUGINDIR else its pointless
Hannah von Reth [Thu, 12 Dec 2019 13:33:07 +0000 (14:33 +0100)]
Use Q_ENUM on AuthType to get the name printed in the log
Hannah von Reth [Thu, 28 Nov 2019 12:07:52 +0000 (13:07 +0100)]
Add Actions to the Desktop file
Hannah von Reth [Thu, 28 Nov 2019 10:57:51 +0000 (11:57 +0100)]
Application: Allow to quit running instances by commandline
Hannah von Reth [Wed, 27 Nov 2019 11:01:44 +0000 (12:01 +0100)]
Cleanup
Hannah von Reth [Mon, 2 Dec 2019 14:30:47 +0000 (15:30 +0100)]
Disable http2 support for now
Issue: #7610
Olivier Goffart [Wed, 16 Oct 2019 10:12:02 +0000 (12:12 +0200)]
Don't show the "All files deleted" popup when unselecting everything with selective sync
Issue #7337
Olivier Goffart [Wed, 16 Oct 2019 08:29:37 +0000 (10:29 +0200)]
AccountSettings: limit the clickable region of the 'add folder' button
Issue #7326
Olivier Goffart [Mon, 21 Oct 2019 10:35:27 +0000 (12:35 +0200)]
Network Settings: Show a warning that proxy settings do not apply to localhost
Only show this if at least one account is detected to have an url that looks
like localhost, because this could otherwise be confusing
Issue #7169
Olivier Goffart [Wed, 13 Nov 2019 10:12:32 +0000 (11:12 +0100)]
Discovery: Allow more HTTP error code to be treated as ignored dir
The original code from csync was stopping at any error.
But we have been whitelisting soeme http error code one by one
to ignore the directory instead of aborting the sync.
However, as there are more requests to continue the sync in case
of error, just ignore most HTTP errors
Issue #7586
Hannah von Reth [Fri, 15 Nov 2019 15:42:53 +0000 (16:42 +0100)]
[libsync] Export verifyFileUnchanged
This fixes Windows builds that are broken since #7562 was merged
Olivier Goffart [Wed, 30 Oct 2019 12:16:32 +0000 (13:16 +0100)]
VFS: Do not overwrite existing files by placeholder
For issue #7557 and #7556
Note: this change the API of the VFS plugin, so the VFS plugin needs small
adaptations
Hannah von Reth [Tue, 5 Nov 2019 16:02:01 +0000 (17:02 +0100)]
[Gui] Set proper hdpi attributes
Olivier Goffart [Thu, 31 Oct 2019 09:41:38 +0000 (10:41 +0100)]
Discovery: fix TestSyncVirtualFiles::testExtraFilesLocalDehydrated on windows
On windows we do a test to know if we should change the case of the files,
but that conflict with the test that checks if the file was still there
when the filename is actually the same. Which can happen with virtual files
as they have two representation (the one with and without suffix).
Olivier Goffart [Wed, 30 Oct 2019 17:25:52 +0000 (18:25 +0100)]
Test: Fix testsyncvirtualfiles test
Like previous commit, the failure was caused by two conflicting commits
Olivier Goffart [Wed, 30 Oct 2019 16:49:25 +0000 (17:49 +0100)]
Fix build of tests.
Resulted from a conflict between two patches
Christian Kamm [Fri, 2 Aug 2019 12:25:40 +0000 (14:25 +0200)]
Vfs: Lots of tests and corrections for suffix edge cases
Avoid or deal with problems that happen when suffixed files exist on the
server or suffix and non-suffixed files exist locally.
See #7350, #7261.
Olivier Goffart [Tue, 29 Oct 2019 12:20:25 +0000 (13:20 +0100)]
Discovery: Attempt to fix issue with windows VFS and new files
(or moved files)
As seen in the log of #7558, a conflict may be issued by mistake.
See investigation in https://github.com/owncloud/client/issues/7558#issuecomment-
547385362
This hopefully fix #7558
Olivier Goffart [Tue, 15 Oct 2019 12:12:47 +0000 (14:12 +0200)]
Account Settings: change the color of info message from green to blue
To avoid confusion with the color of "success"
Issue #7403
Olivier Goffart [Mon, 14 Oct 2019 11:22:46 +0000 (13:22 +0200)]
Wizard: fix compilation warnings about unused variables
Olivier Goffart [Mon, 14 Oct 2019 11:19:41 +0000 (13:19 +0200)]
SyncEngine: Save a bit of memory by not keeping a set of all filename
This is only used for conflict files, so only save conflict files.
(The _seenFile was used for other things in 2.5, but not anymore)
Olivier Goffart [Thu, 10 Oct 2019 11:24:24 +0000 (13:24 +0200)]
When moving is allowed but deleting is not, do not restore moved items
Issue #7293
Olivier Goffart [Thu, 10 Oct 2019 11:21:28 +0000 (13:21 +0200)]
Restoration items should appear in the sync protocol
When an item is downloaded because it is restored, it shall be shown in the
sync protocol.
(It is also going to be shown in the not synchronized for a short while, but
that's fine)
Olivier Goffart [Wed, 9 Oct 2019 07:31:00 +0000 (09:31 +0200)]
Fix Upload of large (> 2GiB) files
Issue #7506
This is a regression introduced by the delta sync feature (as the chunk offset
changed from being the chunk number to be the byte offset, it needs to be a
qint64 now)
Christian Kamm [Mon, 7 Oct 2019 12:58:59 +0000 (14:58 +0200)]
Tests: Fail if the initial sync fails
Christian Kamm [Mon, 7 Oct 2019 12:58:31 +0000 (14:58 +0200)]
Discovery: Distinguish readdir and closedir errors
Olivier Goffart [Mon, 7 Oct 2019 13:25:36 +0000 (15:25 +0200)]
Tests: introduce ItemCompletedSpy to avoid a bit of code duplication
Olivier Goffart [Mon, 7 Oct 2019 08:49:23 +0000 (10:49 +0200)]
Fix warning about serverJob not being used
And fix a FIXME in the same time
Christian Kamm [Mon, 23 Sep 2019 13:52:57 +0000 (15:52 +0200)]
Propagate dir: Never write the etag on remote mkdir #7481
It must always only be written once all children are successfully
propagated.
Hannah von Reth [Wed, 25 Sep 2019 11:45:20 +0000 (13:45 +0200)]
Ensure the url is complete before we validate it
Fixes: #6722
Christian Kamm [Mon, 23 Sep 2019 14:58:56 +0000 (16:58 +0200)]
Checksums: Explicitly close file before reporting result
To ensure it's no longer open when the finished signal fires.
Christian Kamm [Thu, 12 Sep 2019 07:13:04 +0000 (09:13 +0200)]
Test: Disable local discovery parallelism in permission test
Adding parallelism broke the test because it depended on the order of
discovery.
Christian Kamm [Wed, 11 Sep 2019 12:55:58 +0000 (14:55 +0200)]
Discovery: Change local job signal signatures
To make it more explicit that data a copy of the data is transfered
between threads. (though Qt will make a copy of the arguments anyway)
Christian Kamm [Wed, 11 Sep 2019 12:49:20 +0000 (14:49 +0200)]
Discovery: local job shouldn't be parented
Since it'll be deleted by the thread pool.
Christian Kamm [Wed, 11 Sep 2019 09:03:27 +0000 (11:03 +0200)]
Don't store pointer to local job
There were crashes in the QPointer assignment. Possibly the thread pool
is done with the job and deletes it before the assignment is done.
Markus Goetz [Mon, 9 Sep 2019 13:41:57 +0000 (15:41 +0200)]
Discovery: List local directories from thread #7456 #7439
Markus Goetz [Fri, 6 Sep 2019 10:58:56 +0000 (12:58 +0200)]
Reconcile: Sort already during discovery #7445
Christian Kamm [Fri, 6 Sep 2019 12:33:37 +0000 (14:33 +0200)]
ConnectionValidator: increase timeout to 57s #7456
When the gui thread blocks for several seconds it's possible for the
ConnectionValidator to timeout and decide that the account is
unreachable. It will then terminate all sync runs.
Increasing the timeout makes this less likely to happen. The tradeoff is
that real disconnects will not be detected as quickly.
This does not address the root cause but makes the symptom less likely
to appear.
Markus Goetz [Thu, 29 Aug 2019 12:04:48 +0000 (14:04 +0200)]
Propagator: Delay job execution a bit #7439
Christian Kamm [Wed, 28 Aug 2019 12:22:34 +0000 (14:22 +0200)]
Discovery: Remove level of indent around moves
No code changes.
Christian Kamm [Wed, 28 Aug 2019 12:20:40 +0000 (14:20 +0200)]
Discovery: If a move is forbidden, restore the source
Previously the source was deleted (or attempted to be deleted), even if
the new location was not acceptable for upload. This could make data
unavilable on the server.
For #7410
Christian Kamm [Fri, 30 Aug 2019 10:05:50 +0000 (12:05 +0200)]
Propagation: Fix delete-before-rename bug #7441
By introducing a PropagateRootDirectory job that explicitly
separates the directory deletion jobs from all the other jobs.
Note that this means that if there are errors in subJobs the
dirDeletionJobs won't get executed.
Markus Goetz [Fri, 30 Aug 2019 09:37:07 +0000 (11:37 +0200)]
Propagator: Make sure we schedule only one job #7439
To not starve the event loop.
(There is still ~= 3 jobs running at the same time)
Christian Kamm [Fri, 23 Aug 2019 12:49:24 +0000 (14:49 +0200)]
PropagateDownload: Don't try to open readonly temporaries
This situation could arrise when receiving a read-only share and the
temporary rename failed for some reason.
See #7419
Hannah von Reth [Thu, 22 Aug 2019 09:41:23 +0000 (11:41 +0200)]
Change Windows virtual files description to tech preview
Christian Kamm [Mon, 12 Aug 2019 07:07:56 +0000 (09:07 +0200)]
Don't fatal on "Storage temporarily unavailable"
This is an unreliable workaround. The real fix will need to be deferred
to another release.
For #5088
Hannah von Reth [Thu, 15 Aug 2019 11:58:25 +0000 (13:58 +0200)]
OwncloudWizard: Mark vfs as tech preview instead of experimental
Hannah von Reth [Thu, 15 Aug 2019 11:13:44 +0000 (13:13 +0200)]
CMake VFS: Enable us to provided vfs plugins from an external directory
Dominik Schmidt [Thu, 6 Jun 2019 09:48:44 +0000 (11:48 +0200)]
SocketApi: Avoid unneccessary conversions
Dominik Schmidt [Thu, 6 Jun 2019 09:48:31 +0000 (11:48 +0200)]
SocketApi: cleanup debug output
Dominik Schmidt [Wed, 5 Jun 2019 19:04:40 +0000 (21:04 +0200)]
Add ASYNC_ASSERT_ICON_IS_EQUAL command to SocketApi
Dominik Schmidt [Wed, 5 Jun 2019 19:04:16 +0000 (21:04 +0200)]
Make findWidget more powerful
Dominik Schmidt [Wed, 5 Jun 2019 18:57:15 +0000 (20:57 +0200)]
Add Q_PROPERTYs for gui testing