#24823 closed defect (bug) (duplicate)
Importing attachments fails from intranet blog due to URL validation
Reported by: | bbs_felix | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 3.5.2 |
Component: | Import | Keywords: | |
Focuses: | Cc: |
Description (last modified by )
Scenario:
- Two WordPress instances in our local intranet using IPs from the 10.0.0.0/8 range.
- Blog 1 (B1) is a site on an old WP-MU (the version I cannot tell, sorry), Blog 2 (B2) is a site on a fresh WP 3.5.2 with Multisite enabled.
- B1 is supposed to be migrated to B2
- The WordPress WXR format is used to export B1
- The WordPress Import Plugin is used to import the WXR to B2
- During import the option to fetch attachments is checked
- The import of attachment fails with the error message "Remote server did not respond"
The bug here comes with [24481] (which means 3.5.1 is unaffected). The function wp_http_validate_url (in wp-includes/http.php) is a bit over-eager to block internal RFC1918 IPs (or those with DNS names resolving to RFC1918 IPs).
Effectively this blocks communication between blogs hosted in an intranet.
Change History (4)
Note: See
TracTickets for help on using
tickets.
Related/Duplicate: #24646