I don't want to spend a day trying to find the right place to file the bug, but looks like whatever msgraph-cli uses does sanitize the HTTP Header values properly.
Latest version of NixOS has a unicode character in release codename Vicuña:
- which gets written to
/etc/lsb-release and /etc/os-release
- which gets read by the library into HTTP Header as-is without any sanitization:
User-Agent:azsdk-net-Identity/1.10.4 (.NET 8.0.5; NixOS 24.11 (Vicuña))
- which throws:
Request headers must contain only ASCII characters.
related:
I don't want to spend a day trying to find the right place to file the bug, but looks like whatever
msgraph-cliuses does sanitize the HTTP Header values properly.Latest version of NixOS has a unicode character in release codename
Vicuña:/etc/lsb-releaseand/etc/os-releaseUser-Agent:azsdk-net-Identity/1.10.4 (.NET 8.0.5; NixOS 24.11 (Vicuña))Request headers must contain only ASCII characters.related:
ñin release codename and lack of HTTP headers sanitization NixOS/nixpkgs#315574