Skip to content

[Bug]: Invalid tag ID error on search for system tag #59167

@lucs7

Description

@lucs7

nextcloud (4).log
localhost-1775557453764.log

nextcloud (4).log

nextcloud (4).log

⚠️ This issue respects the following points: ⚠️

Bug description

Search for system tag creates response "Unexpected error: Invalid tag ID"
This happens on a fresh docker instance and our current production setup
No log error but in console I get:

tags:1 Refused to apply style from 'http://[server address]/apps/files_versions/css/sidebar-tab.css?v=48e0d53e-0' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled. index.mjs:47 [ERROR] files: Error while fetching content Object log @ index.mjs:47 { "app": "files", "uid": "admin", "level": 2, "error": { "message": "Invalid tag ID", "stack": "Error: Invalid tag ID\n at eo.Je (http://[server address]/dist/systemtags-init.mjs?v=e0c5acf8-0:10:452)\n ", "level": 2, "uid": "admin" } }

Steps to reproduce

  1. Create collaborative tag
  2. Add tag to file
  3. Type tag in search
  4. Click on Tag search

Expected behavior

Find files with systemtag

Nextcloud Server version

33

Operating system

Debian/Ubuntu

PHP engine version

PHP 8.4

Web server

Apache (supported)

Database engine version

MariaDB

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

Fresh Nextcloud Server install

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

{
    "system": {
        "htaccess.RewriteBase": "\/",
        "memcache.local": "\\OC\\Memcache\\APCu",
        "apps_paths": [
            {
                "path": "\/var\/www\/html\/apps",
                "url": "\/apps",
                "writable": false
            },
            {
                "path": "\/var\/www\/html\/custom_apps",
                "url": "\/custom_apps",
                "writable": true
            }
        ],
        "upgrade.disable-web": true,
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "[server address]"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "33.0.0.16",
        "overwrite.cli.url": "http:\/\/[server address]",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "mysql.utf8mb4": true,
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true
    }
}

List of activated Apps

Enabled: 
  - activity: 6.0.0-dev.0
  - app_api: 33.0.0
  - bruteforcesettings: 6.0.0-dev.0
  - circles: 33.0.0
  - cloud_federation_api: 1.17.0
  - comments: 1.23.0
  - contactsinteraction: 1.14.1
  - dashboard: 7.13.0
  - dav: 1.36.0
  - federatedfilesharing: 1.23.0
  - federation: 1.23.0
  - files: 2.5.0
  - files_downloadlimit: 5.1.0-dev.0
  - files_pdfviewer: 6.0.0-dev.0
  - files_reminders: 1.6.0
  - files_sharing: 1.25.2
  - files_trashbin: 1.23.0
  - files_versions: 1.26.0
  - firstrunwizard: 6.0.0-dev.0
  - logreader: 6.0.0
  - lookup_server_connector: 1.21.0
  - nextcloud_announcements: 5.0.0
  - notifications: 6.0.0
  - oauth2: 1.21.0
  - password_policy: 5.0.0-dev.0
  - photos: 6.0.0-dev.0
  - privacy: 5.0.0-dev.0
  - profile: 1.2.0
  - provisioning_api: 1.23.0
  - recommendations: 6.0.0-dev.0
  - related_resources: 4.0.0-dev.0
  - serverinfo: 5.0.0-dev.0
  - settings: 1.16.0
  - sharebymail: 1.23.0
  - support: 5.0.0
  - survey_client: 5.0.0-dev.0
  - systemtags: 1.23.0
  - text: 7.0.0-dev.3
  - theming: 2.8.0
  - twofactor_backupcodes: 1.22.0
  - twofactor_totp: 15.0.0-dev.0
  - updatenotification: 1.23.0
  - user_status: 1.13.0
  - viewer: 6.0.0-dev.0
  - weather_status: 1.13.0
  - webhook_listeners: 1.5.0
  - workflowengine: 2.15.0
Disabled:
  - admin_audit: 1.23.0
  - encryption: 2.21.0
  - files_external: 1.25.1
  - suspicious_login: 11.0.0-dev.0
  - twofactor_nextcloud_notification: 7.0.0
  - user_ldap: 1.24.0

Nextcloud Signing status

No errors have been found.

Full console logLogs

