Plex allows users to enter friendly names with special characters. As an example, a valid name is:
į̶̡̨̡̛̭̬̬͎̖̗̤̪̠̠͓̠̙̪͚̣̺̳̬͎̠̻̘̳͉̺̰͍͎̫̮̘͔̝̊̔̈́̍́̌͌̐͋̏͜͝ͅ⚪̴̨̧̛̖̱̝̦͕̙̣͔̙͖̻̒̑̂͑̇͌ į̶̡̨̡̛̭̬̬͎̖̗̤̪̠̠͓̠̙̪͚̣̺̳̬͎̠̻̘̳͉̺̰͍͎̫̮̘͔̝̊̔̈́̍́̌͌̐͋̏͜͝ͅ⚪̴̨̧̛̖̱̝̦͕̙̣͔̙͖̻̒̑̂͑̇͌
But when plex passes that name as X-Plex-Device-Name, other parts of the plex stack do not respect the server name/cannot handle it unsensitized.
Plex Server should attempt to sanitize this value before saving it to a header if passing it to services that can’t handle UTF-16 properly (maybe python?).
Server Version#: 1.28.1.6018
Player Version#: NA
Error as seen in logs:
[MetadataAgent/GuidExchange/tv.plex.agents.music] [HttpHeader] invalid 'X-Plex-Device-Name' header value (<ServerNameHere>)
I would upload logs, but this error blocks me from doing that: Content no longer appearing in libraries; Download logs results in 500 internal error
Let me know if I can provide more information and I will, thanks.
Edit:
In my experience, this error causes:
- library updates (at least for music based libraries) to fail, resulting in music libraries that are perpetually out of date
- potentially errors downloading logs
Here is a log file pulled from the container, with an attempt at removing P I I.
redacted.log (435.7 KB)