Skip to content

[Bug]: After update 33.0.2 → 33.0.3, occ upgrade does not populate new MIME types — files download instead of opening in viewer #60129

@nkjf-de

Description

@nkjf-de

Steps to reproduce

  1. Update Nextcloud from 33.0.2 to 33.0.3 via occ upgrade
  2. Open any Office file (.docx, .xlsx, .pptx, .odt, etc.) in the Files app

Expected behavior

File opens in Nextcloud Office (richdocuments/Collabora)

Actual behavior

Browser immediately triggers a download dialog. Files are downloaded instead of opened.

Fix

Manually running the following commands resolves the issue:
php occ maintenance:mimetype:update-db
php occ maintenance:mimetype:update-js

Output: "Added 88 new mimetypes" — all missing after the 33.0.2 → 33.0.3 update.

Environment

Nextcloud: 33.0.2 → 33.0.3
richdocuments (Collabora): 10.1.3
viewer: 6.0.0
PHP OPcache: enabled (Apache)
DB: MySQL
Root cause
occ upgrade does not call maintenance:mimetype:update-db during the
33.0.2 → 33.0.3 patch migration. New MIME types added to mimetypemapping.json
in 33.0.3 are never written to the oc_mimetypes table, so Nextcloud cannot
route file opens to the correct viewer app — it falls back to a browser download.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions