vadimpronin / guacamole-lite

Node.js library for creating Guacamole-compatible servers. Guacamole is a RDP/VNC/SSH/Telnet client for HTML5 browsers.
Apache License 2.0
247 stars 78 forks source link

File downloading broken? #27

Open greyivy opened 5 years ago

greyivy commented 5 years ago

I am unable to manipulate the InputStream from the onfile callback in the client. I do receive the mimetype and filename, but that's it. Has anyone had any luck downloading files (regardless of the method used)?

thelamer commented 4 years ago

I am gonna link this to https://github.com/vadimpronin/guacamole-lite/issues/30 I think we might be running into the same stuff here, not sure if file/audio streams are functional.

deg0nz commented 3 years ago

I'm running into the same exact problem right now. Does anyone have a solution for this yet? Or do we at least know, if this is a problem with guacamole-lite?

Edit: typo

deg0nz commented 3 years ago

So my update on this:

We are using guacd (Docker) and guacamole-common-js v1.2.0 with most recent guacamole-lite. File upload is working fine, as well as the basic usage of the Guacamole RDP network drive in Windows. I can add and use files there and they are mirrored on the Linux machine running guacd.

I analyzed this with tcpdump and the first packet containing mimetype and the filename is sent and then noting (regarding the file download).

So the root cause for this (and so for the empty stream) seems to be within guacd. When you drop a file into the Download folder, the action gets triggered, but guacd prints an error while reading the file. The open() function errors with File not found. I will investigate this further.

@greyivy If you still have a running machine with guacamole, can you confirm this? (You have to set guacd logs to debug)

Edit: add/change words for better understanding