nextcloud-desktop.git
5 years agoEnable the bugprone-branch-clone clang-tidy check
Kevin Ottens [Tue, 18 Aug 2020 15:41:02 +0000 (17:41 +0200)]
Enable the bugprone-branch-clone clang-tidy check

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoEnable the bugprone-argument-comment clang-tidy check
Kevin Ottens [Tue, 18 Aug 2020 14:51:16 +0000 (16:51 +0200)]
Enable the bugprone-argument-comment clang-tidy check

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 1 Sep 2020 03:26:29 +0000 (03:26 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2345 from nextcloud/use_httpd_unix-directory_mimetype_for_e2ee_fo...
Kevin Ottens [Mon, 31 Aug 2020 11:11:51 +0000 (13:11 +0200)]
Merge pull request #2345 from nextcloud/use_httpd_unix-directory_mimetype_for_e2ee_folders

Use httpd/unix-directory mimetype for E2EE folders

5 years agoUse httpd/unix-directory mimetype for E2EE folders
Kevin Ottens [Mon, 31 Aug 2020 10:05:05 +0000 (12:05 +0200)]
Use httpd/unix-directory mimetype for E2EE folders

We don't do much with that mimetype on our end, but other clients
somehow don't expect inode/directory to let's lie. ;-)

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoEnable all the misc clang-tidy check except one
Kevin Ottens [Wed, 19 Aug 2020 14:32:57 +0000 (16:32 +0200)]
Enable all the misc clang-tidy check except one

