cs3org / wopiserver

A vendor-neutral application gateway compatible with the WOPI specifications.
Apache License 2.0
52 stars 27 forks source link

Fix "TypeError: BufferedWriter.write() takes no keyword arguments" error in localiface.py #152

Closed daniel-pro closed 3 months ago

daniel-pro commented 3 months ago

Description

This PR is a fix for the following error:

File "/app/core/localiface.py", line 286, in writefile written += f.write(chunk, offset=o, size=len(chunk)) TypeError: BufferedWriter.write() takes no keyword arguments

that occurs when a file must be saved and the local storage type is used.

daniel-pro commented 3 months ago

I'm running it as a docker container on a Linux system, built using the wopiserver.Dockerfile.

Yes, I'm aware of the fact that the local interface it's there for test purposes.

glpatcern commented 3 months ago

Thanks, that's fine, and can you tell more about your use case? You may also message me privately if you prefer.