[
https://issues.apache.org/jira/browse/BROOKLYN-350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15523169#comment-15523169
]
ASF GitHub Bot commented on BROOKLYN-350:
-----------------------------------------
GitHub user ygy opened a pull request:
https://github.com/apache/brooklyn-library/pull/64
BROOKLYN-350 Curl will follow location redirects
- externalizing the CURL command
- adding default parameter so curl follows location redirects
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ygy/brooklyn-library fix/pgsql-install
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/brooklyn-library/pull/64.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 #64
----
commit 81bd9840f172d98a8a7014653beecb36c2727783
Author: Yavor Yanchev <[email protected]>
Date: 2016-09-26T13:52:51Z
BROOKLYN-350 Curl will follow location redirects
- externalizing the CURL command
- adding default parameter so curl follows location redirects
commit f0f595d13c5a3050d8a45c8c402a6e470b54aed9
Author: Yavor Yanchev <[email protected]>
Date: 2016-09-26T13:55:04Z
Upgrading version to 9.3-3
The old used version (9.3-1) is no longer available in the
upstream repos
----
> Upstream yum repos for PostgresSQL started to enforce HTTPS
> -----------------------------------------------------------
>
> Key: BROOKLYN-350
> URL: https://issues.apache.org/jira/browse/BROOKLYN-350
> Project: Brooklyn
> Issue Type: Dependency upgrade
> Reporter: Yavor Yanchev
>
> The upstream YUM repos [1] provided by the PostgreSQL project started to
> enforce HTTPS.
> The PostgreSqlSshDriver uses curl to download RPMs from the upstream repo
> URL, but fails because it is redirected to the HTTPS location using a
> standard 301 header and curl is not instructed to follow the redirects.
> Example curl output
> {code}
> < HTTP/1.1 301 Moved Permanently
> < Location:
> https://yum.postgresql.org/9.4/redhat/rhel-6-x86_64/pgdg-centos94-9.4-2.noarch.rpm
> {code}
> If curl is instructed to follow the redirects with -L (--location) option the
> download will be successful
> [1] http://yum.postgresql.org
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)