This flagged mostly unused parameters. Didn't enable the
misc-non-private-member-variables-in-classes check as we got a lot of
those. Hopefully we'll get to fix them at some point but that feels too
early and too much work for now.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 31 Aug 2020 03:25:49 +0000 (03:25 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 30 Aug 2020 03:24:23 +0000 (03:24 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 29 Aug 2020 03:26:40 +0000 (03:26 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2336 from nextcloud/jospoortvliet-patch-1
Michael Schuster [Fri, 28 Aug 2020 22:14:16 +0000 (00:14 +0200)]
Merge pull request #2336 from nextcloud/jospoortvliet-patch-1

Some changes to the template...

5 years agoSome changes to the template...
Jos Poortvliet [Fri, 28 Aug 2020 19:54:10 +0000 (21:54 +0200)]
Some changes to the template...

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 28 Aug 2020 03:26:44 +0000 (03:26 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 27 Aug 2020 03:29:43 +0000 (03:29 +0000)]
[tx-robot] updated from transifex

5 years agoRemove remaining QLinkedList includes in addition to #2300
Michael Schuster [Thu, 27 Aug 2020 01:10:59 +0000 (03:10 +0200)]
Remove remaining QLinkedList includes in addition to #2300

Now the only remaining reference is in:

src/3rdparty/libcrashreporter-qt/3rdparty/drkonqi-parser/backtraceparser.cpp:269:        || line.functionName().startsWith(QLatin1String("QLinkedList")

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoAdapt code style in addition to #2300
Michael Schuster [Wed, 26 Aug 2020 23:31:06 +0000 (01:31 +0200)]
Adapt code style in addition to #2300

- Use "!empty()" instead of "size() > 0" in std::list
- Add comments for namespace brackets

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoMerge pull request #2300 from chenecharry/master
Michael Schuster [Wed, 26 Aug 2020 23:27:09 +0000 (01:27 +0200)]
Merge pull request #2300 from chenecharry/master

Support client builds on VS2019 (QLinkedList is deprecated)

5 years agoMerge branch 'master' into master
Michael Schuster [Wed, 26 Aug 2020 23:12:30 +0000 (01:12 +0200)]
Merge branch 'master' into master

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 26 Aug 2020 03:29:53 +0000 (03:29 +0000)]
[tx-robot] updated from transifex

5 years agoCode review changes implemented
V.C [Wed, 26 Aug 2020 02:21:43 +0000 (02:21 +0000)]
Code review changes implemented

Code review changes implemented for bandwidthmanager.cpp
1. Use auto instead of size_t
2. Check for empty instead of size comparisions

Signed-off-by: V.C <c******@rediffmail.com>
5 years agoSupport client builds on VS2019
V.C [Fri, 21 Aug 2020 00:03:29 +0000 (00:03 +0000)]
Support client builds on VS2019

Scenario: Build fails on Qt 5.15.0 + VS2019 16.7.2
Root cause: QLinkedList seems to be depreciated. Advise to use std::list instead.
Fix: Used std::list insead of QLinkedList.

Signed-off-by: V.C <c******@rediffmail.com>
5 years agoMerge pull request #2309 from nextcloud/update-docs-page-title
Michael Schuster [Tue, 25 Aug 2020 19:07:18 +0000 (21:07 +0200)]
Merge pull request #2309 from nextcloud/update-docs-page-title

Update copyright date and version displayed in the page title.

5 years agoUpdate copyright date and version displayed in the page title.
Camila [Mon, 24 Aug 2020 14:58:33 +0000 (16:58 +0200)]
Update copyright date and version displayed in the page title.

- This is the title displayed at https://docs.nextcloud.com/desktop/x.y

Signed-off-by: Camila <hello@camila.codes>
5 years agoMerge pull request #2313 from nextcloud/update-issue-template
Michael Schuster [Tue, 25 Aug 2020 18:48:59 +0000 (20:48 +0200)]
Merge pull request #2313 from nextcloud/update-issue-template

Add --logdebug parameter to instructions in issue_template for Github.

5 years agoUpdate issue_template with information about logs, e2ee versions and code of conduct.
Camila [Tue, 25 Aug 2020 14:35:53 +0000 (16:35 +0200)]
Update issue_template with information about logs, e2ee versions and code of conduct.

Signed-off-by: Camila <hello@camila.codes>
5 years agoAdd --logdebug parameter to instructions in issue_template for Github.
Camila [Tue, 25 Aug 2020 08:37:29 +0000 (10:37 +0200)]
Add --logdebug parameter to instructions in issue_template for Github.

Signed-off-by: Camila <hello@camila.codes>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 25 Aug 2020 03:32:20 +0000 (03:32 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 24 Aug 2020 03:31:03 +0000 (03:31 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 22 Aug 2020 03:28:48 +0000 (03:28 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2302 from ivaradi/no-eoan
Michael Schuster [Fri, 21 Aug 2020 22:55:31 +0000 (00:55 +0200)]
Merge pull request #2302 from ivaradi/no-eoan

Do not build for Eoan

5 years agoDo not build for Eoan
István Váradi [Fri, 21 Aug 2020 16:54:56 +0000 (18:54 +0200)]
Do not build for Eoan

Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 21 Aug 2020 03:30:20 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2288 from nextcloud/enh/windows-shellext
Michael Schuster [Thu, 20 Aug 2020 19:11:34 +0000 (21:11 +0200)]
Merge pull request #2288 from nextcloud/enh/windows-shellext

Windows shell extensions: Use custom GUIDs and prepare for MSI

5 years agoFix spacing
Michael Schuster [Thu, 20 Aug 2020 16:47:23 +0000 (18:47 +0200)]
Fix spacing

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoWindows shell extensions: Add WiX (MSI) fragment
Michael Schuster [Tue, 18 Aug 2020 19:42:31 +0000 (21:42 +0200)]
Windows shell extensions: Add WiX (MSI) fragment

Use CMake to generate a WXI fragment to handle the DLL registration and file deployment for the shellext components.

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoWindows shell extensions: Change NCUtil Pipe name from ownCloud to APPLICATION_EXECUTABLE
Michael Schuster [Tue, 18 Aug 2020 17:31:11 +0000 (19:31 +0200)]
Windows shell extensions: Change NCUtil Pipe name from ownCloud to APPLICATION_EXECUTABLE

Avoid interference with foreign pipes as this is always a bad idea ;p

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoWindows shell extensions: Rename all files and classes from OC* to NC*, update versio...
Michael Schuster [Tue, 18 Aug 2020 17:11:08 +0000 (19:11 +0200)]
Windows shell extensions: Rename all files and classes from OC* to NC*, update version info

This also ensures a clear separation in the system registry.

SelfReg is not recommended by Microsoft and will be handled by the MSI package to allow proper Repair and Uninstall.
However, we keep it for backward compatibility with the NSIS installer.

For details see:
https://stackoverflow.com/questions/364187/how-do-you-register-a-win32-com-dll-file-in-wix-3#364210
https://docs.microsoft.com/en-us/windows/win32/msi/selfreg-table#remarks

Another fix by this commit:
The "Version" registry value in the NCOverlays self reg should be a key and not a value.

Details: https://wixtoolset.org/documentation/manual/v3/xsd/wix/class.html

Example:

  [HKCR\CLSID\{01234567-89AB-CDEF-0123-456789ABCDEF}\Version]
  @="1.0.0.0"

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoWindows shell extensions: Use custom GUIDs via CMake and prepare MSI reg
Michael Schuster [Tue, 18 Aug 2020 16:12:29 +0000 (18:12 +0200)]
Windows shell extensions: Use custom GUIDs via CMake and prepare MSI reg

Previously side by side installation with ownCloud or other NC custom builds would break the shell integration because the same GUIDs and registry keys were used.

Now we specify our custom GUIDs in NEXTCLOUD.cmake and use CMake to generate a header file and WiX (MSI) include file with these constants.

Note: Using generators like "guidgen" or "uuidgen" ensures that GUIDs are unique, as manual changes are not guaranteed to be.

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoRemove dead code
Hannah von Reth [Mon, 17 Aug 2020 19:30:46 +0000 (21:30 +0200)]
Remove dead code

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years ago2.7 has less automatic includes on Windows
Hannah von Reth [Mon, 17 Aug 2020 19:28:18 +0000 (21:28 +0200)]
2.7 has less automatic includes on Windows

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoCleanup Windows shell extensions
Hannah von Reth [Mon, 17 Aug 2020 18:35:39 +0000 (20:35 +0200)]
Cleanup Windows shell extensions

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoRemove outdated visual studio projects, we now use cmake
Hannah von Reth [Tue, 13 Aug 2019 14:07:33 +0000 (16:07 +0200)]
Remove outdated visual studio projects, we now use cmake

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoAvoid warning because /MT overrides /MD flag
Dominik Schmidt [Mon, 29 Oct 2018 15:29:04 +0000 (08:29 -0700)]
Avoid warning because /MT overrides /MD flag

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoMake OCUtil helper lib static and link it statically against crt
Dominik Schmidt [Fri, 26 Oct 2018 07:01:47 +0000 (00:01 -0700)]
Make OCUtil helper lib static and link it statically against crt

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoWindows Shell Integration: Don't limit the size of the buffer
Olivier Goffart [Thu, 20 Sep 2018 15:14:05 +0000 (17:14 +0200)]
Windows Shell Integration: Don't limit the size of the buffer

Otherwise we can't have operation that has many many filename

As reported in #6780

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoWindows shellext: Update copyrights and company name
Christian Kamm [Mon, 18 Jun 2018 08:07:17 +0000 (10:07 +0200)]
Windows shellext: Update copyrights and company name

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agowindows shell extension: add OCUtil/resource.h
Olivier Goffart [Wed, 13 Jun 2018 11:56:33 +0000 (13:56 +0200)]
windows shell extension: add OCUtil/resource.h

It's a copy from OCContextMenu/resources.h

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoWindows shellext: Add rc for OCUtil #6554
Christian Kamm [Mon, 11 Jun 2018 11:55:06 +0000 (13:55 +0200)]
Windows shellext: Add rc for OCUtil #6554

To set the dll's metadata.

Signed-off-by: Michael Schuster <michael@schuster.ms>
5 years agoMerge pull request #2292 from nextcloud/prevent_sharing_for_e2ee_folders
Kevin Ottens [Thu, 20 Aug 2020 16:36:37 +0000 (18:36 +0200)]
Merge pull request #2292 from nextcloud/prevent_sharing_for_e2ee_folders

Disable context menu actions for E2EE files and folders

5 years agoPresent sharing of E2EE files from the main dialog too
Kevin Ottens [Thu, 20 Aug 2020 12:53:14 +0000 (14:53 +0200)]
Present sharing of E2EE files from the main dialog too

The visibility of the share button for the activity list is tied to the
path role in the ActivityListModel, so make sure we don't return a path
for E2EE files and folders.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoDisable context menu actions for E2EE files and folders
Kevin Ottens [Thu, 20 Aug 2020 12:13:56 +0000 (14:13 +0200)]
Disable context menu actions for E2EE files and folders

Those files and folders are not shareable and the "Edit" or "Open in
browser" actions will lead to showing an error in the web GUI. No need
to lead users there so just disable them.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 20 Aug 2020 03:32:34 +0000 (03:32 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Wed, 19 Aug 2020 03:32:55 +0000 (03:32 +0000)]
[tx-robot] updated from transifex

5 years agoShow the "Display mnemonic" button only when we know e2e is supported
Kevin Ottens [Tue, 18 Aug 2020 14:35:47 +0000 (16:35 +0200)]
Show the "Display mnemonic" button only when we know e2e is supported

Turns out that showing the button straight from the page ctor is a bit
too early. At that point the account might not be connected yet and thus
we wouldn't have proper information. Currently we were displaying that
button all the time, now we wait for the account to be connected to
decide to show it or not.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years agoMinor fix in text of warning and debug message.
Camila [Tue, 18 Aug 2020 11:30:15 +0000 (13:30 +0200)]
Minor fix in text of warning and debug message.

Signed-off-by: Camila <hello@camila.codes>
5 years agoMake sure we don't assert when calling fileStatus
Kevin Ottens [Tue, 18 Aug 2020 08:23:52 +0000 (10:23 +0200)]
Make sure we don't assert when calling fileStatus

It happens that sometimes we leak a directory path ending with a slash,
but that violates fileStatus' precondition so let's catch it early and
skip such path.

Of course the right fix would be a larger swipe in the sync engine and
around it to not use naked strings anymore but rely on the typesystem.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 18 Aug 2020 03:34:45 +0000 (03:34 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Mon, 17 Aug 2020 03:28:12 +0000 (03:28 +0000)]
[tx-robot] updated from transifex

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sun, 16 Aug 2020 03:28:22 +0000 (03:28 +0000)]
[tx-robot] updated from transifex

5 years agoMerge pull request #2271 from ivaradi/cstdint-fix
István Váradi [Sat, 15 Aug 2020 12:35:01 +0000 (14:35 +0200)]
Merge pull request #2271 from ivaradi/cstdint-fix

Include cstdint only when compiling C++ code

5 years agoMerge branch 'master' into cstdint-fix
István Váradi [Sat, 15 Aug 2020 10:56:13 +0000 (12:56 +0200)]
Merge branch 'master' into cstdint-fix

5 years ago[tx-robot] updated from transifex
Nextcloud bot [Sat, 15 Aug 2020 03:29:02 +0000 (03:29 +0000)]
[tx-robot] updated from transifex

5 years agoInclude cstdint only when compiling C++ code
István Váradi [Thu, 13 Aug 2020 19:16:06 +0000 (21:16 +0200)]
Include cstdint only when compiling C++ code

Signed-off-by: István Váradi <ivaradi@varadiistvan.hu>
5 years ago[tx-robot] updated from transifex
Nextcloud bot [Fri, 14 Aug 2020 03:44:39 +0000 (03:44 +0000)]
[tx-robot] updated from transifex

6 years agoMerge pull request #2268 from nextcloud/cherry_pick_testchunkingng_related_improvements
Kevin Ottens [Thu, 13 Aug 2020 15:26:33 +0000 (17:26 +0200)]
Merge pull request #2268 from nextcloud/cherry_pick_testchunkingng_related_improvements

Cherry pick TestChunkingNG related improvements

6 years agoSize cleanups in TestChunkingNG
Kevin Ottens [Wed, 12 Aug 2020 16:38:57 +0000 (18:38 +0200)]
Size cleanups in TestChunkingNG

Some of the comments didn't match the size or were missing. This also
means reducing one of the 150 MB payloads left behind reducing the
execution time by a few more seconds. This is now around 30s execution
time which is more acceptable.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoUpload: Store the size in the UploadInfo, and compare it when resolving potential...
Olivier Goffart [Fri, 29 Jun 2018 08:43:01 +0000 (10:43 +0200)]
Upload: Store the size in the UploadInfo, and compare it when resolving potential conflict

This is about the conflicts that happens when the file has been uploaded
correctly to the server, but the etag was not recieved because the connection
was closed before we got the reply.

We used to compare only the mtime when comparing the uploaded file and the
existing file.  However, to be perfectly correct, we also should check the
size.

This was found because TestChunkingNG::connectionDroppedBeforeEtagRecieved is
flaky. Example of faillure found in https://drone.owncloud.com/owncloud/client/481/5
while testing PR #6626

(very trimmed log:)

06-29 07:58:02:015 [ info sync.csync.csync ]: ## Starting local discovery ##
06-29 07:58:02:016 [ info sync.csync.updater ]: Database entry found, compare: 1530259082 <-> 1530259051, etag:  <-> 1644a8c8750, inode: 1935629 <-> 1935629, size: 301 <-> 300, perms: 0 <-> ff, type: 0 <-> 0, checksum:  <-> SHA1:cc9adedebe27a6259efb8d6ed09f4f2eff559ad1, ignore: 0
06-29 07:58:02:016 [ info sync.csync.updater ]: file: A/a0, instruction: INSTRUCTION_EVAL <<=
06-29 07:58:02:972 [ warning sync.networkjob ]: QNetworkReply::NetworkError(OperationCanceledError) "Connection timed out" QVariant(Invalid)
.. next sync...
06-29 07:58:02:980 [ info sync.engine ]: #### Discovery start ####################################################
06-29 07:58:02:981 [ info sync.csync.csync ]: ## Starting local discovery ##
06-29 07:58:02:983 [ info sync.csync.updater ]: Database entry found, compare: 1530259082 <-> 1530259051, etag:  <-> 1644a8c8750, inode: 1935629 <-> 1935629, size: 302 <-> 300, perms: 0 <-> ff, type: 0 <-> 0, checksum:  <-> SHA1:cc9adedebe27a6259efb8d6ed09f4f2eff559ad1, ignore: 0
06-29 07:58:02:983 [ info sync.csync.updater ]: file: A/a0, instruction: INSTRUCTION_EVAL <<=
06-29 07:58:02:985 [ info sync.csync.csync ]: ## Starting remote discovery ##
06-29 07:58:02:985 [ info sync.networkjob ]: OCC::LsColJob created for "http://localhost/owncloud" + "" "OCC::DiscoverySingleDirectoryJob"
06-29 07:58:02:987 [ info sync.csync.updater ]: Database entry found, compare: 1530259082 <-> 1530259051, etag: 1644a8c8b26 <-> 1644a8c8750, inode: 0 <-> 1935629, size: 301 <-> 300, perms: ff <-> ff, type: 0 <-> 0, checksum: SHA1:5adcdac9608ae0811247f07f4cf1ab0a2ef99154 <-> SHA1:cc9adedebe27a6259efb8d6ed09f4f2eff559ad1, ignore: 0
06-29 07:58:02:987 [ info sync.csync.updater ]: file: A/a0, instruction: INSTRUCTION_EVAL <<=
06-29 07:58:02:989 [ info sync.csync.csync ]: Update detection for remote replica took 0.004 seconds walking 13 files
06-29 07:58:02:990 [ info sync.engine ]: #### Discovery end ####################################################  9 ms
06-29 07:58:02:990 [ info sync.database ]: Updating file record for path: "A/a0" inode: 1935629 modtime: 1530259082 type: 0 etag: "1644a8c8b26" fileId: "16383ea4" remotePerm: "WDNVCKR" fileSize: 301 checksum: "SHA1:cc9adedebe27a6259efb8d6ed09f4f2eff559ad1"
06-29 07:58:02:990 [ info sync.csync.reconciler ]: INSTRUCTION_UPDATE_METADATA    client file: A/a0
06-29 07:58:02:990 [ info sync.csync.csync ]: Reconciliation for local replica took  0 seconds visiting  13  files.
06-29 07:58:02:990 [ info sync.csync.reconciler ]: INSTRUCTION_UPDATE_METADATA    server dir:  A
06-29 07:58:02:990 [ info sync.csync.csync ]: Reconciliation for remote replica took  0 seconds visiting  13  files.
06-29 07:58:02:990 [ info sync.engine ]: #### Reconcile end ####################################################  9 ms
06-29 07:58:02:990 [ info sync.database ]: Updating local metadata for: "A/a0" 1530259082 302 1935629
FAIL!  : TestChunkingNG::connectionDroppedBeforeEtagRecieved(small file) '!fakeFolder.syncOnce()' returned FALSE. ()

6 years agoTestChunkingNG: Make it faster
Olivier Goffart [Wed, 18 Jul 2018 13:46:30 +0000 (15:46 +0200)]
TestChunkingNG: Make it faster

Use smaller files so the test run faster.
Particulary usefull for TestChunkingNG::connectionDroppedBeforeEtagRecieved
Which had become so much slower after 2638332dc63cd79410b6fea5a24449696d63d3f2
increased the timeout for bigger files

6 years agoUpload: Add more chunk resuming unit tests #6405
Christian Kamm [Tue, 17 Apr 2018 07:58:57 +0000 (09:58 +0200)]
Upload: Add more chunk resuming unit tests #6405

6 years agoMerge pull request #2269 from nextcloud/enable_modernize_loop_convert
Kevin Ottens [Thu, 13 Aug 2020 14:37:41 +0000 (16:37 +0200)]
Merge pull request #2269 from nextcloud/enable_modernize_loop_convert

Enable the modernize-loop-convert check on clang-tidy

6 years agoEnable the modernize-loop-convert check on clang-tidy
Kevin Ottens [Thu, 13 Aug 2020 10:23:02 +0000 (12:23 +0200)]
Enable the modernize-loop-convert check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoRemove unused method
Kevin Ottens [Thu, 13 Aug 2020 12:23:18 +0000 (14:23 +0200)]
Remove unused method

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoEnable the modernize-deprecated-headers check on clang-tidy
Kevin Ottens [Thu, 13 Aug 2020 11:00:56 +0000 (13:00 +0200)]
Enable the modernize-deprecated-headers check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoEnable the modernize-use-equals-default check on clang-tidy
Kevin Ottens [Wed, 12 Aug 2020 15:19:49 +0000 (17:19 +0200)]
Enable the modernize-use-equals-default check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Thu, 13 Aug 2020 03:30:50 +0000 (03:30 +0000)]
[tx-robot] updated from transifex

6 years agoEnable the modernize-user-nullptr check on clang-tidy
Kevin Ottens [Wed, 12 Aug 2020 14:14:48 +0000 (16:14 +0200)]
Enable the modernize-user-nullptr check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoMerge pull request #2264 from nextcloud/enable_modernize_use_using
Kevin Ottens [Wed, 12 Aug 2020 17:29:17 +0000 (19:29 +0200)]
Merge pull request #2264 from nextcloud/enable_modernize_use_using

Enable the modernize-use-using check on clang-tidy

6 years agoGet rid of useless using constructs
Kevin Ottens [Wed, 12 Aug 2020 16:06:57 +0000 (18:06 +0200)]
Get rid of useless using constructs

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoMake QTokenizer use simpler by having optional second parameter
Kevin Ottens [Wed, 12 Aug 2020 15:56:22 +0000 (17:56 +0200)]
Make QTokenizer use simpler by having optional second parameter

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoEnable the modernize-use-using check on clang-tidy
Kevin Ottens [Wed, 12 Aug 2020 13:23:11 +0000 (15:23 +0200)]
Enable the modernize-use-using check on clang-tidy

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoMerge pull request #2262 from nextcloud/enable_trivial_clang_tidy_modernize_checks
Kevin Ottens [Wed, 12 Aug 2020 15:16:38 +0000 (17:16 +0200)]
Merge pull request #2262 from nextcloud/enable_trivial_clang_tidy_modernize_checks

Enable "trivial" modernize clang-tidy checks

6 years agoEnable "trivial" modernize clang-tidy checks
Kevin Ottens [Wed, 12 Aug 2020 09:22:16 +0000 (11:22 +0200)]
Enable "trivial" modernize clang-tidy checks

This is a bunch of modernize checks which we don't hit at all. This is
an easy win and also make sure those old constructs won't creep up
behind our back.

Note that some of them won't trigger until we bump our C++ baseline
standard to C++17. But I'd say that's OK, that'll force our hand to do
those C++17 related cleanups when the time comes.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoMerge pull request #2037 from nextcloud/enable_modernize_raw_string_literal
Kevin Ottens [Wed, 12 Aug 2020 13:02:55 +0000 (15:02 +0200)]
Merge pull request #2037 from nextcloud/enable_modernize_raw_string_literal

Enable modernize raw string literal

6 years agoWe don't really need two \ here
Kevin Ottens [Thu, 4 Jun 2020 12:09:21 +0000 (14:09 +0200)]
We don't really need two \ here

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoAdd more raw string literals missed previously
Kevin Ottens [Thu, 4 Jun 2020 12:09:06 +0000 (14:09 +0200)]
Add more raw string literals missed previously

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoMerge pull request #2247 from nextcloud/improve_drone_config
Kevin Ottens [Wed, 12 Aug 2020 07:45:26 +0000 (09:45 +0200)]
Merge pull request #2247 from nextcloud/improve_drone_config

Improve drone config

6 years agoMake sure wget looks for the certificates at the right place
Kevin Ottens [Tue, 11 Aug 2020 12:10:27 +0000 (14:10 +0200)]
Make sure wget looks for the certificates at the right place

Might happen because we got too many copies of OpenSSL around

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoSwitch to Ninja for the clang build
Kevin Ottens [Thu, 6 Aug 2020 11:25:23 +0000 (13:25 +0200)]
Switch to Ninja for the clang build

Clang is generally slower to compile than GCC so use a faster Make for
that build variant. This also allows us to verify our CMake files don't
do anything Make specific.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoParallelize the clang-tidy runs
Kevin Ottens [Thu, 6 Aug 2020 11:25:05 +0000 (13:25 +0200)]
Parallelize the clang-tidy runs

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoSplit cmake and compile into separate pipeline steps
Kevin Ottens [Thu, 6 Aug 2020 08:47:09 +0000 (10:47 +0200)]
Split cmake and compile into separate pipeline steps

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoSwitch to actual commands inside of the steps
Kevin Ottens [Thu, 6 Aug 2020 08:43:37 +0000 (10:43 +0200)]
Switch to actual commands inside of the steps

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoSplit the CI pipelines into proper steps
Kevin Ottens [Thu, 6 Aug 2020 07:25:46 +0000 (09:25 +0200)]
Split the CI pipelines into proper steps

Will make it easier to navigate the logs

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoNow make sure we're not picking up generated headers
Kevin Ottens [Thu, 6 Aug 2020 06:49:17 +0000 (08:49 +0200)]
Now make sure we're not picking up generated headers

This could happen (and started to happen more with clang-tidy 10) that
clang-tidy picked up errors in headers from the build directory. Now
that we moved the build directory out of source, we can simply filter
headers based on the pwd.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoMove the build in a volume to be reused between steps
Kevin Ottens [Wed, 5 Aug 2020 22:20:59 +0000 (00:20 +0200)]
Move the build in a volume to be reused between steps

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoRemove unneeded environment variables
Kevin Ottens [Wed, 5 Aug 2020 22:29:32 +0000 (00:29 +0200)]
Remove unneeded environment variables

Those are set by the base CI image anyway, no need to do the work again.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoSwitch to the newer base CI image
Kevin Ottens [Wed, 5 Aug 2020 22:14:27 +0000 (00:14 +0200)]
Switch to the newer base CI image

We can now spare building QtKeychain over and over shortening a bit the
build. We also update to latest gcc and clang.

Note that I didn't switch the AppImage pipeline to the newer image to
keep the binary compatibility promise required by linuxdeployqt.
Probably would make sense to do a specific image for AppImage with some
other of the cleanups I did there (in particular to avoid building
qtkeychain every time).

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years agoParallelize the CI build
Kevin Ottens [Wed, 5 Aug 2020 22:01:12 +0000 (00:01 +0200)]
Parallelize the CI build

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

6 years agoMerge pull request #2258 from nextcloud/have_a_way_to_display_e2ee_mnemonic
Kevin Ottens [Tue, 11 Aug 2020 13:11:40 +0000 (15:11 +0200)]
Merge pull request #2258 from nextcloud/have_a_way_to_display_e2ee_mnemonic

Keep the E2EE info message around to allow displaying mnemonic

6 years agoKeep the E2EE info message around to allow displaying mnemonic
Kevin Ottens [Tue, 11 Aug 2020 12:55:51 +0000 (14:55 +0200)]
Keep the E2EE info message around to allow displaying mnemonic

We lost the ability to display the E2EE mnemonic during the GUI
redesign and the info message wasn't displayed again on restart. So now
we display it every time, it still can be dismissed and the button text
is different in such a case to make the intent clearer.

Signed-off-by: Kevin Ottens <kevin.ottens@nextcloud.com>
6 years ago[tx-robot] updated from transifex
Nextcloud bot [Tue, 11 Aug 2020 03:30:03 +0000 (03:30 +0000)]
[tx-robot] updated from transifex