owncloud / ocis

:atom_symbol: ownCloud Infinite Scale Stack
https://doc.owncloud.com/ocis/next/
Apache License 2.0
1.42k stars 183 forks source link

Make weboffice work with OCM #10700

Open kobergj opened 1 day ago

kobergj commented 1 day ago

When getting a federated share I need to able to edit it in the weboffice.

This ticket is to find out if there is an issue with this and if yes fix it.

Working collaboratively on one file is not in scope of this ticket.

Current behaviour: File is opened in read-only mode.

saw-jan commented 1 day ago

Tested with:

Infinite Scale 7.0.0-rc.3+6782c2473 Community
ownCloud Web UI 11.0.4

Current behaviors:

1. Collabora

  1. Share with edit role
  2. Open file in Collabora -> CANNOT EDIT :x: Screenshot from 2024-12-02 16-16-45

    collaboration-1     | {"level":"info","service":"collaboration","proto":"HTTP/1.1","request-id":"dade67a981de/kUulsvHrV0-000015","traceid":"00000000000000000000000000000000","remote-addr":"172.21.0.3:46206","method":"GET","wopi-action":"","status":200,"path":"/wopi/files/d619bd0456d3ddbb8765ed723ca6caee3a2be1e9ad95c00852e023ecd5566a3d","duration":26.688054,"bytes":730,"time":"2024-12-02T10:35:59Z","line":"github.com/owncloud/ocis/v2/services/collaboration/pkg/middleware/accesslog.go:35","message":"access-log"}
    collaboration-1     | {"level":"error","service":"collaboration","request-id":"","proto":"HTTP/1.1","method":"POST","path":"/wopi/files/d619bd0456d3ddbb8765ed723ca6caee3a2be1e9ad95c00852e023ecd5566a3d","WopiSessionId":"","WopiOverride":"LOCK","WopiProof":"mBRmFOzDCSjaFqM6IOeu1wZCcEVjgjuuzkFKcpxboa158aaxnBqC4c4f0oCo6WiWdSVjD3Sa/3jDrKnvEi5B8FruGwHpe56g5machPjke2ll34TsLoYdeSvqZiRUv+nWsiA8ayc2KsENYS8SU8xhAOmdWEqZd6CAoN9Zf6vzQEt13PP4PfqJOhhPbgXg0/iqnZL9NH3Xrea1x9AgdN4wKeWizptf5qq9UXd5NHipLno2oEBDyH9HyG9RyMuvCQpR2yxH4AwQVOLMO89q+iC9KDmmREhaFX5q9Oz7/Y9OmjLfLk7mebUOeUsDFR4nshoPjs+lGhz4lBIFP2JNnjXQWQ==","WopiProofOld":"mBRmFOzDCSjaFqM6IOeu1wZCcEVjgjuuzkFKcpxboa158aaxnBqC4c4f0oCo6WiWdSVjD3Sa/3jDrKnvEi5B8FruGwHpe56g5machPjke2ll34TsLoYdeSvqZiRUv+nWsiA8ayc2KsENYS8SU8xhAOmdWEqZd6CAoN9Zf6vzQEt13PP4PfqJOhhPbgXg0/iqnZL9NH3Xrea1x9AgdN4wKeWizptf5qq9UXd5NHipLno2oEBDyH9HyG9RyMuvCQpR2yxH4AwQVOLMO89q+iC9KDmmREhaFX5q9Oz7/Y9OmjLfLk7mebUOeUsDFR4nshoPjs+lGhz4lBIFP2JNnjXQWQ==","WopiStamp":"638687325597044956","FileReference":"resource_id:{storage_id:\"89f37a33-858b-45fa-8890-a1f2b27d90e1\" opaque_id:\"L1RlbXBsYXRlLmRvY3g=\" space_id:\"e94a9c90-23a4-468e-8d25-4872a654e5e0\"} path:\".\"","ViewMode":"VIEW_MODE_READ_WRITE","Requester":"idp:\"https://host.docker.internal:9200\" opaque_id:\"2668e587-825d-4fac-b2d0-7df51ecaec48\" type:USER_TYPE_PRIMARY","RequestedLockID":"cool-lock68368b73","RequestedOldLockID":"","StatusCode":"CODE_UNIMPLEMENTED","StatusMsg":"set lock:error: not supported: operation not supported","time":"2024-12-02T10:35:59Z","line":"github.com/owncloud/ocis/v2/services/collaboration/pkg/connector/fileconnector.go:343","message":"SetLock failed with unexpected status"}
    collaboration-1     | {"level":"info","service":"collaboration","proto":"HTTP/1.1","request-id":"dade67a981de/kUulsvHrV0-000017","traceid":"00000000000000000000000000000000","remote-addr":"172.21.0.3:46206","method":"POST","wopi-action":"LOCK","status":500,"path":"/wopi/files/d619bd0456d3ddbb8765ed723ca6caee3a2be1e9ad95c00852e023ecd5566a3d","duration":22.996446,"bytes":0,"time":"2024-12-02T10:35:59Z","line":"github.com/owncloud/ocis/v2/services/collaboration/pkg/middleware/accesslog.go:35","message":"access-log"}
    collabora-1         | frk-00021-00021 2024-12-02 10:35:59.560395 +0000 [ forkit ] WRN  The systemplate directory [/opt/cool/systemplate] is read-only, and at least [/opt/cool/systemplate//etc/hosts] is out-of-date. Will have to clone dynamic elements of systemplate to the jails. To restore optimal performance, make sure the files in [/opt/cool/systemplate/etc] are up-to-date.| common/JailUtil.cpp:585
    collabora-1         | wsd-00001-00257 2024-12-02 10:35:59.733721 +0000 [ docbroker_005 ] ERR  Un-successful WOPI::Lock with HTTP status 500 (Internal Server Error), failure reason: [] and response: []| wsd/wopi/WopiStorage.cpp:414
    collabora-1         | wsd-00001-00257 2024-12-02 10:35:59.733743 +0000 [ docbroker_005 ] ERR  Failed to Locked docKey [https%3A%2F%2Fhost.docker.internal%3A9300%2Fwopi%2Ffiles%2Fd619bd0456d3ddbb8765ed723ca6caee3a2be1e9ad95c00852e023ecd5566a3d] with reason []. Notifying client and making session [088] read-only| wsd/DocumentBroker.cpp:1647
    collabora-1         | wsd-00001-00257 2024-12-02 10:35:59.733755 +0000 [ docbroker_005 ] ERR  Failed to lock docKey [https%3A%2F%2Fhost.docker.internal%3A9300%2Fwopi%2Ffiles%2Fd619bd0456d3ddbb8765ed723ca6caee3a2be1e9ad95c00852e023ecd5566a3d] with session [088] before downloading. Session will be read-only: | wsd/DocumentBroker.cpp:1192

2. OnlyOffice

  1. Share with edit role
  2. Open file in OnlyOffice -> CANNOT LOAD EDITOR :x: Screenshot from 2024-12-02 16-16-53

    collaboration-oo-1  | {"level":"error","service":"collaboration","request-id":"","proto":"HTTP/1.1","method":"POST","path":"/wopi/files/d619bd0456d3ddbb8765ed723ca6caee3a2be1e9ad95c00852e023ecd5566a3d","WopiSessionId":"","WopiOverride":"LOCK","WopiProof":"d5rSFjqGTYE1huFwprfz84aHa32341+vD6o0BMQwZSJDRNKNCQRZk6HtAQ8HzPaSYkYtSSzm9fdCkVDOacoIZqPLeoVM1/a4vABupQxGh1gWLLMbbjm0M3AhJE+VQnK1wh7RpjTTy7g7HEKf9NHTkqb3jdXWVDRr5T/Ryk6O8fnw7ym7xlyDDes4qj4i4LMfFZOriStzOyclWI5HYJ1atcgC1tK3pEDl3CkB1sQwvBRxIEF/uS0edA6vd/iln7xS5P9IXiZ8KzbW3qlLrCBCQNoRCpWQzOiQri4yeJPvnRDmeQGsVF3UxXiKRorFVAVADEZS9t1gZICD+JB7DV/m4w==","WopiProofOld":"d5rSFjqGTYE1huFwprfz84aHa32341+vD6o0BMQwZSJDRNKNCQRZk6HtAQ8HzPaSYkYtSSzm9fdCkVDOacoIZqPLeoVM1/a4vABupQxGh1gWLLMbbjm0M3AhJE+VQnK1wh7RpjTTy7g7HEKf9NHTkqb3jdXWVDRr5T/Ryk6O8fnw7ym7xlyDDes4qj4i4LMfFZOriStzOyclWI5HYJ1atcgC1tK3pEDl3CkB1sQwvBRxIEF/uS0edA6vd/iln7xS5P9IXiZ8KzbW3qlLrCBCQNoRCpWQzOiQri4yeJPvnRDmeQGsVF3UxXiKRorFVAVADEZS9t1gZICD+JB7DV/m4w==","WopiStamp":"638687323105570000","FileReference":"resource_id:{storage_id:\"89f37a33-858b-45fa-8890-a1f2b27d90e1\" opaque_id:\"L1RlbXBsYXRlLmRvY3g=\" space_id:\"e94a9c90-23a4-468e-8d25-4872a654e5e0\"} path:\".\"","ViewMode":"VIEW_MODE_READ_WRITE","Requester":"idp:\"https://host.docker.internal:9200\" opaque_id:\"2668e587-825d-4fac-b2d0-7df51ecaec48\" type:USER_TYPE_PRIMARY","RequestedLockID":"d619bd0456d3ddbb8765ed723ca6caee3a2be1e9ad95c00852e023ecd5566a3d","RequestedOldLockID":"","StatusCode":"CODE_UNIMPLEMENTED","StatusMsg":"set lock:error: not supported: operation not supported","time":"2024-12-02T10:31:50Z","line":"github.com/owncloud/ocis/v2/services/collaboration/pkg/connector/fileconnector.go:343","message":"SetLock failed with unexpected status"}
    collaboration-oo-1  | {"level":"info","service":"collaboration","proto":"HTTP/1.1","request-id":"4d787b3e2560/JboqPonUa1-000021","traceid":"00000000000000000000000000000000","remote-addr":"172.21.0.3:39084","method":"POST","wopi-action":"LOCK","status":500,"path":"/wopi/files/d619bd0456d3ddbb8765ed723ca6caee3a2be1e9ad95c00852e023ecd5566a3d","duration":15.246426,"bytes":0,"time":"2024-12-02T10:31:50Z","line":"github.com/owncloud/ocis/v2/services/collaboration/pkg/middleware/accesslog.go:35","message":"access-log"}
    onlyoffice-1        | [2024-12-02T10:31:50.577] [ERROR] [localhost] [d619bd0456d3ddbb8765ed723ca6caee3a2be1e9ad95c00852e023ecd5566a3d] [userId] nodeJS - wopi error LOCK:Error: Error response: statusCode:500; headers:{"content-length":"0","date":"Mon, 02 Dec 2024 10:31:50 GMT","x-collaboration.onlyoffice-version":"7.0.0-rc.3+6782c2473","x-request-id":"4d787b3e2560/JboqPonUa1-000021"}; body:
    onlyoffice-1        | 
    onlyoffice-1        |     at Request._callback (/snapshot/server/Common/sources/utils.js)
    onlyoffice-1        |     at Request.callback (/snapshot/server/Common/node_modules/request/request.js:185:22)
    onlyoffice-1        |     at Request.emit (node:events:527:28)
    onlyoffice-1        |     at Request.<anonymous> (/snapshot/server/Common/node_modules/request/request.js:1161:10)
    onlyoffice-1        |     at Request.emit (node:events:527:28)
    onlyoffice-1        |     at IncomingMessage.<anonymous> (/snapshot/server/Common/node_modules/request/request.js:1083:12)
    onlyoffice-1        |     at Object.onceWrapper (node:events:641:28)
    onlyoffice-1        |     at IncomingMessage.emit (node:events:539:35)
    onlyoffice-1        |     at endReadableNT (node:internal/streams/readable:1345:12)
    onlyoffice-1        |     at processTicksAndRejections (node:internal/process/task_queues:83:21)