Jorge Lopez created GUACAMOLE-1713:
--------------------------------------
Summary: Set sftp path in ssh connections
Key: GUACAMOLE-1713
URL: https://issues.apache.org/jira/browse/GUACAMOLE-1713
Project: Guacamole
Issue Type: Bug
Components: guacd-docker
Affects Versions: 1.4.0
Reporter: Jorge Lopez
Hi,
I'm using my own development of guacamole server through a django project and I
will like to specify and sftp path for drag and drop files upload. I tried with
sftp-root-directory as specified in
[https://guacamole.apache.org/doc/gug/configuring-guacamole.html#ssh] but I
think it's just for file browser, because if a user drops a file in the window
the file is upload to the user's home directory, not at the path specified in
sftp-root-directory, and, in some cases this path doesn't exist so file is not
uploaded or I can't where the file is uploaded.
Here is an example of my python code:
{code:java}
parameters = {
'protocol': 'ssh',
'hostname': host,
'port': credential.port,
'username': credential.user,
'password': password,
'enable_sftp': enable_sftp,
'sftp_root_directory': '/tmp/test',
'recording_path': record_path,
'create_recording_path': 'true',
'recording_name': record_name,
'create_typescript_path': 'true',
'typescript_path': session_path,
'typescript_name': record_name
} {code}
As I see in guacd container logs, there is no error and sftp is connected
succesfully. With RDP connections 'drive_path' option is working as expected,
but not for ssh. I also tried adding the absolute path to the filename once I
created the FileStream in my .js client implementation:
{code:java}
filename = `/tmp/test/${filename}`
let stream = guac.createFileStream(mimetype, filename);{code}
But as I see in guacd logs, it's raising an error
{code:java}
Filename "/tmp/test/test.docx" is invalid or resulting path is too long {code}
What I'm doing wrong? Is there a way to change the file's default path?
Thanks
--
This message was sent by Atlassian Jira
(v8.20.10#820010)