Skip to content

With formvox enabled, mimetypes are broken in my installation #12

@Ascendor

Description

@Ascendor

How to use GitHub

  • Please use the 👍 reaction to show that you are affected by the same issue.
  • Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
  • Subscribe to receive notifications on status change and new comments.

Steps to reproduce

  1. Activate formvox
  2. Upload an image file
  3. Find the image file in the files view
  4. Notice, that it does not have a thumbnail
  5. Click on the image and see that it doesn't load in browser, but downloads instead

Expected behaviour

The files should be rendered in browser and should receive a thumbnail. That happens, when the mime type is recognized correctly.

Actual behaviour

The image doesn't load in browser, but downloads instead

Image

Server configuration

Web server: Apache/Nginx
Apache 2.4.66

Database: MySQL/Maria/SQLite/PostgreSQL
MariaDB
PHP version: 8.2/8.3/8.4
8.3

Nextcloud version: (see Nextcloud admin page)
32.0.6

List of activated apps
activity: 5.0.0
admin_audit: 1.22.0
app_api: 32.0.0
bruteforcesettings: 5.0.0
calendar: 6.2.1
circles: 32.0.0
cloud_federation_api: 1.16.0
comments: 1.22.0
contacts: 8.3.4
contactsinteraction: 1.13.1
dashboard: 7.12.0
dav: 1.34.2
deck: 1.16.3
federatedfilesharing: 1.22.0
federation: 1.22.0
files: 2.4.0
files_downloadlimit: 5.0.0-dev.0
files_external: 1.24.1
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.4
formvox: 0.2.11
geoblocker: 0.5.19
gpoddersync: 3.16.0
logreader: 5.0.0
lookup_server_connector: 1.20.0
memories: 7.8.2
nextcloud_announcements: 4.0.0
nextpod: 0.7.10
notifications: 5.0.0
oauth2: 1.20.0
password_policy: 4.0.0
photos: 5.0.0
privacy: 4.0.0
profile: 1.1.0
provisioning_api: 1.22.0
recommendations: 5.0.0
related_resources: 3.0.0
richdocuments: 9.0.3
richdocumentscode: 25.4.902
serverinfo: 4.0.0
settings: 1.15.1
sharebymail: 1.22.0
spreed: 22.0.9
support: 4.0.0
survey_client: 4.0.0
systemtags: 1.22.0
tasks: 0.17.1
text: 6.0.1
theming: 2.7.0
twofactor_backupcodes: 1.21.0
twofactor_nextcloud_notification: 6.0.0
twofactor_totp: 14.0.0
updatenotification: 1.22.0
user_status: 1.12.0
viewer: 5.0.0
weather_status: 1.12.0
webhook_listeners: 1.3.0
workflowengine: 2.14.0
Nextcloud configuration
{
    "system": {
        "instanceid": "***REMOVED SENSITIVE VALUE***",
        "passwordsalt": "***REMOVED SENSITIVE VALUE***",
        "trusted_domains": [
            ***REMOVED***
        ],
        "datadirectory": "***REMOVED SENSITIVE VALUE***",
        "dbtype": "mysql",
        "version": "32.0.6.1",
        "dbname": "***REMOVED SENSITIVE VALUE***",
        "dbhost": "***REMOVED SENSITIVE VALUE***",
        "dbtableprefix": "oc_",
        "dbuser": "***REMOVED SENSITIVE VALUE***",
        "dbpassword": "***REMOVED SENSITIVE VALUE***",
        "installed": true,
        "forcessl": true,
        "mail_smtpmode": "smtp",
        "mail_smtpsecure": "",
        "mail_from_address": "***REMOVED SENSITIVE VALUE***",
        "mail_domain": "***REMOVED SENSITIVE VALUE***",
        "mail_smtphost": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpport": "587",
        "mail_smtpname": "***REMOVED SENSITIVE VALUE***",
        "mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
        "mail_smtpauth": true,
        "mail_smtpauthtype": "PLAIN",
        "mail_smtpdebug": false,
        "mail_smtptimeout": 10,
        "mail_send_plaintext_only": false,
        "mail_smtpstreamoptions": [],
        "mail_sendmailmode": "smtp",
        "theme": "",
        "maintenance": false,
        "loglevel": 2,
        "loglevel_frontend": 2,
        "loglevel_dirty_database_queries": 0,
        "logfile": "\/var\/log\/nextcloud\/nextcloud.log",
        "logfile_audit": "\/var\/log\/nextcloud\/nextcloud-audit.log",
        "logfilemode": 416,
        "syslog_tag": "Nextcloud",
        "syslog_tag_audit": "Nextcloud",
        "log.backtrace": false,
        "logdateformat": "F d, Y H:i:s",
        "logtimezone": "Europe\/Berlin",
        "log_query": false,
        "db.log_request_id": false,
        "log_rotate_size": 104857600,
        "profiler": false,
        "secret": "***REMOVED SENSITIVE VALUE***",
        "trashbin_retention_obligation": "auto",
        "versions_retention_obligation": "auto",
        "updatechecker": true,
        "appstore.experimental.enabled": true,
        "overwrite.cli.url": "https:\/\/donain\/nextcloud",
        "filelocking.enabled": true,
        "memcache.local": "\\OC\\Memcache\\APCu",
        "memcache.locking": "\\OC\\Memcache\\APCu",
        "redis": {
            "host": "***REMOVED SENSITIVE VALUE***",
            "port": 6379
        },
        "web.baseUrl": "https:\/\/domain\/nextcloud\/index.php\/apps\/web",
        "web.rewriteLinks": true,
        "defaultapp": "files",
        "allow_user_to_change_mail_address": true,
        "allow_user_to_change_display_name": true,
        "updater.release.channel": "stable",
        "mysql.utf8mb4": true,
        "default_phone_region": "DE",
        "default_language": "de",
        "default_locale": "de_DE",
        "default_timezone": "Europe\/Berlin",
        "maintenance_window_start": 4,
        "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"
        ],
        "knowledgebase.embedded": true,
        "remember_login_cookie_lifetime": 1296000,
        "session_lifetime": 86400,
        "session_relaxed_expiry": true,
        "session_keepalive": true,
        "auto_logout": false,
        "davstorage.request_timeout": 30,
        "carddav_sync_request_timeout": 30,
        "token_auth_enforced": false,
        "token_auth_activity_update": 60,
        "auth.bruteforce.protection.enabled": true,
        "auth.bruteforce.protection.force.database": false,
        "auth.bruteforce.protection.testing": false,
        "ratelimit.protection.enabled": true,
        "auth.webauthn.enabled": true,
        "auth.storeCryptedPassword": true,
        "hide_login_form": false,
        "overwritehost": "",
        "overwriteprotocol": "https",
        "overwritewebroot": "\/nextcloud",
        "overwritecondaddr": "",
        "htaccess.RewriteBase": "\/nextcloud",
        "proxy": "",
        "proxyuserpwd": "***REMOVED SENSITIVE VALUE***",
        "proxyexclude": [],
        "allow_local_remote_servers": true,
        "appcodechecker": true,
        "has_internet_connection": true,
        "connectivity_check_domains": [
            "www.nextcloud.com",
            "www.startpage.com",
            "www.eff.org",
            "www.edri.org"
        ],
        "check_for_working_wellknown_setup": true,
        "check_for_working_htaccess": true,
        "check_data_directory_permissions": true,
        "appstoreenabled": true,
        "app_install_overwrite": [
            "gpgmailer"
        ],
        "memories.db.triggers.fcu": true,
        "enabledPreviewProviders": [],
        "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"
    }
}

