[ 
https://issues.apache.org/jira/browse/STORM-2015?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15405118#comment-15405118
 ] 

Narendra Bidari commented on STORM-2015:
----------------------------------------

Hi All,
             I would like to work on this bug.

> 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)

Reply via email to