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)

Reply via email to