[wp-trac] [WordPress Trac] #48432: WordPress updates broken with proxy and non routed environment
WordPress Trac
noreply at wordpress.org
Fri Oct 25 11:45:32 UTC 2019
#48432: WordPress updates broken with proxy and non routed environment
--------------------------+---------------------
Reporter: sooslaca | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.2.5
Component: HTTP API | Version: 5.2.4
Severity: major | Resolution:
Keywords: | Focuses:
--------------------------+---------------------
Changes (by SergeyBiryukov):
* component: General => HTTP API
* milestone: Awaiting Review => 5.2.5
Old description:
> Hi,
>
> This change
> https://core.trac.wordpress.org/changeset/46475/trunk/src/wp-
> includes/http.php
>
> broke updates when you're using proxy and you don't have DNS
> resolution/routing for the outside world. (like corporate networks)
>
> Issue came up with this url https://downloads.wordpress.org/plugin
> /multiple-domain.zip
>
> parsed_url:
>
> {{{
> Array(
> [scheme] => https
> [host] => downloads.wordpress.org
> [path] => /plugin/multiple-domain.zip
> )
> }}}
>
> I think it worked before because
>
> {{{
> if ( empty( $parsed_url['port'] ) ) {
> return $url;
> }
> }}}
>
> returned the URL and not false.
>
> I tested changing it back to {{{ $ip = false;}}} and I was able to update
> plugins.
New description:
Hi,
This change [46475] broke updates when you're using proxy and you don't
have DNS resolution/routing for the outside world. (like corporate
networks)
Issue came up with this url https://downloads.wordpress.org/plugin
/multiple-domain.zip
parsed_url:
{{{
Array(
[scheme] => https
[host] => downloads.wordpress.org
[path] => /plugin/multiple-domain.zip
)
}}}
I think it worked before because
{{{
if ( empty( $parsed_url['port'] ) ) {
return $url;
}
}}}
returned the URL and not false.
I tested changing it back to {{{ $ip = false;}}} and I was able to update
plugins.
--
--
Ticket URL: <https://core.trac.wordpress.org/ticket/48432#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list