Bug: SM19 Web Import Fails with Non-Standard HTTP Ports (Ignores Ports Other Than 80)

From SuperMemopedia
Jump to navigation Jump to search


From: IwakuraLain1984
Country:
Sent: 05/05/2025
Subject: Bug: SuperMemo 19 Web Import Fails with Non-Standard HTTP Ports (Ignores Ports Other Than 80)

Question:

The Web Import feature in SuperMemo 19 fails when trying to import content from web addresses using non-standard HTTP ports (i.e., ports other than 80). For example, attempting to import from http://127.0.0.1:8887 will fail. (Note: The feature also fails for local file:// paths)

Steps to reproduce

  1. In SuperMemo 19, use Web Import and enter the URL including the non-standard port (e.g., http://127.0.0.1:8887/page.html).
  2. An error occurs (e.g., "Cannot download or parse the page"), or a blank/faulty element is imported.
  3. Packet capture confirms that upon clicking Import, SuperMemo ignores the specified port (8887) and incorrectly attempts to connect to the standard port 80.

The Web Import function appears to use port 80 for the actual import connection via http://, disregarding any other port specified in the URL or local file:// paths

Confirmatory Test

Successfully importing the same content after changing the web server to use the standard port 80 (http://127.0.0.1/test.html) confirms the issue is port-related.

More details and Workaround

https://www.reddit.com/r/SuperMemo/comments/1kf77s5/bugworkaround_supermemo_19_web_import_failing_for/

Hints

very nice analysis. indeed, supermemo should not make users waste time on this trap. thank you

Answer: