feat: Add setup checks and verify WOPI connectivity#4470
feat: Add setup checks and verify WOPI connectivity#4470juliusknorr wants to merge 10 commits intomainfrom
Conversation
0de9fb1 to
e4da2d3
Compare
e4da2d3 to
88e5d13
Compare
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
This comment was marked as resolved.
88e5d13 to
1564b81
Compare
This comment was marked as outdated.
This comment was marked as outdated.
8988183 to
4097090
Compare
c3739fa to
6f60946
Compare
|
@meven I'm struggling to get CI passing as when the check runs Collabora returns an UnspecifiedError, however the status code is a 200 as far as I see in the logs. Do you have any clue why that is not passing? |
|
@meven Any further hint? Would be great to get this in |
Thank you for the ping, was really busy back in March. Points toward an explicit error contacting the wopi/nextcloud host. This might be a bug in the insecure/HTTP code path. Looking |
|
I haven't managed to find the origin. |
|
I'll do a rebase to see if the nightly code build now behaves different (that is one built from online master branch) |
b69f4ee to
b3d8a24
Compare
|
It seems like your callballUrl request's response was empty and wasn't in one of the three case:
Consequently our http client considered this answer erroneous, as it prematurely disconnected. (A 200 with no Content-Length, must have some content, as 204 is to be used when no Content is needed). A Thanks @Ashod for helping on this. |
|
Thanks that is very helpful, let me push a step in CI run run that curl. Content-Length missing rings a bell (https://cweiske.de/tagebuch/content-length-header-missing.htm) and locally i do see it sent back as a response header. |
b3d8a24 to
6330eba
Compare
|
Yes, it seems that when running the tests with the built-in webserver in CI we have a content but no content length. I'm not sure that is expected as the response header should be optional even if we have some body. I'll test if the tests pass if i switch to an empty response with 204 instead |
It should be optional if you have some body (http streaming then), which coolwsd can detect. The only condition then, is the socket not to be closing with data mid-flight (as for other cases). |
a092242 to
46d1dfe
Compare
Did you have the time for this ? |
46d1dfe to
65b9654
Compare
|
Rebased again, Ci should tell if that makes a difference |
From https://github.com/nextcloud/richdocuments/actions/runs/18386970418/job/52387713241?pr=4470 Is that a valid failure case, or is it that the Collabora instance has no wopi host set ? |
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Signed-off-by: Julius Knorr <jus@bitgrid.net>
Signed-off-by: Julius Knorr <jus@bitgrid.net>
65b9654 to
feee39c
Compare
|
For the integration test that was the case. The interesting failure is in the cypress ones: https://github.com/nextcloud/richdocuments/actions/runs/18386970434/job/52387705950?pr=4470 You can also find the Collabora logs there if you unfold the stop container step: |
We can see in the logs that curl -v 172.17.0.1:8081/status.php returns 400 : I checked the current wopiAccesCheck should send |


Fixes #4267
Needs CollaboraOnline/online#11162 for self-signed certificates that are not trusted on Collabora (without validation)