You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@guacamole.apache.org by "kwangheelee (Jira)" <ji...@apache.org> on 2020/11/18 04:11:00 UTC

[jira] [Created] (GUACAMOLE-1215) SFTP file list cannot be displayed

kwangheelee created GUACAMOLE-1215:
--------------------------------------

             Summary: SFTP file list cannot be displayed
                 Key: GUACAMOLE-1215
                 URL: https://issues.apache.org/jira/browse/GUACAMOLE-1215
             Project: Guacamole
          Issue Type: Bug
          Components: guacamole-common-js
    Affects Versions: 1.2.0
            Reporter: kwangheelee


When searching the file list using SFTP, an error occurs when the file name or directory name contains a *backslash*.

An error occurs when calling the javascript *JSON.parse()* function, and for this reason, the entire file list is not displayed in the Devices menu (Alt+Ctrl+Shift).

Temporarily removing the backslash from the file name or directory name is effective, but I think that special characters should be escaped.

Attach the tested file name and error location.

1. File name: test\123
2. Error location

 
{code:java}
// guacamole-common-js/src/main/webapp/modules/JSONReader.js
this.getJSON = function getJSON() {
        return JSON.parse(json);
};
{code}
 

Thanks.

 



--
This message was sent by Atlassian Jira
(v8.3.4#803005)