Commit Graph

3126 Commits

Author SHA1 Message Date
rakekniven
a9d4c05fbd chore(i18n): Remove blank
Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
2025-02-17 07:28:34 +00:00
Camila Ayres
417f692ff5 Overwrite the user exclude list when the client is branded.
Enforce specific sync-exclude file to all users.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-11 10:57:01 +01:00
Matthieu Gallien
b3886ed1b6 while migrating from another version, clean updater config
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-11 10:57:01 +01:00
alex-z
a83a636273 Bugfix. E2EE. Always migrate from 1.2 to 2.0, even with nested folders.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2025-02-11 09:14:58 +01:00
Matthieu Gallien
c141fe906f set the parent folder read/write always when downloading a new file
that would also cover code paths for virtual files

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-07 10:35:42 +01:00
Matthieu Gallien
8a88bfbf84 clear useless declarations or include
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-07 09:12:29 +01:00
Matthieu Gallien
a4dfef2daf remove duplicated code in ClientSideEncryption class
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-07 09:12:29 +01:00
Matthieu Gallien
c5a6b0ab27 remove wrong conversions from or to base64
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-07 09:12:29 +01:00
Matthieu Gallien
c55c043cab fixes wrong conversion from or to base64 encoding
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-07 09:12:29 +01:00
Matthieu Gallien
335ea176b4 fixes for software end-to-end encryption issues
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-07 09:12:29 +01:00
Matthieu Gallien
b8f87134ed fix setting up encryption with software based certificate storage
some data need to be converted to or from base64

some data should not be converted

clear one such place where a conversion to base64 was too much

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-07 09:12:29 +01:00
Matthieu Gallien
f42c944e6a partial fix for broken automated tests
will use different validation method for hardware stored certificates
and pure software certificates emited by the nextcloud server

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-07 09:12:29 +01:00
Matthieu Gallien
2a52ec33b0 add support to use PKCS#11 harware token to store certifice for e2ee
Close #5685

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-07 09:12:29 +01:00
Camila Ayres
8542c10714 Improve logging when error occurs while changing folder permissions.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-06 18:02:20 +01:00
Matthieu Gallien
0e91ece49c only use debug log level for discovery traces to decrease cost
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-06 09:44:55 +01:00
Integral
356e4f9296 refactor: replace QString() with QStringLiteral() for better performance
Signed-off-by: Integral <integral@member.fsf.org>
2025-01-31 15:11:02 +01:00
Rello
bbdea80574 Link to new documentation
Signed-off-by: Rello <Rello@users.noreply.github.com>
2025-01-31 10:26:58 +01:00
Matthieu Gallien
fb0b89f5fa
fix wrong if condition
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-27 18:56:48 +01:00
Felix
1001a1dff4 Check if discovery paths are empty before logging
Signed-off-by: Felix <felix-git@0xf.eu>
2025-01-23 20:45:09 +01:00
Felix
2c2cb135ca Log path strings directly instead of accumulating
Signed-off-by: Felix <felix-git@0xf.eu>
2025-01-23 20:45:09 +01:00
Matthieu Gallien
6cc7a9955f switch client side encryption to use sha256 hash algorithm
Close #5989

only support sha1 for depreceted read-only usage

use sha256 for new encrypted write operations

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-23 10:47:16 +01:00
Claudio Cambra
59f85467f7 Expose maxConcurrentChunkUploads from Capabilities
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-01-23 10:13:51 +08:00
Claudio Cambra
bca2f1db9d Remove overrideServerChunkSize config entry
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-01-23 10:13:51 +08:00
Claudio Cambra
36b1f92810 Fix naming for overrideSercerChunkSize constexpr
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-01-23 10:13:51 +08:00
Claudio Cambra
93570808d4 Add config entry to override server chunk size
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-01-23 10:13:51 +08:00
Claudio Cambra
35c7020d99 Add maxChunkSize getter function to get chunked upload max size from capabilities
This will be added with NC31

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-01-23 10:13:51 +08:00
Matthieu Gallien
a45e96b793 fix the if check for invalid virtual LNK files
should ensure we fix the DB metadata of LNK windows shortcuts with
virtual files type

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-22 12:31:04 +01:00
Matthieu Gallien
7c3ac180d7 update metadata when a file item has wrong type in DB
should help fixing the type of windows shortcuts in DB that were wrongly
set as virtual files

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-22 11:17:41 +01:00
Matthieu Gallien
b8f853a135 add an assert to ensure we do not use virtual file types with no VFS
if VFS mode is off, we should nto be using any virtual file types

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-22 11:17:41 +01:00
Matthieu Gallien
3a20ea871b handle LNK virtual files only when VFS mode is not off
should ensure lnk widnows shortcut files are not mistakenly handled as
virtual files

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-22 11:17:41 +01:00
Carl Schwan
411f88e0ff Avoid converting string to color
Use hex directly

