wordpress-mobile / wordpress-mobile/WordPress-iOS
Media: Cannot view self-hosted images if traffic from Photon (i0.wp.com) is blocked
Nobody has claimed this yet.
- Dominant language
- Swift
- Stars
- 3.9k
- Forks
- 1.2k
- Avg merge
- 23h 51m
- Merged PRs (30d)
- 58
Description
Expected behavior
Media is loaded directly from the WP host if Photon (WP CDN) returns an error
Actual behavior
Cannot view media at all if Photon IP range is blocked
Steps to reproduce the behavior
- Block traffic from the IP range 195.234.109.0/24 to your WP host
- Open the WP iOS app and view media either in the media library or within a blog post
- Media does not load
This happens on a fresh WP install without Jetpack or any plugins installed.
Why does the iOS app insist on loading the images through Photon? And why doesn't it at least fall back to loading the images directly from the server if Photon returns an error?
In the logs it says "Unable to download image for attachment with url = Optional(https://i0.wp.com/...)
Tested on iOS 13.6, WPiOS 15.2
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The report concerns media loading in the iOS app's media library and blog-post views, with logs showing an i0.wp.com attachment URL. Start by tracing the image download path used by those views and reproduce with 195.234.109.0/24 blocked. Done means media loads directly from the WP host when Photon returns an error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ios, swift
- Domain
- mobile
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100