Browser

Browser name: Firefox/Chrome/Safari/…
Tested Firefox, Brave and Edge

Browser version: 124/125/…
Firefox (current version)
Brave Android 1.87.192
Edge 145.0.3800.82
Operating system: Windows/Ubuntu/Mac/…

Browser log
Network: Loading https://domain/nextcloud/core/preview?fileId=97206&x=32&y=32&mimeFallback=true&v=6b4ef8&a=0 results in a 303 redirect to: /nextcloud/core/img/filetypes/file.svg for all files

Console:
Warnungen zu Content-Security-Policy 2
Content-Security-Policy: Ignorieren von "blob:" innerhalb script-src-elem: 'strict-dynamic' angegeben 97110
Content-Security-Policy: 'unsafe-eval' oder 'wasm-unsafe-eval' innerhalb "script-src-elem" wird ignoriert. 97110
[WARN] viewer: Some mimes were ignored because they are not enabled in the server previews config 
Object { app: "viewer", uid: "Alex", level: 2, ignoredMimes: (4) […] }
previewUtils-BWqM5-N0.chunk.mjs:14:366
OCA.Files.Settings initialized files-main.js:1:592352
OCA.Files.Sidebar initialized files-sidebar.js:1:27525
OCA.Sharing.ShareSearch initialized files_sharing-files_sharing_tab.js:1:794
Setting current user talk-files-sidebar.js:193:8269
OCA.Comments.View initialized comments-comments-app.js:1:20376
Initializing unified search plugin-filters from talk talk-search.js:1:178934
Notifications permissions granted NotificationsApp-hrGoV45R.chunk.mjs:2:326991
Polling interval updated to 30000 NotificationsApp-hrGoV45R.chunk.mjs:2:326422
Started background fetcher as session_keepalive is enabled NotificationsApp-hrGoV45R.chunk.mjs:2:323582
Got notification data, restoring default polling interval. NotificationsApp-hrGoV45R.chunk.mjs:2:325377

Metadata

Metadata

Assignees

No one assigned

    Labels

    0. Needs triagePending approval or rejectionbugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions