Update NC 34.0.3 to 34.0.4 makes my collaborative tags editor broken and unusable

Support intro

Sorry to hear you’re facing problems. :slightly_frowning_face:

The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.

If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.

Getting help

In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.

Before clicking submit: Please check if your query is already addressed via the following resources:

(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).

Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. :heart:

The Basics

  • Nextcloud Server version (e.g., 29.x.x):
    • 34.0.4
  • Operating system and version (e.g., Ubuntu 24.04):
    • ubuntu server 24.04.5
  • Web server and version (e.g, Apache 2.4.25):
    • nginx
  • Reverse proxy and version _(e.g. nginx 1.27.2)
    • nginx
  • PHP version (e.g, 8.3):
    • 8.4
  • Is this the first time you’ve seen this error? (Yes / No):
    • No
  • When did this problem seem to first start?
    • in older versions (29, 30 ?!?) - had been solved meanwhile but is back now with 34.0.4
  • Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
    • Bare Metal
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

see my github issue

Steps to replicate it (hint: details matter!):

  1. after update to NC 34.0.4 go to admin panel

  2. open the basic settings menue

  3. scrol down to collaborative tags

  4. open the list of all your collaborative tags

  5. remark that you only can see a list of the first five entries

  6. try to tag a file or a folder - remark that you now can see the whole list of your tags

  7. try to apply a collaborative tag with a higher ranking than the first five entries (admin panel list)

  8. get an error that the tag can not be applied

  9. try another one of one of the first five

  10. see that it works as expected

Log entries

Nextcloud

Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.

sadly no errors for tags in the logs

Web Browser

If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.

tried firefox with blank cache instead of my standard browser but with no difference

Web server / Reverse Proxy

The output of your Apache/nginx/system log in /var/log/____:

no entries so far

Configuration

Nextcloud

The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):