tags:1 Refused to apply style from 'http://localhost/apps/files_versions/css/sidebar-tab.css?v=31c10ffd-0' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
index.mjs:38 [DEBUG] files: Templates folder enabled Object
index.mjs:38 [DEBUG] files: Initial templates folder Object
index.mjs:38 [DEBUG] @nextcloud/files: New sidebar action with id "files-favorite" registered. Object
index.mjs:38 [DEBUG] @nextcloud/files: New sidebar tab with id "files_versions" registered. Object
index.mjs:38 [DEBUG] @nextcloud/files: New sidebar action with id "systemtags" registered. Object
index.mjs:41 [INFO] activity: Activity API registered Object
index.mjs:44 [WARN] viewer: Some mimes were ignored because they are not enabled in the server previews config Object
log @ index.mjs:44
index.mjs:38 [DEBUG] viewer: OCA.Viewer initialized Object
index.mjs:38 [DEBUG] core: Unified search initialized! Object
index.mjs:38 [DEBUG] files: OCA.Files.Settings initialized Object
index.mjs:38 [DEBUG] files: Register hotkey for action "delete" Object
index.mjs:38 [DEBUG] files: Register hotkey for action "favorite" Object
index.mjs:38 [DEBUG] files: Register hotkey for action "rename" Object
index.mjs:38 [DEBUG] files: Register hotkey for action "details" Object
index.mjs:38 [DEBUG] files: Register hotkey for action "systemtags:bulk" Object
index.mjs:38 [DEBUG] files: Hotkeys registered Object
index.mjs:38 [DEBUG] files: Setting active view Object
index.mjs:38 [DEBUG] files: Route view id tags is different from active view id undefined, updating active view... Object
index.mjs:38 [DEBUG] files: Setting active view Object
index.mjs:38 [DEBUG] files: New file list filter registered Object
index.mjs:38 [DEBUG] files: New file list filter registered Object
index.mjs:38 [DEBUG] files: New file list filter registered Object
index.mjs:38 [DEBUG] files: New file list filter registered Object
index.mjs:38 [DEBUG] files: New file list filter registered Object
index.mjs:38 [DEBUG] @nextcloud/upload: Destination set Object
index.mjs:38 [DEBUG] @nextcloud/upload: Upload workspace initialized Object
index.mjs:38 [DEBUG] files: Mounted note-to-recipient FilesListHeader Object
index.mjs:38 [DEBUG] files: Mounted workspace FilesListHeader Object
index.mjs:38 [DEBUG] files: Fetching contents for directory Object
index.mjs:38 [DEBUG] files_sharing: OCA.Sharing.ShareSearch initialized Object
index.mjs:38 [DEBUG] files_sharing: OCA.Sharing.ExternalShareActions initialized Object
index.mjs:38 [DEBUG] @nextcloud/files: New sidebar tab with id "sharing" registered. Object
index.mjs:38 [DEBUG] @nextcloud/files: FileListHeaders initialized Object
index.mjs:38 [DEBUG] @nextcloud/files: New sidebar tab with id "activity" registered. Object
index.mjs:38 [DEBUG] comments: OCA.Comments.View initialized Object
index.mjs:41 [INFO] files: Initializing unified search plugin: folder search from files app Object
index.mjs:41 [INFO] viewer: 5 viewer handlers registered Object
index.mjs:41 [INFO] core: session heartbeat polling started Object
index.mjs:44 [WARN] @nextcloud/vue: You need to fill either the text or the ariaLabel props in the button component. Object
log @ index.mjs:44
index.mjs:44 [WARN] @nextcloud/vue: You need to fill either the text or the ariaLabel props in the button component. Object
log @ index.mjs:44
index.mjs:38 [DEBUG] core: Running web cron Object
index.mjs:38 [DEBUG] activity: Registered new sidebar action Object
index.mjs:38 [DEBUG] activity: Registered new sidebar actions factory Object
index.mjs:41 [INFO] comments: Comments plugin registered for Activity sidebar action Object
index.mjs:38 [DEBUG] files: VirtualList: resizeObserver updated Object
index.mjs:38 [DEBUG] files: Rendered note-to-recipient FilesListHeader Object
index.mjs:38 [DEBUG] core: Web cron successfull Object
index.mjs:38 [DEBUG] core: this browser is officially supported ! 🚀 Object
index.mjs:38 [DEBUG] files: Generating favorites view Object
index.mjs:38 [DEBUG] files: Rendered workspace FilesListHeader Object
NotificationsApp.vue:461 Notifications require HTTPS
NotificationsApp.vue:412 Polling interval updated to 30000
NotificationsApp.vue:279 Started background fetcher as session_keepalive is enabled
index.mjs:47 [ERROR] files: Error while fetching content Object
log @ index.mjs:47
NotificationsApp.vue:368 Got notification data, restoring default polling interval.
index.mjs:38 [DEBUG] files: SW registered:  Object
tags:1 Refused to apply style from 'http://localhost/apps/files_versions/css/sidebar-tab.css?v=31c10ffd-0' because its MIME type ('text/html') is not a supported stylesheet MIME type, and strict MIME checking is enabled.
core-common.js?v=7de03629-0:1 [Violation] 'setTimeout' handler took 71ms
[Violation] Forced reflow while executing JavaScript took 70ms
VirtualList.vue:189 [DEBUG] files: VirtualList: resizeObserver updated {app: 'files', uid: 'admin', level: 0}
[Violation] Forced reflow while executing JavaScript took 42ms
VirtualList.vue:189 [DEBUG] files: VirtualList: resizeObserver updated {app: 'files', uid: 'admin', level: 0}
[Violation] Forced reflow while executing JavaScript took 32ms
VirtualList.vue:189 [DEBUG] files: VirtualList: resizeObserver updated {app: 'files', uid: 'admin', level: 0}

Nextcloud Logs

nextcloud (4).log

Additional info

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    Status

    Triaged

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions