sevdokimov / log-viewer

Web UI for viewing logs
Apache License 2.0
477 stars 105 forks source link

When having char @ in directory name, app won't be able to locate file. #204

Open jasonh1024 opened 7 months ago

jasonh1024 commented 7 months ago

When having char @ in directory name, log-viewer won't be able to locate file.

"Log path is not specified. You can select log in file browser"

int pathStart = path.lastIndexOf('@'); if (pathStart < 0) { if (path.isEmpty()) return Collections.emptyList();

        return Collections.singletonList(new LogPath(null, path));
    }

file directory got chopped. not sure why we are checking the position of @ sign. seems not used anywhere. (is it used in other code part to add additional info to the link? (line position?))