nextcloud/lib/private/Files
Louis Chmn 8afe1dd53a fix(encryption): Increment lastChunkNr when size is off
When computing the unencrypted file size, we need the size of the last encrypted chunk as its size is usually not the regular 8192 bits.

To avoid reading the whole file, we seek directly to that last chunk based on the expected file size. When the expected file size is smaller than the actual one, we have a logic in place to continue reading until we reach the end of the file.

In that logic, we forgot to increment the `$lastChunkNr` which is important when we later check the signature of the chunk.

This commit adds that missing increment.

Signed-off-by: Louis Chmn <louis@chmn.me>
2025-11-25 09:19:09 +00:00
..
AppData chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Cache fix: Clear mount cache when file storage changes during move 2025-11-13 14:09:36 +00:00
Config fix: cast fileid to string in getMountsForFileId 2025-08-29 17:59:16 +02:00
Conversion fix: php lint extra tab fix 2025-01-17 21:37:39 +01:00
Lock chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Mount feat: move primary object store configuration to a single place 2025-09-24 18:39:21 +02:00
Node fix(files): Always return a valid mimetype 2025-10-06 16:00:04 +02:00
Notify chore: Add SPDX header 2024-05-24 13:11:22 +02:00
ObjectStore fix: ensure all object store configuration have distict bucket names 2025-11-20 15:36:14 +01:00
Search chore(deps): Update nextcloud/coding-standard to v1.3.1 2024-09-19 14:21:20 +02:00
SimpleFS chore: Add SPDX header 2024-05-24 13:11:22 +02:00
Storage fix(encryption): Increment lastChunkNr when size is off 2025-11-25 09:19:09 +00:00
Stream fix: $uid type in Encryption stream 2024-10-23 13:20:40 +02:00
Template fix: validate filename when creating file from template 2025-11-04 16:08:49 +01:00
Type fix(files): Make sure file pointer exists 2025-03-17 16:05:04 +00:00
Utils fix: better error message when trying to scan a folder that is already being scanned 2025-05-13 14:06:15 +02:00
FileInfo.php fix(files): Always return a valid mimetype 2025-10-06 16:00:04 +02:00
FilenameValidator.php fix(IFilenameValidator): correctly handle case insensitivity 2025-03-28 20:54:23 +01:00
Filesystem.php fix(Filesystem): use FilenameValidator for Filesystem::isFileBlacklisted 2025-09-03 14:24:48 +00:00
SetupManager.php fix: don't update cached mountpoints if the request doesn't have filesystem access 2025-08-01 16:04:20 +00:00
SetupManagerFactory.php chore: Add SPDX header 2024-05-24 13:11:22 +02:00
View.php fix(node): emit hooks on Node::copy() 2025-05-28 11:50:11 +00:00