cloudstack-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CLOUDSTACK-9772) Perform HEAD request to retrieve header information
Date Mon, 06 Feb 2017 13:10:41 GMT

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

ASF GitHub Bot commented on CLOUDSTACK-9772:
--------------------------------------------

GitHub user marcaurele opened a pull request:

    https://github.com/apache/cloudstack/pull/1934

    [CLOUDSTACK-9772] Template: perform a HEAD request to check file size from a URL

    Signed-off-by: Marc-Aurèle Brothier <m@brothier.org>

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/exoscale/cloudstack fix/CLOUDSTACK-9772

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/cloudstack/pull/1934.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #1934
    
----
commit 46fb454f4deb6c36f52a6e943b1f23c45508ab04
Author: Marc-Aurèle Brothier <m@brothier.org>
Date:   2017-02-06T12:51:14Z

    Template: perform a HEAD request to check file size from a URL
    
    Signed-off-by: Marc-Aurèle Brothier <m@brothier.org>

----


> Perform HEAD request to retrieve header information
> ---------------------------------------------------
>
>                 Key: CLOUDSTACK-9772
>                 URL: https://issues.apache.org/jira/browse/CLOUDSTACK-9772
>             Project: CloudStack
>          Issue Type: Improvement
>      Security Level: Public(Anyone can view this level - this is the default.) 
>          Components: Template
>    Affects Versions: 4.2.0, 4.2.1, 4.3.0, 4.4.0, 4.5.0, 4.3.1, 4.4.1, 4.4.2, 4.4.3, 4.3.2,
4.5.1, 4.4.4, 4.5.2, 4.6.0, 4.6.1, 4.6.2, 4.7.0, 4.7.1, 4.8.0, 4.9.0, 4.8.1.1, 4.9.0.1, 4.5.2.2
>            Reporter: Marc-Aurèle Brothier
>            Assignee: Marc-Aurèle Brothier
>
> The function in UriUtils which perform a check for the template file size of an arbitrary
URL is sending a `GET` request to only retrieve the response header. A `HEAD` is the correct
way of retrieving such information from the response header.
> This was affecting the restart of a management server since all templates were retrieved
when receiving the startup command from the secondary storage sysvm.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message