Signed-off-by: Carl Schwan <carl@carlschwan.eu>
2025-01-22 10:42:31 +01:00
Joshua Noeske
80b6d0e961 Make extraction of ETag header independent of capitalisation.
Fixes #7703.

Signed-off-by: Joshua Noeske <git@joshuanoeske.de>
2025-01-07 09:38:12 +01:00
Matthieu Gallien
6f8a40f73e prevent implicit hydration when checking PIN state
to enable move to trash, we check availability of a folder recursively

that will trigger implicit hydration of its content

we will now prevent moving to trash for VFS CfApi native VFS on Windows

will fix teh bug and probably be much more robust and reliable

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-03 17:14:28 +01:00
Matthieu Gallien
f12f66f4e6 fix code style
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-03 17:14:28 +01:00
Matthieu Gallien
3f49361712 force dehydratation of lnk files when vfs metadata are wrong
Close #7696

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-03 17:14:28 +01:00
Camila Ayres
d9e42e7ad1 Remove assert for when the timestamp is not empty.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-01-02 11:33:37 +01:00
Matthieu Gallien
b2b5fb793c ensure no crash due to uncatched exception from std c++ lib
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-02 10:20:27 +01:00
Matthieu Gallien
1f32d1f9d7 prevent crash by catching more exception types from c++ std lib
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-01-02 10:20:27 +01:00
Claudio Cambra
b2a70435c8 Use QDomDocument content method returning ParseResult
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

Use ParseResult returning QDomDocument setContent

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f parseresult

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-12-20 16:26:57 +01:00
Claudio Cambra
4f2223b582 Replace QWebSocket::error with errorOccurred
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-12-20 16:26:57 +01:00
Claudio Cambra
f2d49f5591 Use std::prev ove -1ing the iterator
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

Use std::prev for it rather than -1 in Syncengine

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-12-20 16:26:57 +01:00
Claudio Cambra
7d9077c9a9 Use unique_ptr over scoped pointer
take is deprecated in scoped pointer

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f handle

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

Use unique_ptr instead of scoped pointer for propagator firstJob

Fixes deprecation warning

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

Use unique_ptr for discoveryphase, replace take with release

Fix deprecation warn

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f unique

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-12-20 16:26:57 +01:00
Claudio Cambra
3e1bdf7412 Replace deprecated QVariant types with QMetaType
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

Use QVariant metaType instead of type

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>

f metatype

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-12-20 16:26:57 +01:00
Claudio Cambra
1009fed86a Replace all uses of qAsConst with std::as_const
Fixes deprecation warnings on Qt 6.8.0

Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-12-20 16:26:57 +01:00
Matthieu Gallien
5d2ee18886 remove deprecated API
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-12-16 16:15:40 +01:00
Matthieu Gallien
321c583b69 allow dehydrating pinned LNK files
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-12-16 16:15:40 +01:00
Hannah von Reth
47132d3beb Fix crash on missing sync root
Fixes: #9016
2024-12-12 12:15:44 +01:00
Matthieu Gallien
be85f3c1ec optionally install PDB files when building them
would allow installing PDB files when doing Windows builds producing
debug symbols

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-12-12 10:08:15 +01:00
Matthieu Gallien
a8021a2dff
use modern non deprecated hash algorithm and parameters
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-12-12 10:02:51 +01:00
Matthieu Gallien
ae0203c462 dehydrate placeholder files using CfDehydratePlaceholder
might be enough to get this working reliably

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-12-11 14:47:00 +01:00