]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(cache): etag constraint violation fix/etag-constraint-search-query 49420/head
authorskjnldsv <skjnldsv@protonmail.com>
Thu, 21 Nov 2024 09:34:39 +0000 (10:34 +0100)
committerskjnldsv <skjnldsv@protonmail.com>
Thu, 21 Nov 2024 09:34:39 +0000 (10:34 +0100)
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
lib/private/Files/Cache/CacheQueryBuilder.php

index 2853ca033add0bfbe7ec8f557e21f6a4af38f60a..5ae60ee80b677d98417e8013625768e61efcb19f 100644 (file)
@@ -48,7 +48,7 @@ class CacheQueryBuilder extends ExtendedQueryBuilder {
        public function selectFileCache(?string $alias = null, bool $joinExtendedCache = true) {
                $name = $alias ?: 'filecache';
                $this->select("$name.fileid", 'storage', 'path', 'path_hash', "$name.parent", "$name.name", 'mimetype', 'mimepart', 'size', 'mtime',
-                       'storage_mtime', 'encrypted', 'etag', "$name.permissions", 'checksum', 'unencrypted_size')
+                       'storage_mtime', 'encrypted', "$name.etag", "$name.permissions", 'checksum', 'unencrypted_size')
                        ->from('filecache', $name);
 
                if ($joinExtendedCache) {