{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "serverid": "55",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            "192.168.55.16",
            "cloud.my.domain",
            "euo.my.domain"
        ],
        "has_internet_connection": true,
        "dns_pinning": false,
        "activity_expire_days": 14,
        "auth.bruteforce.protection.enabled": true,
        "forbidden_filenames": [
            ".htaccess",
            "Thumbs.db",
            "thumbs.db"
        ],
        "forbidden_filename_basenames": [
            "con",
            "prn",
            "aux",
            "nul",
            "com0",
            "com1",
            "com2",
            "com3",
            "com4",
            "com5",
            "com6",
            "com7",
            "com8",
            "com9",
            "com\u00b9",
            "com\u00b2",
            "com\u00b3",
            "lpt0",
            "lpt1",
            "lpt2",
            "lpt3",
            "lpt4",
            "lpt5",
            "lpt6",
            "lpt7",
            "lpt8",
            "lpt9",
            "lpt\u00b9",
            "lpt\u00b2",
            "lpt\u00b3"
        ],
        "forbidden_filename_characters": [
            "<",
            ">",
            ":",
            "\"",
            "|",
            "?",
            "*",
            "\\",
            "\/"
        ],
        "forbidden_filename_extensions": [
            " ",
            ".",
            ".filepart",
            ".part"
        ],
        "trusted_proxies": "***REMOVED SENSITIVE VALUE***",
        "overwritehost": "cloud.my.domain",
        "overwriteconaddr": "^192\\.168\\.55\\.90$",
        "overwriteprotocol": "https",
        "forward_for_headers": [
            "X-Forwarded-For",
            "HTTP_X_FORWARDED_FOR"
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "updatedirectory": "\/home\/www-data\/nextcloud\/updater",
        "upgrade.disable-web": true,
        "overwrite.cli.url": "https:\/\/cloud.my.domain",
        "dbtype": "pgsql",
        "version": "34.0.4.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbport": "",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "htaccess.RewriteBase": "\/",
        "logtimezone": "Europe\/Berlin",
        "default_phone_region": "DE",
        "logfile": "\/mnt\/cloud\/data\/nextcloud.log",
        "log_rotate_size": 10485760,
        "cron_log": true,
        "loglevel": 2,
        "0": "logdateformat\" => \"F d, Y H:i:s",
        "installed": true,
        "filesystem_check_changes": 1,
        "quota_include_external_storage": false,
        "skeletondirectory": "",
        "share_folder": "\/Freigaben",
        "knowledgebaseenabled": false,
        "ldapIgnoreNamingRules": false,
        "ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
        "ldapUserCleanupInterval": 20,
        "bulkupload.enabled": false,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.distributed": "\\OC\\Memcache\\Redis",
        "filelocking.enabled": "true",
        "memcache.locking": "\\OC\\Memcache\\Redis",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 0,
            "timeout": 0
        },
        "mail_smtpmode": "sendmail",
        "mail_smtpsecure": "ssl",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "465",
        "mail_smtptimeout": 10,
        "mail_smtpauth": 0,
        "mail_smtpauthtype": "LOGIN",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "maintenance": false,
        "integrity.check.disabled": false,
        "updater.release.channel": "stable",
        "enable_previews": true,
        "preview_Movie_path": "\/usr\/bin\/ffmpeg",
        "preview_ffmpeg_path": "\/usr\/bin\/ffmpeg",
        "enabledPreviewProviders": [
            "OC\\Preview\\PNG",
            "OC\\Preview\\JPEG",
            "OC\\Preview\\GIF",
            "OC\\Preview\\BMP",
            "OC\\Preview\\XBitmap",
            "OC\\Preview\\Movie",
            "OC\\Preview\\PDF",
            "OC\\Preview\\TXT",
            "OC\\Preview\\MarkDown",
            "OC\\Preview\\HEIC",
            "OC\\Preview\\OpenDocument",
            "OC\\Preview\\MSOffice2003",
            "OC\\Preview\\MSOfficeDoc",
            "OC\\Preview\\Image",
            "OC\\Preview\\Photoshop",
            "OC\\Preview\\SVG",
            "OC\\Preview\\Font",
            "OC\\Preview\\MKV",
            "OC\\Preview\\MP4",
            "OC\\Preview\\AVI",
            "OC\\Preview\\TIFF"
        ],
        "imaginary_process_documents": false,
        "preview_max_x": 2048,
        "preview_max_y": 2048,
        "preview_max_memory": 4096,
        "preview_max_filesize_image": 256,
        "preview_max_scale_factor": 1,
        "trashbin_retention_obligation": "auto, 2",
        "mail_sendmailmode": "smtp",
        "data-fingerprint": "FINGERPRINT",
        "eurooffice": {
            "DocumentServerUrl": "https:\/\/euo.my.domain\/",
            "verify_peer_off": true,
            "jwt_header": "Authorization",
            "jwt_secret": "***REMOVED SENSITIVE VALUE***"
        },
        "encryption.legacy_format_support": false,
        "encryption.key_storage_migrated": false,
        "defaultapp": "dashboard",
        "theme": "",
        "allow_local_remote_servers": true,
        "files_external_allow_create_new_local": true,
        "simpleSignUpLink.shown": false,
        "memories.exiftool": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/exiftool-amd64-glibc",
        "memories.vod.path": "\/var\/www\/nextcloud\/apps\/memories\/bin-ext\/go-vod-amd64",
        "memories.vod.ffmpeg": "\/usr\/bin\/ffmpeg",
        "memories.vod.ffprobe": "\/usr\/bin\/ffprobe",
        "session_keepalive": true,
        "maintenance_window_start": 1,
        "memories.db.triggers.fcu": true,
        "memories.gis_type": 2,
        "memories.index.path.blacklist": ".*\\\/Uploads.*",
        "files.chunked_upload.max_size": 0,
        "memories.vod.disable": false,
        "app_install_overwrite": [],
        "twofactor_enforced": "true",
        "twofactor_enforced_groups": [
            "admin"
        ],
        "twofactor_enforced_excluded_groups": [
            "Familie",
            "Mediathek_Benutzer",
            "Dom\u00e4nen-Benutzer",
            "Mediathek_Gast",
            "Gast",
            "Mediathek_Admin"
        ]
    }
}

Apps

The output of occ app:list (if possible).

