Summary: | app-portage/mirrorselect: enhancement requests | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Portage Tools Team <tools-portage> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | flow |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | reproducer for the utf-8 issue |
Description
Toralf Förster
![]() I run tehse 2 commands in the row : mirrorselect -H -s 8 -a mirrorselect -H -s 8 and got now: $> mirrorselect -H -s 8 * Using url: https://api.gentoo.org/mirrors/distfiles.xml * Limiting test to http hosts. * Downloading a list of mirrors... Got 251 mirrors. * Using netselect to choose the top 8 mirrors...Done. Traceback (most recent call last): File "/usr/lib/python-exec/python3.11/mirrorselect", line 55, in <module> MirrorSelect().main(sys.argv) File "/usr/lib/python3.11/site-packages/mirrorselect/main.py", line 469, in main self.change_config( File "/usr/lib/python3.11/site-packages/mirrorselect/main.py", line 107, in change_config hosts[i] = hosts[i].decode("utf-8") ^^^^^^^^^^^^^^^^^^^^^^^^ UnicodeDecodeError: 'utf-8' codec can't decode byte 0xcf in position 37: unexpected end of data Created attachment 871005 [details]
reproducer for the utf-8 issue
Comment on attachment 871005 [details]
reproducer for the utf-8 issue
wrong file
(In reply to Toralf Förster from comment #3) > Comment on attachment 871005 [details] > reproducer for the utf-8 issue > > wrong file My fault, I interrupted mirrorselect before so garbage landed into make.conf. Should mirrorselect be hardened to not be fooled by mess produced by the user? And mirrorselect returns server which itself have issues like: $ curl https://47.246.44.231/gentoo curl: (60) SSL: no alternative certificate subject name matches target host name '47.246.44.231' More details here: https://curl.se/docs/sslcerts.html curl failed to verify the legitimacy of the server and therefore could not establish a secure connection to it. To learn more about this situation and how to fix it, please visit the web page mentioned above. |