Github user redsanket commented on a diff in the pull request:

    https://github.com/apache/storm/pull/879#discussion_r44933452
  
    --- Diff: storm-core/src/clj/backtype/storm/daemon/logviewer.clj ---
    @@ -967,15 +978,30 @@
             (ring-response-from-exception ex))))
       (GET "/dumps/:topo-id/:host-port/:filename"
            [:as {:keys [servlet-request servlet-response log-root]} topo-id 
host-port filename &m]
    -     (let [port (second (split host-port #":"))]
    -       (-> (resp/response (File. (str log-root
    -                                      file-path-separator
    -                                      topo-id
    -                                      file-path-separator
    -                                      port
    -                                      file-path-separator
    -                                      filename)))
    -           (resp/content-type "application/octet-stream"))))
    +     (let [user (.getUserName http-creds-handler servlet-request)
    +           port (second (split host-port #":"))
    +           dir (File. (str log-root
    +                           file-path-separator
    +                           topo-id
    +                           file-path-separator
    +                           port))
    +           file (File. (str log-root
    +                            file-path-separator
    +                            topo-id
    +                            file-path-separator
    +                            port
    +                            file-path-separator
    +                            filename))]
    --- End diff --
    
    Can we convert this to a utility method, it will be useful


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to