Error after upgrading to onlyoffice-documentserver 6.3.0-111

Hey there,

after upgrading onlyoffice-documentserver from 6.2.2-21 to 6.3.0-111, opening documents in Nextcloud fails with an error. The documentserver docservice log shows the following:

[2021-05-21T10:47:12.032] [ERROR] nodeJS - changesError: docId = 3758304259 Error: SecurityError: The operation is insecure. Script: https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js Line: 1291:0 userAgent: Mozilla/5.0 (X11; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0 platform: Linux x86_64 isLoadFullApi: true isDocumentLoadComplete: false StackTrace: MJ@https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js:1291:1
ud.prototype.tvf@https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js:859:16
ud.prototype.Yue/this.El.fNa@https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js:850:111
ud.prototype.ESd@https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js:160:154
ud.prototype.pe/this.Nl.fNa@https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js:153:103
ke.prototype.Jxf@https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js:177:430
ke.prototype.mxf@https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js:182:400
ke.prototype.Cxf@https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js:187:298
ke.prototype.yNd/He.onmessage@https://office1.example.org/6.3.0-111/sdkjs/word/sdk-all-min.js:187:51
[5]</r.prototype.dispatchEvent@https://office1.example.org/6.3.0-111/web-apps/vendor/sockjs/sockjs.min.js:2:2901
[14]</</r.prototype._transportMessage/<@https://office1.example.org/6.3.0-111/web-apps/vendor/sockjs/sockjs.min.js:2:12862
[14]</</r.prototype._transportMessage@https://office1.example.org/6.3.0-111/web-apps/vendor/sockjs/sockjs.min.js:2:12840
[3]</r.prototype.emit@https://office1.example.org/6.3.0-111/web-apps/vendor/sockjs/sockjs.min.js:2:1767
r/this.ws.onmessage@https://office1.example.org/6.3.0-111/web-apps/vendor/sockjs/sockjs.min.js:3:4926

I also upgraded the onlyoffice Nextcloud app (to 7.0.2) recently, maybe that’s related as well.

Did anybody else spot a similar issue? Any idea how to resolve it?

Ok, seems like this is related to the Firefox tracking protection. After disabling it, opening documents from Nextcloud works again.

1 Like

For the record, if anybody stumbles across the same problem: The problem was that OnlyOffice ran on a different domain than Netcloud (cloud.example.org and office1.another.org). After changing this (using cloud.example.org for Nextcloud and office.example.org for OnlyOffice), the Firefox tracking protection no longer blocks the OnlyOffice scripts as third party scripts.

1 Like