Commit Graph

3153 Commits

Author SHA1 Message Date
Matthieu Gallien
1c90fb08e0 ensure user receiving an encrypted share maintain proper state
will make sure the client internal database keeps proper encryption
information

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-13 12:35:24 +01:00
Camila Ayres
a3ae0441c3
Add option to disable virtual files syncing on Windows.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-03-13 12:15:46 +01:00
Matthieu Gallien
d530ce3dc3 avoid showing warnings for excluded files to not confuse users
if a file name is invalid, the files will be ignored

if a file is excluded because of selective sync, the file will be
ignored

if a file is ignored for those both reasons, avoid showing a very
visible warning to the user

will limit too many warnings and notifications being shown

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-12 15:12:50 +01:00
Matthieu Gallien
33834b83c6 ensure invalid file names are reported for files that are not ignored
we currently notify invalid file names for files that the sync engine
will not upload because they are ignored for other reasons (selective
sync for example)

let's first check if the file is ignored and only if the file would be
uploaded, we can check the file name validity

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-12 15:12:50 +01:00
Jyrki Gadinger
79c9851208 fix setups that use basic auth
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-11 08:43:41 +00:00
Matthieu Gallien
809642791d remove unused capture of this in one lambda
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-07 09:33:28 +00:00
Jyrki Gadinger
2257d189e4 always set a user if we got asked for one
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-06 09:35:31 +01:00
Jyrki Gadinger
54d4930f44 make use of the new x-nc-skip-trashbin header
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-03-06 08:22:55 +00:00
Matthieu Gallien
2c58577b87 when deleting a remote locked file, provide needed lock headers
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-03-03 16:07:07 +00:00
Pablo Ariño Muñoz
0c1b9b9510 Changed critical free space to 512MB and free space to 1GB in code and documentation
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-27 03:49:02 +00:00
Camila Ayres
cc4cf2ca38 Remove helpUlr() call from string.
Co-authored-by: Jyrki Gadinger <nilsding@nilsding.org>
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-25 10:03:54 +00:00
Camila Ayres
6356b8356d Remove help url from developer string.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-25 10:03:53 +00:00
Camila Ayres
31326b2f09 Update help url default value.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-02-25 10:03:53 +00:00
Pablo Ariño Muñoz
ae22f90910 Carried out further fixes, changing types to auto and adding 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
abc6c213b4 Added more std::as_const and replaced types for auto, as well as other suggestions
Signed-off-by: Pablo Ariño Muñoz <progpabarino@gmail.com>
2025-02-25 03:55:21 +00:00
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