Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firefox open problem with Uncaught DOMException: The operation is insecure. sdk-all-min.js:1256 #1549

Closed
ischiros opened this issue Nov 23, 2021 · 13 comments
Labels
help wanted Issues that need assistance from volunteers

Comments

@ischiros
Copy link

Hello,
For a few days now, it's been impossible for me to open .docx .xlsx .odt and .ods documents with Firefox.
I have an error message saying "Une erreur s’est produite lors de l’ouverture du fichier" (aka "An error occured during the file opening") :
Capture d’écran 2021-11-23 à 10 34 20

I use Nextcloud 22.1.1, OnlyOffice 7.2.0 and Firefox 94.0.1
With another browser (Safari or Chrome), there is no error.

@lepus2589
Copy link

This happens for me, too. I don't get an error message, but the document editor gets stuck on "Loading Document..."

Nextcloud 22.2.2 Enterprise, OnlyOffice 6.4.2, Firefox 96.0b2, Mac OS X

Browser console shows this:

Uncaught TypeError: sf.o0b is not a function
    <anonymous> https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:38
    <anonymous> https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:38
    <anonymous> https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:38
    <anonymous> https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:38
fonts.js:38:265
Uncaught (in promise) TypeError: Ia.AscFonts.o0b is not a function
    el https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:19
    be https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:10
    fh https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:14
    qd https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:14
    Yg https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:32
    fh https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:24
    Yg https://<redacted domain>/6.4.2-6/sdkjs/common/libfont/wasm/fonts.js:24
fonts.js:19:102

@ShockwaveNN
Copy link
Contributor

Hi @ischiros and @lepus2589

I think that your cases are similar, but root case of your problem may be different, so I need some investigation

About @ischiros
Could you clarify version of DocumentServer and installation method, because OnlyOffice 7.2.0 is version of connect
Does this error only happens in firefox or in any browser
Is there any error in browser JS console and if there any error in logs on backed (/var/log/onlyoffice/documentserver)

About
@lepus2589

I think it's better to create a new issue at DocumentServer repo with anserwer to my questions
Your errors somehow is related to fonts, so

  1. Do you added new fonts to DocumentServer
  2. Does this error happens only in firefox
  3. Have you had cleaned firefox cache if you've added new fonts before. Does this error happens in incognito mode

@ischiros
Copy link
Author

Hello,

About @ischiros Could you clarify version of DocumentServer and installation method, because OnlyOffice 7.2.0 is version of connect Does this error only happens in firefox or in any browser Is there any error in browser JS console and if there any error in logs on backed (/var/log/onlyoffice/documentserver)

I don't understand your question.
I have 3 managed versions of Nextcloud+OnlyOffice. I didn't install them myself, but I have admin access to them. How can I check this ?
It happens only in Firefox. Safari and Chrome are fine. And the problem is still there in Firefox 95 (I've updated today).

@ShockwaveNN
Copy link
Contributor

How can I check this ?

First of all we need installation method, version and host os
Is it rpm\deb\docker?

@ischiros
Copy link
Author

How can I check this ?

First of all we need installation method, version and host os Is it rpm\deb\docker?

I have no idea. As I told you, I didn't install it. I've asked to hoster.

And I forgot to answer to your other questions :

Does this error only happens in firefox or in any browser

Only in Firefox

Is there any error in browser JS console

There is this :
Uncaught DOMException: The operation is insecure. sdk-all-min.js:1256

if there any error in logs on backed (/var/log/onlyoffice/documentserver)

I don't know how to check this.

@ShockwaveNN
Copy link
Contributor

I'm sorry, but without info about version, installation method and if new fonts were added I don't think we could provide any help, this information is crucial

Maybe your admin team will comment it here?

@ischiros
Copy link
Author

Yes, that's what I've said :

I've asked to hoster.

@ShockwaveNN ShockwaveNN transferred this issue from ONLYOFFICE/onlyoffice-nextcloud Dec 13, 2021
@ShockwaveNN
Copy link
Contributor

Ok, waiting for theirs reply

I've moved this issue to DocumentServer repo, since seems it has nothing to do with nextcloud

@ShockwaveNN ShockwaveNN changed the title Impossible to open documents with Firefox Firefox open problem with Uncaught DOMException: The operation is insecure. sdk-all-min.js:1256 Dec 13, 2021
@ShockwaveNN
Copy link
Contributor

And to be clear - is this issue reproduces on Firefox in incognito mode?

@ischiros
Copy link
Author

And to be clear - is this issue reproduces on Firefox in incognito mode?

Yes, it is reproduced.

@ShockwaveNN
Copy link
Contributor

I think it may be related to some incorrect configs or broken font install process (which done on backend) so I'll wait until your admins contact us

@ShockwaveNN ShockwaveNN added the help wanted Issues that need assistance from volunteers label Dec 15, 2021
@ischiros
Copy link
Author

ischiros commented Jan 6, 2022

Hello,

Solution found !
The problem was caused by the third-party cookies, blocked by Firefox.
To solve it, I disabled Firefox advanced protection for our Nextcloud server. Cf attached.
Capture d’écran 2022-01-06 à 18 42 08

I guess something changed in Onlyoffice behaviour, because I've had these settings in Firefox for years now.

@ischiros ischiros closed this as completed Jan 6, 2022
@ShockwaveNN
Copy link
Contributor

ShockwaveNN commented Jan 7, 2022

@ischiros Thanks for your feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Issues that need assistance from volunteers
Projects
None yet
Development

No branches or pull requests

3 participants