nextcloud / nextcloud/server

[Bug]: When a search is performed in “files,” the total size is incorrect

Open
#59,086 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

0. Needs triage 32-feedback bug feature: files feature: search
Dominant language
PHP
Stars
36.9k
Forks
5.2k
Avg merge
2d 3h
Merged PRs (30d)
713

Description

⚠️ This issue respects the following points: ⚠️
Bug description
Image
Steps to reproduce
  1. go to a folder, and search for whatever you want
  2. see that the number of files and/or folders is OK
  3. see that the total files' size is incorrect (This refers to the total number of items in the folder you searched, not the total size of the items listed after the search)
Expected behavior

The indicated size must be the total size of the items listed after the search

Nextcloud Server version

32

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.3

Web server

Nginx

Database engine version

MariaDB

Is this bug present after an update or on a fresh install?

Upgraded to a MAJOR version (ex. 31 to 32)

Are you using the Nextcloud Server Encryption module?

Encryption is Disabled

What user-backends are you using?
  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other
Configuration report
{
    "upgrade.disable-web": true,
    "simpleSignUpLink.shown": false,
    "skeletondirectory": "",
    "templatedirectory": "\/var\/www\/html\/core\/skeleton\/Templates\/",
    "davstorage.request_timeout": 10800,
    "activity_expire_days": "31",
    "enabledPreviewProviders": [
        "OC\\Preview\\PNG",
        "OC\\Preview\\JPEG",
        "OC\\Preview\\GIF",
        "OC\\Preview\\BMP",
        "OC\\Preview\\XBitmap",
        "OC\\Preview\\MP3",
        "OC\\Preview\\TXT",
        "OC\\Preview\\MarkDown",
        "OC\\Preview\\OpenDocument",
        "OC\\Preview\\Krita",
        "OC\\Preview\\HEIC",
        "OC\\Preview\\Image"
    ],
    "forbidden_filenames": [],
    "remember_login_cookie_lifetime": 604800,
    "memcache.local": "\\OC\\Memcache\\APCu",
    "appstoreurl": "https:\/\/apps.your-storageshare.de",
    "allow_local_remote_servers": true,
    "apps_paths": [
        {
            "path": "\/var\/www\/html\/apps",
            "url": "\/apps",
            "writable": false
        },
        {
            "path": "\/var\/www\/html\/custom_apps",
            "url": "\/custom_apps",
            "writable": true
        }
    ],
    "files_external_allow_create_new_local": false,
    "loglevel": 2,
    "log_type": "syslog",
    "updatechecker": false,
    "updater.server.url": "***REMOVED SENSITIVE VALUE***",
    "passwordsalt": "***REMOVED SENSITIVE VALUE***",
    "secret": "***REMOVED SENSITIVE VALUE***",
    "datadirectory": "***REMOVED SENSITIVE VALUE***",
    "dbtype": "mysql",
    "version": "32.0.6.1",
    "overwrite.cli.url": "https:\/\/nx80666.your-storageshare.de",
    "dbname": "***REMOVED SENSITIVE VALUE***",
    "dbhost": "***REMOVED SENSITIVE VALUE***",
    "dbport": "",
    "dbtableprefix": "oc_",
    "mysql.utf8mb4": true,
    "dbuser": "***REMOVED SENSITIVE VALUE***",
    "dbpassword": "***REMOVED SENSITIVE VALUE***",
    "installed": true,
    "instanceid": "***REMOVED SENSITIVE VALUE***",
    "default_language": "fr",
    "default_locale": "fr",
    "default_phone_region": "FR",
    "mail_smtpmode": "smtp",
    "mail_smtpauthtype": "LOGIN",
    "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
    "mail_from_address": "***REMOVED SENSITIVE VALUE***",
    "mail_domain": "***REMOVED SENSITIVE VALUE***",
    "syslog_tag": "nextcloud-nx80666",
    "maintenance_window_start": 19,
    "redis": {
        "host": "***REMOVED SENSITIVE VALUE***",
        "port": "6379",
        "timeout": "1.5",
        "dbindex": "0"
    },
    "filelocking.enabled": true,
    "memcache.locking": "\\OC\\Memcache\\Redis",
    "memcache.distributed": "\\OC\\Memcache\\Redis",
    "maintenance": false,
    "defaultapp": "",
    "mail_sendmailmode": "smtp",
    "mail_smtpport": "465",
    "mail_smtpauth": true,
    "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
    "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
    "app_install_overwrite": [],
    "memories.exiftool": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/exiftool-amd64-glibc",
    "memories.vod.path": "\/var\/www\/html\/custom_apps\/memories\/bin-ext\/go-vod-amd64",
    "twofactor_enforced": "false",
    "twofactor_enforced_groups": [],
    "twofactor_enforced_excluded_groups": [
        "Machines Gr\u00e9sy"
    ],
    "login_form_autocomplete": false,
    "trusted_domains": [
    ],
    "activity_use_cached_mountpoints": true
}
List of activated Apps
Enabled:
 - activity: 5.0.0
 - announcementbanner: 2.2.0
 - announcementcenter: 7.3.0
 - bruteforcesettings: 5.0.0
 - calendar: 6.2.1
 - camerarawpreviews: 0.8.8
 - circles: 32.0.0
 - comments: 1.22.0
 - contacts: 8.3.5
 - contactsinteraction: 1.13.1
 - dashboard: 7.12.0
 - deck: 1.16.3
 - external: 7.0.0
 - federation: 1.22.0
 - files_downloadlimit: 5.0.0-dev.0
 - files_external: 1.24.1
 - files_lock: 32.0.2
 - files_pdfviewer: 5.0.0
 - files_reminders: 1.5.0
 - files_sharing: 1.24.1
 - files_trashbin: 1.22.0
 - files_versions: 1.25.0
 - firstrunwizard: 5.0.0
 - forms: 5.2.5
 - groupfolders: 20.1.12
 - guests: 4.6.0
 - htmlviewer: 32.0.0
 - impersonate: 3.0.1
 - mail: 5.7.3
 - metadata: 0.23.0
 - news: 28.1.0
 - nextcloud_announcements: 4.0.0
 - notes: 4.13.1
 - notifications: 5.0.0
 - notify_push: 1.3.0
 - password_policy: 4.0.0
 - passwords: 2026.2.20
 - photos: 5.0.0
 - polls: 8.6.3
 - previewgenerator: 5.13.0
 - privacy: 4.0.0
 - quota_warning: 1.23.0
 - recommendations: 5.0.0
 - richdocuments: 9.0.5
 - secrets: 2.1.7
 - serverinfo: 4.0.0
 - sharebymail: 1.22.0
 - sharereview: 2.1.0
 - socialsharing_email: 4.0.1
 - spreed: 22.0.9
 - support: 4.0.0
 - suspicious_login: 10.0.0
 - systemtags: 1.22.0
 - tables: 1.0.5
 - text: 6.0.1
 - theming_customcss: 1.20.0
 - twofactor_admin: 4.11.0
 - twofactor_email: 2.8.5
 - twofactor_nextcloud_notification: 6.0.0
 - twofactor_totp: 14.0.0
 - updatenotification: 1.22.0
 - webhook_listeners: 1.3.0
 - whiteboard: 1.5.7
Disabled:
 - admin_audit
 - app_api: 5.0.2
 - encryption
 - logreader: 4.0.0
 - related_resources: 2.0.0
 - survey_client: 3.0.0
 - user_ldap
 - user_status: 1.11.0
 - weather_status: 1.11.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
Can be provided if necessary
Additional info

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The report provides no file, test, or code entry point. Start by reproducing the issue in a Nextcloud 32 installation using the listed search steps, then trace how the files search calculates the displayed total; done means the indicated size matches the total size of the items returned by the search.

Written by the indexing model from the issue text.

Assessment

Tech stack
php
Domain
full-stack
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.