Commit Graph

3138 Commits

Author SHA1 Message Date
Pablo Ariño Muñoz
a6a02dceb1 Replaced qAsConst with std::as_const
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-25 03:55:21 +00:00
Pablo Ariño Muñoz
76195b9617 removed redundant qAsConst
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-25 03:55:21 +00:00
Pablo Ariño Muñoz
1f426977af Replaced foreach with range loops
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-25 03:55:21 +00:00
Jyrki Gadinger
b2e4b18c2e wizard: display error message when ToS haven't been accepted yet
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-02-20 10:35:56 +00:00
Matthieu Gallien
9dbf03cd23 provide consistent version info including human readable version
should avoid displaying to an user a version number like 3.15.81

will remove some duplicated code

should allow to always use same way to display to an user the version
number

will make "3.15.81" be shown as "3.16.0 rc1"

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-19 16:48:45 +01:00
Matthieu Gallien
095b9581c8 handle errors when automated renaming for name rules is failing
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-19 13:12:37 +00:00
Matthieu Gallien
0fd16d2d4e ensure correct behavioron Windows for invalid file names
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-19 13:12:37 +00:00
Matthieu Gallien
8deb1c57fc try to enforce the windows compatibility as guessed from server
for now simple rule to guess if the server has windows naming enforced

if windows naming is enforced, we enforce it for new files

if not, we do not care

for now limited to spaces removal

more to come

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-19 13:12:37 +00:00
Matthieu Gallien
44df8fa926 basically try to enforce the windows compatibility as guess from server
for now simple rule to guess if the server has windows naming enforced

if windows naming is enforced, we enforce it for new files

if not, we do not care

for now limited to spaces removal

more to come

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-19 13:12:37 +00:00
Matthieu Gallien
f18a94fbfd try to detect if naming rules are enabled on server before auto rename
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-19 13:12:36 +00:00
Matthieu Gallien
7a7edd69ef automatic removing of invalid spaces in file names
to ensure compatibility with Widnows, we will remove automatically the
leading space characters in file name of new files or folders

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-19 13:12:36 +00:00
Matthieu Gallien
2b17a10457 enforce trailing and leading spaces for new files
enforce trailing and leading space rules for new files and only for new
files but on all platforms, not only windows

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-02-19 13:12:36 +00:00
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