Enabled:
  - activity: 7.0.0
  - admin_audit: 1.24.0
  - app_api: 34.0.0
  - appstore: 1.0.0
  - bookmarks: 16.2.7
  - bruteforcesettings: 7.0.0
  - calendar: 6.5.4
  - circles: 34.0.0
  - cloud_federation_api: 1.18.0
  - comments: 1.24.0
  - contacts: 8.9.0
  - contactsinteraction: 1.15.0
  - dashboard: 7.14.0
  - dav: 1.40.0
  - eurooffice: 11.0.5
  - federatedfilesharing: 1.24.0
  - federation: 1.24.0
  - files: 2.6.0
  - files_accesscontrol: 5.0.0
  - files_automatedtagging: 5.0.0
  - files_downloadlimit: 5.2.0
  - files_external: 1.26.0
  - files_fulltextsearch: 34.0.1
  - files_lock: 34.0.1
  - files_pdfviewer: 7.0.0
  - files_reminders: 1.7.0
  - files_sharing: 1.26.0
  - files_versions: 1.27.0
  - fulltextsearch: 34.0.2
  - fulltextsearch_elasticsearch: 34.0.1
  - gpxpod: 8.3.1
  - groupfolders: 22.0.6
  - integration_immich: 1.5.1
  - logreader: 7.0.0
  - lookup_server_connector: 1.22.0
  - nextcloud_announcements: 6.0.0
  - notes: 6.1.0
  - notifications: 7.0.0-dev.1
  - notify_push: 1.4.1
  - oauth2: 1.22.0
  - office: 1.0.0
  - password_policy: 6.0.0-dev.0
  - photos: 7.0.0
  - previewgenerator: 5.14.0
  - privacy: 6.0.0-dev.1
  - profile: 1.3.0
  - provisioning_api: 1.24.0
  - related_resources: 5.0.0-dev.0
  - serverinfo: 6.0.0
  - settings: 1.17.0
  - sharebymail: 1.24.0
  - support: 6.0.0
  - suspicious_login: 12.0.0-dev.0
  - systemtags: 1.24.0
  - tasks: 0.18.1
  - text: 8.0.0
  - theming: 2.9.0
  - theming_customcss: 1.22.0
  - twofactor_backupcodes: 1.23.0
  - twofactor_totp: 16.0.0
  - twofactor_webauthn: 2.7.1
  - updatenotification: 1.24.0
  - user_ldap: 1.25.0
  - user_status: 1.14.0
  - viewer: 7.0.0-dev.0
  - weather_status: 1.14.0
  - webhook_listeners: 1.6.0
  - workflowengine: 2.16.0
Disabled:
  - encryption: 2.22.0 (installed 2.3.0)
  - files_trashbin: 1.24.0 (installed 1.18.0)
  - firstrunwizard: 7.0.0-dev.0 (installed 2.3.0)
  - recommendations: 7.0.0 (installed 1.3.0)
  - survey_client: 6.0.0-dev.0 (installed 1.2.0)
  - testing: 1.23.0
  - twofactor_nextcloud_notification: 8.0.0

Tips for increasing the likelihood of a response

  • Use the preformatted text formatting option in the editor for all log entries and configuration output.
  • If screenshots are useful, feel free to include them.
    • If possible, also include key error output in text form so it can be searched for.
  • Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.

As mentioned on github, there were two different problems.

Actually i missed that the ability to apply tags and the missing complete list of all tags in the admin panel are not concerned!

Never the less the most important bug - that users and i were not able to apply tags to files and folders has been fixed.

Steps to reproduce (if someone has the same prob…)

  1. go to your nextcloud root
    in my case
    cd /var/www/nextcloud

  2. download the needed diff file for patching
    wget https://github.com/nextcloud/server/pull/64560.diff

  3. the 64560.diff file actually request to have two files
    apps/dav/lib/SystemTag/SystemTagPlugin.php
    apps/dav/lib/SystemTag/SystemTagPluginTest.php

  4. i don’t need (don’t have) the apps/dav/lib/SystemTag/SystemTagPluginTest.php file so i modified the 64560.diff file as follows…

  5. awk ' /^diff --git a\/apps\/dav\/tests\/unit\/SystemTag\/SystemTagPluginTest.php/ {exit} {print} ' 64560.diff > 64560-prod.diff

that should produce a 64560-prod.diff that only concentrates on apps/dav/lib/SystemTag/SystemTagPlugin.php

  1. before i began to patch i set my NC to maintance mode

sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on

  1. then checked if errors occur

patch --dry-run -p1 < 64560-prod.diff

  1. if all is well

patch -p1 < 64560-prod.diff

  1. set my nextcloud back to productive mode

sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --off

I rebooted my NC server once again.
I am able to apply tags again to files and folders as expected.
The fix for the admin panel → … → editing tags in the collaborative tags section seems to follow as well but has not yet been backported for now.

I’m experiencing the same problem.

I didn’t notice it at first because it some does still work, but after it worked once you can’t add or remove tags anymore.