You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@storm.apache.org by "saurabh mishra (JIRA)" <ji...@apache.org> on 2016/08/03 01:01:20 UTC

[jira] [Created] (STORM-2015) logviewer does not download file when the directory is a symbolic link fails with 404 page not found

saurabh mishra created STORM-2015:
-------------------------------------

             Summary: logviewer does not download file when the directory is a symbolic link fails with 404 page not found
                 Key: STORM-2015
                 URL: https://issues.apache.org/jira/browse/STORM-2015
             Project: Apache Storm
          Issue Type: Bug
            Reporter: saurabh mishra


logviewer does not download file when the directory is a symbolic link it fails with 404 page not found.

(defn download-log-file [fname req resp user ^String root-dir]
  (let [file (.getCanonicalFile (File. root-dir fname))]
    (if (.exists file)

      (-> (resp/response "Page not found")
          (resp/status 404)))))

Replace storm root-dir as an actual directory it succeeds to download the file.

Symbolic link for log locations is standard practice.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)