Panic on invalid board_manager.additional_urls
config value
#2786
Labels
topic: code
Related to content of the project itself
type: imperfection
Perceived defect in any part of project
Describe the problem
The user may specify the URLs of additional package indexes via the
board_manager.additional_urls
configuration key.🐛 If the user sets this configuration key to a value with a format like so:
(where
<non-scheme>
is any string that does not have the form of a URI scheme,<reserved character>
is a URI reserved character, and<URL>
is a URL)Arduino CLI will panic.
To reproduce
Expected behavior
Panics do not occur under normal operating conditions, including invalid user input.
Note that of course it is not expected that Arduino CLI can download the index file in the face of an invalid configuration. It is only expected that it will handle this gracefully, without panicking.
Arduino CLI version
84fc413
Operating system
Windows
Operating system version
11
Additional context
Originally reported at https://forum.arduino.cc/t/arduino-ide-2-3-4-compilation-error-no-connection-established/1332770
Issue checklist
The text was updated successfully, but these errors were encountered: