owncloud / ocis

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

cs3org/wopiserver not working with the ownCloudSQL storage driver #4326

Closed wkloucek closed 1 year ago

wkloucek commented 2 years ago

Describe the bug

The ownCloudSQL storage driver is returning a different reference then other drivers. This makes the cs3orgh/wopiserver fail when opening a file.

Steps to reproduce

Steps to reproduce the behavior:

  1. run oCIS with the ownCloudSQL storage driver and a office suite (Collabora / OnlyOffice via the cs3org/wopiserver)
  2. Open a office document

Expected behavior

The office document opens fine

Actual behavior

The office document does not open

{"module": "cs3iface", "msg": "Invoked stat", "fileref": "1931576", "inode": "1284d238-aa92-42ce-bdc4-0b0000009157-MTkzMTU3Ng==", "filepath": "/Hello.ods", "elapsedTimems": "5.5"}
{"module": "cs3iface", "msg": "Failed stat", "fileref": "/Hello.ods", "reason": "stat:owncloudsql: error resolving reference: strconv.Atoi: parsing '/Hello.ods': invalid syntax"}
{"module": "wopi", "msg": "Requested file not found", "filename": "/Hello.ods", "token": "ALKAeST3BTiWQ34OKqNI", "error": "stat:owncloudsql: error resolving reference: strconv.Atoi: parsing \"/Hello.ods\": invalid syntax"}
wkloucek commented 1 year ago

closing because currently not a focus item