| Summary: | Не работают URLы с literal IPv6 адресами в sources.list | ||
|---|---|---|---|
| Product: | Sisyphus | Reporter: | Alexey Vissarionov <gremlin> |
| Component: | apt | Assignee: | Ivan Zakharyaschev <imz> |
| Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
| Severity: | normal | ||
| Priority: | P3 | CC: | arseny, boyarsh, darktemplaralt, evg, glebfm, imz, ldv, placeholder, rider, vt |
| Version: | unstable | ||
| Hardware: | all | ||
| OS: | Linux | ||
|
Description
Alexey Vissarionov
2017-10-12 10:51:16 MSK
Воспроизвёл. Лёша, посмотри пожалуйста. При этом - если dns отдал IPV6 имя, то apt отлично с ним работает. Опции из Debain Acquire::ForceIPv4=true и Acquire::ForceIPv6=true у нас тоже не работают, кстати. Для тестирования можно использовать https://download.basealt.ru и его IPv4/IPv6 адреса. Удалось воспроизвести с адресом [::1]. С адресом [2a01:8600:200::11] не воспроизвелось у меня. $ host download.basealt.space download.basealt.space has address 176.12.98.77 download.basealt.space has IPv6 address 2a01:8600:200::11 Сделал исправление, собрал задание #237148. Нужен аппрув. (In reply to Aleksei Nikiforov from comment #3) > Сделал исправление, собрал задание #237148. Нужен аппрув. Нет больше такого задания. apt-0.5.15lorg2-alt92 -> sisyphus: Wed Apr 16 2025 Ivan Zakharyaschev <imz@altlinux> 0.5.15lorg2-alt92 - Support encoded usernames and passwords in URIs (incl. http_proxy); it was impossible to have @ there; now one should write %40 (ALT#38277). - Get config values with percent (%) correct in methods (e.g., a password as above in Acquire::http::Proxy). More generally: for correct decoding, do always encode percent (%) when %-encoding strings (in any URIs etc). - Backported the fixes from Debian 0.9.8~3 (IPv6 literals; encode passwords): + properly escape IP-literals (e.g. IPv6 address) in HTTP requests (allows using IPv6 numeric addresses in sources.list) (ALT#34000); + %-encode username and password when writing URIs (doesn't help alone with reading URIs as in the case of http_proxy above, but normalizes output); + include port in shortened URIs (e.g. with apt-cache policy). - testcases: Multiplied http-related ones to test these kinds of connections. - Some HTTP tweaks from Debian: + quote spaces ( ) and plus (+) in filenames (0.9.8~48); + do not send keep-alive (HTTP/1.1 default) (0.9.9.3~4^2). |