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

Humhub based documents do not work as expected. OpenOffice integration not usable. #107

Open
optitsolutions opened this issue Oct 18, 2023 · 7 comments

Comments

@optitsolutions
Copy link

If I want to edit a docx file via OO, it opens a sample file with content about humhub languages etc. In the header appears the correct file name. If I change content and save the file, the changed version is stored in cfiles module (new version entry -alright), but I cannot open or edit the changed document via OO module. It shows the same sample content at each time.

If I want to open a not docx-file (e.g. pptx, xlsx). OO shows an error message regarding file extensions that do not match. OO probably wants to open the sample page here too.

OnlyOffice Connector is working. All modules and Humhub are up to date.

With this error the OO integration in humhub is not usable.

@SergeyKorneyev
Copy link

Hello,

Could you check if the value of the "Authorization header" field in the connector's settings matches the one of the services.CoAuthoring.token.inbox.header parameter in Document Server's local.json? The local.json config file can be found in /etc/onlyoffice/documentserver/ for Linux installations and in %ProgramFiles%\ONLYOFFICE\Document Server\config\ on Windows.

@WizWareTech
Copy link

I am having this same problem. I checked and headers are identical. I also tried setting them both to default 'Authorization' and it still has the same issue. (see #103)

@dreua
Copy link

dreua commented Oct 23, 2023

Are this case where it worked before and stopped at some point or did it never work?
Usually some details about the setup are helpful to asses the situation, like versions used, Maybe OS and which kind of document server you are using.

@optitsolutions
Copy link
Author

We can do tests with the Header tomorrow. I'll give a feedback here.

@WizWareTech
Copy link

WizWareTech commented Oct 24, 2023

Are this case where it worked before and stopped at some point or did it never work? Usually some details about the setup are helpful to asses the situation, like versions used, Maybe OS and which kind of document server you are using.

It worked fine when using HumHub 1.13, then we upgraded to 1.15 Beta and it broke. See:
humhub/humhub#6497
humhub/humhub#6535

@optitsolutions
Copy link
Author

With HH 1.14 it doesn't work. And it doesn't work with the mentioned edits in humhub/humhub#6497 and
humhub/humhub#6535
It would be nice to get any solutions.
We tested with different authorization headers, without authorization headers, with hash function and without.

@WizWareTech
Copy link

Can anyone help with this? It's been months that this hasn't worked now. I was able to find some more info in OO log:

[2023-11-10T13:32:33.103] [ERROR] [localhost] [b735e0a521c83fbe2c07] [d476e189-fa9b-4d23-8f7e-08b109133810] nodeJS - postData error: url = https://forum.private.org/onlyoffice/backend/track?doc=eyJ0eXAiOiJKV1QJhbGciOiJIUzI1NiJ9.eyJrZXkiOiJiNzM1ZTBhNTIxYzgzZmJlMmMwNyIsInVzZXJHdWlkIjoiZDQ3NmUxODktZmE5Yi00ZDIzLThmN2UtMDhiMTA5MTMzODEwIn0.8CzZJZE5JDDFsu0SWQ_jxg4ur4KgwTcqLf4J_9pBLfA;data = {"key":"b735e0jj21c83fbe2c07","status":1,"users":["d476ej89-fa9b-4d23-8f7e-08b109133810"],"actions":[{"type":1,"userid":"d476e189-fa9b-4d23-8f7e-08b109133810"}],"token":"eyJhbGciOiJIUzI1NiIsInRI6IkpXVCJ9.eyJrZXkiOiJiNzM1ZTBhNTIxYzgzZmJlMmMwNyIsInN0YXR1cyI6MSwidXNlcnMiOlsiZDQ3NmUxODktZmE5Yi00ZDIzLThmN2UtMDhiMTA5MTMzODEwIl0sImFjdGlvbnMiOlt7InR5cGUiOjEsInVzZXJpZCI6ImQ0NzZlMTg5LWZhOWItNGQyMy04ZjdlLTA4YjEwOTEzMzgxMCJ9XSwiaWF0IjoxNjk5NjQ4MzUzLCJleHAiOjE2OTk2NDg2NTN9.eckCUiTn8k8pal0VBbBFzyg9INk_H_c_ZnEF7S-_ZvA"} Error: Error response: statusCode:302; headers:{"date":"Fri, 10 Nov 2023 20:32:33 GMT","content-encoding":"gzip","transfer-encoding":"chunked","content-type":"text/html; charset=UTF-8","server":"openresty","location":"http://forum.private.org/user/auth/login","x-served-by":"forum.private.org","x-hw":"1699648353.cds212.de1.hc,1699648353.cds226.de1.sc,1699648353.cds226.de1.p","access-control-allow-origin":"*","connection":"close"}; body:

at Request._callback (/snapshot/server/build/server/Common/sources/utils.js)
at Request.callback (/snapshot/server/build/server/Common/node_modules/request/request.js:185:22)
at Request.emit (events.js:400:28)
at Request.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1161:10)
at Request.emit (events.js:400:28)
at Gunzip.<anonymous> (/snapshot/server/build/server/Common/node_modules/request/request.js:1083:12)
at Object.onceWrapper (events.js:519:28)
at Gunzip.emit (events.js:400:28)
at endReadableNT (internal/streams/readable.js:1333:12)
at processTicksAndRejections (internal/process/task_queues.js:82:21)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants