Hannah von Reth [Mon, 27 Jul 2020 08:44:51 +0000 (10:44 +0200)]
csync: apply strict QString handling
Hannah von Reth [Mon, 27 Jul 2020 07:48:32 +0000 (09:48 +0200)]
VFS: remove now unused parameter
Hannah von Reth [Fri, 24 Jul 2020 15:16:28 +0000 (17:16 +0200)]
Use the servers checksum type by default
Hannah von Reth [Fri, 27 Nov 2020 10:26:41 +0000 (11:26 +0100)]
Log state before specific assertion
Hannah von Reth [Wed, 8 Jul 2020 14:27:48 +0000 (16:27 +0200)]
Win: Use full Windows paths in file watcher and improve logging
Hannah von Reth [Wed, 8 Jul 2020 10:38:01 +0000 (12:38 +0200)]
Win: Move hresultToQString from vfs plugin to Utility::formatWinError
Hannah von Reth [Thu, 16 Jul 2020 12:21:38 +0000 (14:21 +0200)]
Remove more legacy C code
Hannah von Reth [Thu, 16 Jul 2020 09:59:44 +0000 (11:59 +0200)]
Tests: Port check_vio_ext to Windows
Hannah von Reth [Fri, 27 Nov 2020 10:13:54 +0000 (11:13 +0100)]
Remove custome string functions
Hannah von Reth [Fri, 17 Jul 2020 12:01:48 +0000 (14:01 +0200)]
Logging: Print enum before cast in SqlQuer::bindValue
Hannah von Reth [Tue, 14 Jul 2020 10:49:18 +0000 (12:49 +0200)]
Fix warning
warning C4573: the usage of 'QObject::disconnect' requires the compiler to capture 'this' but the current default capture mode does not allow it
Hannah von Reth [Wed, 8 Jul 2020 13:49:27 +0000 (15:49 +0200)]
Log: Only print 'Saved account settings' in debug mode
Don't log that there was no error...
Hannah von Reth [Fri, 3 Jul 2020 11:16:09 +0000 (13:16 +0200)]
Log: Improve log message [ info gui.folder ]: Folder sync result: 4...
by including the name of the folder and print the name of the result
Hannah von Reth [Fri, 3 Jul 2020 08:02:53 +0000 (10:02 +0200)]
Gui: Don't try to display the wizard during shutdown
Fixes: #7936
Hannah von Reth [Fri, 3 Jul 2020 11:13:38 +0000 (13:13 +0200)]
Remove dead code
Hannah von Reth [Mon, 29 Jun 2020 12:53:40 +0000 (14:53 +0200)]
Make ownCloud accassible on the Application object
Hannah von Reth [Thu, 25 Jun 2020 14:25:11 +0000 (16:25 +0200)]
Remove ifdef(Q_OS_X11) code, there never was such a define.
As noone complained since I don't think anyone will miss the code
Hannah von Reth [Mon, 29 Jun 2020 11:45:48 +0000 (13:45 +0200)]
A pedantic .desktop parser want's a list to end with ;
Hannah von Reth [Thu, 18 Jun 2020 14:12:35 +0000 (16:12 +0200)]
VFS: Tell the vfs plugin whether we have multiple accounts
This allows us to decide on the presentation of the account
Hannah von Reth [Mon, 22 Jun 2020 11:14:37 +0000 (13:14 +0200)]
UnitTests: Set a CookiesJar in FakeQNAM
Hannah von Reth [Thu, 18 Jun 2020 11:16:36 +0000 (13:16 +0200)]
CMake: Remove krazy2 support, we now use clazy
Hannah von Reth [Thu, 18 Jun 2020 14:10:02 +0000 (16:10 +0200)]
VFS: Prevent duplicated navigation panel icon
Issue: #7748
Hannah von Reth [Mon, 8 Jun 2020 13:08:13 +0000 (15:08 +0200)]
Log HTTP requests and responses
Issue: #7873
Hannah von Reth [Tue, 2 Jun 2020 12:46:36 +0000 (14:46 +0200)]
Beautify flags
Hannah von Reth [Fri, 29 May 2020 12:40:40 +0000 (14:40 +0200)]
Hannah von Reth [Fri, 29 May 2020 12:36:41 +0000 (14:36 +0200)]
Fix warning C4715: 'OCC::Utility::vfsCurrentAvailabilityText': not all control paths return a value
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