Commit Graph

23120 Commits

Author SHA1 Message Date
Matthieu Gallien
2ed48e9c7d
use memory to buffer the data of the files sent during bulk upload
should help make it faster to send all data

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-10 14:55:40 +02:00
Matthieu Gallien
f84d41b9bf
disable buffering when POSTing for bulk upload
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-10 14:55:40 +02:00
Camila Ayres
454a7a5768
Add test for syncing with bulk upload when there are errors.
Signed-off-by: Camila Ayres <hello@camilasan.com>
2025-04-10 14:54:13 +02:00
Camila
c7cffd9b56
Change bulk upload batch size when there is a sync error.
- Cancel sync after try with smaller bulk upload batch size also throws error.
- Continue syncing when there is no error.
- Remove file from bulk upload black list only when upload succeeded.

Signed-off-by: Camila <hello@camila.codes>
2025-04-10 14:54:13 +02:00
Matthieu Gallien
493e234e8f
Merge pull request #8137 from nextcloud/backport/8094/stable-3.16
[stable-3.16] Bugfix/use newer bulk upload checksum header
2025-04-10 14:37:34 +02:00
Matthieu Gallien
ec0e2d6ce0 only send the md5 custom checksum header when server expects it
server before 32.0.0 release expects a custom header with an MD5
checksum during bulk upload

the header name is: X-File-MD5

see https://github.com/nextcloud/server/pull/51729

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-10 09:31:04 +00:00
Matthieu Gallien
89a0af11fa with release 32.0.0 md5 custom checksum is removed from bulkupload
makes our fake server require an md5 custom checksum for bulk upload
until version 32.0.0

