Skip to content
This repository was archived by the owner on Jun 9, 2023. It is now read-only.

Conversation

@AbsurdlySuspicious
Copy link
Collaborator

@AbsurdlySuspicious AbsurdlySuspicious commented May 2, 2020

Recently I stumbled across this:

Media content load error: 
java.util.concurrent.ExecutionException: com.bumptech.glide.load.engine.GlideException: Failed to load resource
There was 1 cause:
java.net.UnknownServiceException(CLEARTEXT communication to i.redd.it not permitted by network security policy)

- http redd.it link in the wild. This happens since Android >=9 forces https-only network security policy. Here's the fix

@AbsurdlySuspicious
Copy link
Collaborator Author

AbsurdlySuspicious commented May 2, 2020

On second thought, maybe it's worth to force https for other media links from knwon sources, like imgur and others. And if domian isn't in the whitelist for https rewrite, show it as ordinary link.

@AbsurdlySuspicious
Copy link
Collaborator Author

imgur and others

I see that media providers with their own create* methods already produce https only links so this lefts us with redditupload and redd.it only.

@Tunous Tunous merged commit b013fa5 into Tunous:master May 2, 2020
@Tunous Tunous added the bug Something isn't working label May 2, 2020
@Tunous Tunous added this to the 0.9.0 milestone May 2, 2020
@AbsurdlySuspicious AbsurdlySuspicious deleted the fix_https/feature branch May 2, 2020 16:09
msfjarvis added a commit to msfjarvis/Dawn that referenced this pull request Aug 5, 2020
…jarvis/swipe-gesture-icon-position' into features

* msfjarvis/multiple_accounts: (24 commits)
  Adds multiple accounts support
  Prepare next version
  Update changelog for 0.9.1 (Tunous#198)
  Force logout all users (Tunous#196)
  Handle exceptions while opening a browser (Tunous#108) (Tunous#193)
  Prevent selection of negative ranges in SelectionLimitingTextView (fixes Tunous#190) (Tunous#194)
  Prepare next version
  Release 0.9.0 (Tunous#184)
  Release workflow (Tunous#185)
  Fix image loading issues due to http urls (Tunous#183)
  Selftext selection (Tunous#178)
  Submission title selection (Tunous#182)
  Update changelog with missed changes
  Wrap comment byline when it is too long to fit in one line (Tunous#145)
  Revert "Run Debug workflow only on push"
  Upgrade to Gradle 6.3 and add checksum field for F-Droid (Tunous#180)
  Run Debug workflow only on push
  Upgrade Gradle to 6.2.1 (Tunous#152)
  Use GitHub Actions (#72)
  Switch to on-device link unfurler (Tunous#138)
  ...

* msfjarvis/swipe-gesture-icon-position: (26 commits)
  Return false to keep the touch flow going
  Make the gestures' icons follow touch event position on Y
  Swipe Actions' icons at same level as touch event
  Prepare next version
  Update changelog for 0.9.1 (Tunous#198)
  Force logout all users (Tunous#196)
  Handle exceptions while opening a browser (Tunous#108) (Tunous#193)
  Prevent selection of negative ranges in SelectionLimitingTextView (fixes Tunous#190) (Tunous#194)
  Prepare next version
  Release 0.9.0 (Tunous#184)
  Release workflow (Tunous#185)
  Fix image loading issues due to http urls (Tunous#183)
  Selftext selection (Tunous#178)
  Submission title selection (Tunous#182)
  Update changelog with missed changes
  Wrap comment byline when it is too long to fit in one line (Tunous#145)
  Revert "Run Debug workflow only on push"
  Upgrade to Gradle 6.3 and add checksum field for F-Droid (Tunous#180)
  Run Debug workflow only on push
  Upgrade Gradle to 6.2.1 (Tunous#152)
  ...
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants