contacts icon indicating copy to clipboard operation
contacts copied to clipboard

contacts-index.css blocked due to MIME type (“text/html”) mismatch

Open melroy89 opened this issue 1 year ago • 2 comments

Describe the bug

Incorrect, missing contacts-index.css file when on the files tab when using Nextcloud 30.

The resource from “https://cloud.melroy.org/apps/contacts/css/contacts-index.css?v=1b4503c0-5” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). files

When I visit t his css file, I got redirect to: https://cloud.melroy.org/apps/contacts/All%20contacts/4af1a2e9-c232-4fd9-8c12-62ff515bed78~default. And it shows me:

Error: page.tabs[tab.id] is undefined undefined

Followed by: group css not found

As well as:

Error: Debounced method called with different contexts.
    d https://cloud.melroy.org/apps/contacts/js/index-BYtwKcsR.chunk.mjs:2
    mounted https://cloud.melroy.org/apps/contacts/js/contacts-main.mjs?v=305544fb-5:3
    qt https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    It https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    insert https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    bt https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    _l https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    _update https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    r https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    get https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    run https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    tf https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    Kn https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
    hn https://cloud.melroy.org/apps/contacts/js/index-b2_Rf36J.chunk.mjs:2
index-b2_Rf36J.chunk.mjs:2:26700

Steps to reproduce

  1. Go to "Files" tab in Nextcloud v30 (Hub 9)
  2. Look at the console output
  3. See error:
The resource from “https://cloud.melroy.org/apps/contacts/css/contacts-index.css?v=1b4503c0-5” was blocked due to MIME type (“text/html”) mismatch (X-Content-Type-Options: nosniff). files

Expected behavior

No errors in the log.

Actual behavior

Error above.

Contact version

6.1.0

Operating system

Ubuntu Server

PHP engine version

8.3

Web server

Nginx

Database

MariaDB

Additional info

image

0 bytes? Response is indeed empty.

image

But even more JS issues as well.. image

melroy89 avatar Sep 16 '24 13:09 melroy89

Hi, I have the same problem, and nothing show in contacts page. Any idea how fix it?

meavric avatar Sep 25 '24 13:09 meavric

Nope. No workaround possible. They should just fix this issue in their code.

melroy89 avatar Sep 25 '24 14:09 melroy89