Commit Graph

229 Commits

Author SHA1 Message Date
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
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
Matthieu Gallien
52e78b3ece when locking a file set If-Match header to ensure etag is correct
the file being locked may have been changed sinc the client synced it

so the server side file may have a modified etag. In such cases we do
not want to lock the file and would rather sync the nex server changes
before being able to lock the file

that would ensure that on client side the file being locked is matching
teh state of teh file on server side and would prevent inadvertently
overriding server changes

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-12-09 09:33:49 +01:00
Camila Ayres
11cebc1e2a
Fix tests: make sure displayName is not empty.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-11-22 10:51:04 +01:00
Camila Ayres
fdbda5d59b
Remove check before setting display name.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-11-22 10:51:04 +01:00
Camila Ayres
f130e39cbc
Rename vars: _am => _networkAccessManager, a => newAccountData.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-11-22 10:51:03 +01:00
Camila Ayres
1847a2e95c
Diferentiate between display name and dav display name.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-11-22 10:51:03 +01:00
Camila Ayres
27ad53810e
Modernize Account::displayName().
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-11-22 10:50:11 +01:00
Claudio Cambra
ccff4fa1c7
Use constexpr for accentcolor adjustment value
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-11-21 13:21:01 +08:00
Camila Ayres
19db552f7d
Remove check in setServerHasValidSubscription.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-10-31 13:06:04 +01:00
Camila Ayres
d0f87c3496
Save serverHasValidsubcription in the account.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-10-31 13:06:03 +01:00
Camila Ayres
85a3658414
Do not override the subscription value if one of the account has enterprise.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-10-31 13:06:03 +01:00
Camila Ayres
d080261692
Use const auto.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-10-29 12:40:24 +01:00
Camila Ayres
d038ae8482
Remove call to wantsAccountSaved when clearing the cookies.
The cookies are cleared when an account is removed, this call was
bringing back the deleted account.

Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-10-29 12:40:24 +01:00
Matthieu Gallien
202be8a081
clarify when desktop client should offer to unlock a file
a file can be unlocked when:

 * the lock is an user lock from the current user
 * the lock is a token lock from the current desktop files client

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-09-26 09:25:32 +02:00
Matthieu Gallien
274feb9587 remove deprecated code only usefull for very old Qt releases
we require Qt > 6.0 so any conditionnal code for older releases can be
deleted

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-08-12 11:14:26 +02:00
Claudio Cambra
7dec7b26a0
Move all proxy configuration procedures into account and out of network settings
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 16:28:15 +08:00
Claudio Cambra
04f335e972
Modify network access manager proxy within account when setting proxy values
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:50 +08:00
Claudio Cambra
35bc728a39
Add download limit setting property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:48 +08:00
Claudio Cambra
d06e8b1d4e
Add upload limit property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:48 +08:00
Claudio Cambra
f96fe64bde
Add download limit setting property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:48 +08:00
Claudio Cambra
7a9fd727c4
Add upload limit setting property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:47 +08:00
Claudio Cambra
56b8fcf061
Add proxy password property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:47 +08:00
Claudio Cambra
c0cd839a29
Add proxy user property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:47 +08:00
Claudio Cambra
daed4c7b7f
Add proxy needs auth property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:47 +08:00
Claudio Cambra
8c6a181ee3
Add proxy port property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:47 +08:00
Claudio Cambra
a4553f5929
Add proxy host name property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:47 +08:00
Claudio Cambra
73dd000429
Add proxy type property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:47 +08:00
Claudio Cambra
2501cdf44d
Add network proxy setting property to account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-07-22 15:37:46 +08:00
Camila Ayres
0663282b2b
Update desktopEnterpriseChannel value when capabilities change.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-07-04 10:16:40 +02:00
Camila Ayres
a4c114e658
Update server hasValidSubscription if capabilities change for account.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2024-07-04 10:16:38 +02:00
Claudio Cambra
79a150baf4 Fix qtkeychain imports with Qt6
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2024-04-26 09:05:12 +02:00
Matthieu Gallien
55034f7e43
properly compute if a folder is top level or child extern mounted
asks new permission to server to be able to know if a folder is a top
level mounted folder

should allow detecting the top level folders from external storages or
group folders

should also make the client reliably detect that it is handling a child
folder inside a group folder and be allowed to rename such folders

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2024-03-27 14:29:01 +01:00
alex-z
2eaecb6400 File locking. Manual lock should never be modified without user intervention. Set token lock instead of user lock when locking office files automatically.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2024-01-18 10:21:09 +01:00
alex-z
50d168759f Added error reporting for E2EE issues.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-12-11 18:03:57 +01:00
alex-z
4b0e1b57eb Prevent issues when changing the enum.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-12-11 18:03:57 +01:00
alex-z
5b54b13a97 Iteration. Properly process server reply.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-12-11 18:03:57 +01:00
alex-z
4b7ccf8647 Iteration. Use Capabilities to control Client Status Reporting availibility.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-12-11 18:03:57 +01:00
alex-z
ff8db2674a Client status reporting feature. First iteration.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-12-11 18:03:57 +01:00
Dimitri Papadopoulos
8a73a9a6f5 Fix new typos found by codespell
Signed-off-by: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com>
2023-09-17 10:41:38 +02:00
alex-z
3815919aa5 Fix a crash when saving the locked Word document file due to unnecessary spam to the lock state change from folder watcher logic.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-09-05 15:52:04 +02:00
Claudio Cambra
01cb5d7e22 Do not include theme header in account header
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2023-08-24 08:34:41 +08:00
Claudio Cambra
135b235568 Only update private colors if received capabilities colors are valid
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-08-24 08:34:41 +08:00
Claudio Cambra
9253016d00 Store server color in private member of account when capabilities fetched
Signed-off-by: Claudio Cambra <developer@claudiocambra.com>
2023-08-24 08:34:41 +08:00
alex-z
90e3a37a20 E2EE. Fix freeze on metadata checksum validation.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-05-08 11:29:16 +02:00
alex-z
b6ba1fe0d6 Implement Secure filedrop link share. Move data from 'filedrop' to 'files' when syncing E2EE folders.
Signed-off-by: alex-z <blackslayer4@gmail.com>
2023-03-02 19:29:11 +01:00
Matthieu Gallien
01ecb639ab use new connect syntax
mainly done using clazy and old-style-connect check

close #5426

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2023-02-28 09:36:27 +01:00
Matthieu Gallien
24fc49f99d fix edit locally job not finding the user account: wrong user id
the only correct id for an user is Account::_davUser

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2023-02-17 09:47:06 +01:00
Claudio Cambra
72fb279508 More accurately log what happens when deleteAppPassword is complete in Account
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2023-02-14 20:22:51 +01:00
Claudio Cambra
3b6064390c Register askUserForMneominc in property system
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2022-12-09 12:12:37 +01:00