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

Erik Weathers edited comment on MESOS-4735 at 3/1/16 9:57 AM:
--------------------------------------------------------------

[~gyliu], MESOS-3367 fixes one of the issues I appended above, but not the 
other.  This proposal is more general than either of those issues, providing 
some level of future-proofness against other unforeseen issues.

Ignoring those other issues, the Mesos fetcher is acting as an HTTP downloader, 
and all of the utilities I use on a day-to-day basis for that already support 
the functionality this ticket is requesting:  choosing the filename to save the 
downloaded file as.  Browsers let you do that, as do {{curl}} and {{wget}}.  So 
it's just something that should be added sooner or later to the Mesos fetcher, 
and the fact that this would allow for other various problems to be overcome by 
a framework author is just another benefit.


was (Author: erikdw):
[~gyliu] MESOS-3367 fixes one of the issues I appended above, but not the 
other.  This proposal is more general than either of those issues, providing 
some level of future-proofness against other unforeseen issues.

Ignoring those other issues, the Mesos fetcher is acting as an HTTP downloader, 
and all of the utilities I use on a day-to-day basis for that already support 
the functionality this ticket is requesting:  choosing the filename to save the 
downloaded file as.  Browsers let you do that, as do {{curl}} and {{wget}}.  So 
it's just something that should be added sooner or later to the Mesos fetcher, 
and the fact that this would allow for other various problems to be overcome by 
a framework author is just another benefit.

> CommandInfo.URI should allow specifying target filename
> -------------------------------------------------------
>
>                 Key: MESOS-4735
>                 URL: https://issues.apache.org/jira/browse/MESOS-4735
>             Project: Mesos
>          Issue Type: Improvement
>          Components: fetcher
>    Affects Versions: 0.27.0
>            Reporter: Erik Weathers
>            Assignee: Guangya Liu
>            Priority: Minor
>
> The {{CommandInfo.URI}} message should allow explicitly choosing the 
> downloaded file's name, to better mimic functionality present in tools like 
> {{wget}} and {{curl}}.
> This relates to issues when the {{CommandInfo.URI}} is pointing to a URL that 
> has query parameters at the end of the path, resulting in the downloaded 
> filename having those elements.  This also prevents extracting of such files, 
> since the extraction logic is simply looking at the file's suffix. See 
> MESOS-3367, MESOS-1686, and MESOS-1509 for more info.  If this issue was 
> fixed, then I could workaround the other issues not being fixed by modifying 
> my framework's scheduler to set the target filename.



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

Reply via email to