starting with 32.0.0 this custom checksum must be empty

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-10 09:31:04 +00:00
Matthieu Gallien
c67469e044 fix format of checksum header that was missing checksum type
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-10 09:31:04 +00:00
Matthieu Gallien
a287326f8f sending header X-File-MD5 that is currently mandatory
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-10 09:31:03 +00:00
Matthieu Gallien
84247296d8 automated tests of bulk upload needs to check checksums like real
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-10 09:31:03 +00:00
Nextcloud bot
fbb6df023b
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-04-10 03:03:42 +00:00
Jyrki Gadinger
a74fa573f0
Merge pull request #8131 from nextcloud/backport/8095/stable-3.16
[stable-3.16] fix: try to correct mtime on upsyncs
2025-04-09 09:26:55 +02:00
Jyrki Gadinger
910cd64831 fix FileSystem::setModTime on x64 Windows with times > 2038
also removes some unused Utility methods

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-04-09 07:13:22 +00:00
Jyrki Gadinger
6f5f977534 fix: try to correct mtime on upsyncs
Files with a modification time of less than 0 do usually not make sense
(and afaik the server doesn't accept them either).
--> attempt to update the modification time to _Time.now_ while
propagating

side note: I ran into this because KArchive/Ark(?) didn't consider the
extra time attributes on entries for a certain zip file, so it instead
used the standard time value of each zip entry which was set to <= 1980
for files and < 1970 for directories...

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-04-09 07:13:22 +00:00
Nextcloud bot
fe86261cdc
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-04-09 03:04:50 +00:00
Matthieu Gallien
2b33cddcf7
Merge pull request #8130 from nextcloud/backport/8127/stable-3.16
[stable-3.16] stop using QFile api to delete a single local file
2025-04-08 23:24:25 +02:00
Matthieu Gallien
147a033f88 stop using QFile api to delete a single local file
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-08 21:05:06 +00:00
Matthieu Gallien
0c50e0fafe
Merge pull request #8129 from nextcloud/backport/8128/stable-3.16
[stable-3.16] remove bogus check that tried to check for existing case clash conflict
2025-04-08 23:04:39 +02:00
Matthieu Gallien
cba3701c5c remove bogus check that tried to check for existing case clash conflict
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-08 19:49:07 +00:00
Nextcloud bot
f8fa044576
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-04-08 03:04:39 +00:00
Matthieu Gallien
8d57c975af
Merge pull request #8126 from nextcloud/backport/8121/stable-3.16
[stable-3.16] fix: move array to correct value in dict
2025-04-07 16:21:36 +02:00
Jyrki Gadinger
bb7dde19a3 fix: move array to correct value in dict
Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-04-07 15:39:03 +02:00
Matthieu Gallien
42f9eca684
Merge pull request #8125 from nextcloud/backport/8122/stable-3.16
[stable-3.16] fix crash within FolderStatusModelTest
2025-04-07 15:34:07 +02:00
Matthieu Gallien
58f36dc59e fix crash within FolderStatusModelTest
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-07 12:40:09 +00:00
Matthieu Gallien
72b96019a3
Merge pull request #8123 from nextcloud/backport/8118/stable-3.16
[stable-3.16] remove costly availability check that is never used
2025-04-07 14:06:43 +02:00
Matthieu Gallien
7aa76f57eb remove costly availability check that is never used
we never read the value computed

computing it means a recursive visit of the whole folder hierarchy which
could be taking a long time

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-07 13:53:29 +02:00
Matthieu Gallien
8eb56c04a1
Merge pull request #8124 from nextcloud/backport/8120/stable-3.16
[stable-3.16] Bugfix/delete errors
2025-04-07 13:53:15 +02:00
Matthieu Gallien
31b10e519c better error message for user when deleting local items
we might be displaying too technical errors that the user will have no
way to understand

for example on macOS, we might be getting:
Unknown error: 513

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-07 10:53:38 +00:00
Matthieu Gallien
b97f7eb84c when deleting a folder starts by making it read-write permissions
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-07 10:53:38 +00:00
Matthieu Gallien
bf1a13913a we must not use QFile::remove that may fail on windows read-only files
Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-07 10:53:38 +00:00
Matthieu Gallien
69599b010f if we are going to need modified permissions: always change
we might need to change the permissions, so do it instead of trying to
be smart

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-07 10:53:38 +00:00
Matthieu Gallien
1b2db61ce4 do not change permissions of invalid items on discovery
if we are going to delete those items, we will make them have the proper
permissions when we need

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-07 10:53:38 +00:00
Matthieu Gallien
a0136117ca always make the file we try to delete be read-write as required
on windows you must only delete read-write files

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-07 10:53:38 +00:00
Matthieu Gallien
85e31029f7 Qt 6.8 requires macSO 12 or higher: no need to compile against older
clean up preprocessor directives for older macOS releases that are not
supported by macOS minimum required release from the Qt 6.8 release we
require

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
2025-04-07 10:53:37 +00:00
Nextcloud bot
e7d61f458e
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-04-07 03:04:19 +00:00
Nextcloud bot
87256daa9c
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-04-06 03:14:26 +00:00
Nextcloud bot
0dc5b61271
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-04-05 03:04:13 +00:00
Matthieu Gallien
68a0cd58d7
Merge pull request #8117 from nextcloud/backport/8107/stable-3.16
[stable-3.16] fix(mac-crafter): Work around broken consecutive shell integration builds
2025-04-04 17:40:03 +02:00
Claudio Cambra
48186f1363 fix(mac-crafter): Work around broken consecutive shell integration builds
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
2025-04-04 13:32:43 +00:00
Matthieu Gallien
98d40a50d8
Merge pull request #8116 from nextcloud/backport/8109/stable-3.16
[stable-3.16] fix(gui): remove ignored file notifications from Activity list
2025-04-04 15:31:42 +02:00
Jyrki Gadinger
cefb1d061e fix(gui): remove ignored file notifications from Activity list
These are informative notifications without any need/possibility to act
on immediately -- if a file is not synced it will be visible from the
shell integration anyway.

An eventual follow-up to this change would be to have a dialogue with an
overview of all files that were ignored (including the entry in the
ignore list that caused a specific file to be ignored).

Closes #6712

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-04-04 13:03:11 +00:00
Matthieu Gallien
c827042236
Merge pull request #8115 from nextcloud/backport/8114/stable-3.16
[stable-3.16] fix(mac): bump deployment target to 12.0
2025-04-04 14:02:22 +02:00
Jyrki Gadinger
042fc1544c fix(mac): bump deployment target to 12.0
Qt 6.8 now requires macOS 12.0 as per https://doc.qt.io/qt-6.8/macos.html

for comparison, Qt 6.7 supported 11.0 and newer: https://doc.qt.io/qt-6.7/macos.html

also update the Packages project to refuse to install on anything older
than Monterey (12.0)

Signed-off-by: Jyrki Gadinger <nilsding@nilsding.org>
2025-04-04 11:48:44 +00:00
Nextcloud bot
361f1b8287
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-04-04 03:03:36 +00:00
Nextcloud bot
8ec78101b4
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-04-03 03:02:53 +00:00
Nextcloud bot
cfe05b1a24
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-04-02 03:03:16 +00:00
Nextcloud bot
dcfe1319f5
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-03-31 03:06:33 +00:00
Nextcloud bot
2091c5928a
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-03-30 03:03:35 +00:00
Nextcloud bot
efca3887ee
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-03-29 03:04:25 +00:00
Nextcloud bot
9839e25720
Fix(l10n): Update translations from Transifex
Signed-off-by: Nextcloud bot <bot@nextcloud.com>
2025-03-28 03:04:28 +00:00