Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

[BUG]: Restricting cleartext network traffic breaks import and statistics pages

Open MFTabriz opened this issue 1 year ago • 3 comments

Checked for duplicates?

  • [X] This issue is not a duplicate

Does it also happen in the desktop version?

  • [ ] This bug does not occur in the latest version of Anki

What are the steps to reproduce this bug?

Restrict cleartext network traffic globally on your device (which blocks all non-TLS traffic). Open Ankidroid and try importing a deck from a local file or visit statistics page.

Expected behaviour

The import page (after choosing a local deck package file) and statistics page should be accessible

Actual behaviour

A blank page with "TypeError: failed to fetch" message is shown instead of import page and statistics page.

Debug info

AnkiDroid Version = 2.17.6 (568538896be943818ca793dd2635822265712def)

Backend Version = 0.1.34-anki23.12.1 (23.12.1 1a1d4d5419c6b57ef3baf99c9d2d9cf85d36ae0a)

Android Version = 14 (SDK 34)

ProductFlavor = full

Manufacturer = Fairphone

Model = FP5

Hardware = qcom

Webview User Agent = Mozilla/5.0 (Linux; Android 14; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/122.0.6261.90 Mobile Safari/537.36

ACRA UUID = 7a8bdf5f-c6c6-4679-b2fd-0ae240e97685

Crash Reports Enabled = true

(Optional) Anything else you want to share?

No response

Research

  • [X] I am reporting a bug specific to AnkiDroid (Android app)
  • [X] I have checked the manual and the FAQ and could not find a solution to my issue
  • [ ] (Optional) I have confirmed the issue is not resolved in the latest alpha release (instructions)

MFTabriz avatar Mar 25 '24 11:03 MFTabriz

Hello! 👋 Thanks for logging this issue. Please remember we are all volunteers here, so some patience may be required before we can get to the issue. Also remember that the fastest way to get resolution on an issue is to propose a change directly, https://github.com/ankidroid/Anki-Android/wiki/Contributing

welcome[bot] avatar Mar 25 '24 11:03 welcome[bot]

It should be fixable https://github.com/NanoHttpd/nanohttpd/issues/465

BrayanDSO avatar Mar 25 '24 13:03 BrayanDSO

Hello 👋, this issue has been opened for more than 3 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Jun 23 '24 14:06 github-actions[bot]