review: fix what the review of the gateway, avatar and banner changes found
- voelinctl observes with the new gateway list and checks avatar hashes only when they are MD5s (a myTeamSpeak avatar's hash is its link). - Gateway discovery keeps to the most specific name that publishes a record; another server's gateway is no fallback. The admin guide says so. - The observer's resync keeps the avatars clientlist does not tell (they come with the enter and update notifications). - A server avatar given up on counts for that picture only: a new one is tried again, and one that arrives after all is shown again. - updatemytsdata goes again after tsclientlib reconnects (the server forgets it), and once, not twice, when signing in. - SVG is told by its prolog: a page with an svg in it (HTML, XHTML) is a page, refused and logged as one; the UI tells it the same way. - Cursors (CUR) are no longer taken for pictures; MP4 and MOV are named videos, not AVIF. - The UI decodes at most 128 MiB of pixels on its thread, drops the full picture before copying the small one, logs what it cannot decode, and remembers pictures it cannot show instead of decoding them on every refresh; a banner that reloads unchanged is not decoded again. - The early refusal of a long error page is tested again. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VZBWxxMsxUzp4PSTKVzbZN
This commit is contained in:
1 parent
07038c58c3
commit
47f5e2d9aa
11 files changed
+415
-125
No files matched your search
@@ -461,7 +461,11 @@ impl Runner<'_> {
|
||||
{
|
||||
let data = std::fs::read(&path)?;
|
||||
let actual = format!("{:x}", md5_of(&data));
|
||||
if actual != hash {
|
||||
// A server avatar is named by its MD5; a myTeamSpeak
|
||||
// avatar by its address.
|
||||
let server_avatar =
|
||||
hash.len() == 32 && hash.bytes().all(|b| b.is_ascii_hexdigit());
|
||||
if server_avatar && actual != hash {
|
||||
bail!("avatar file hash {actual} is not the announced {hash}");
|
||||
}
|
||||
if let Some(md5) = md5
|
||||
|
||||
@@ -99,7 +99,7 @@ pub async fn run(args: GatewayArgs) -> Result<()> {
|
||||
}
|
||||
engine.send(Command::ObserveGateway {
|
||||
session: SESSION,
|
||||
url: args.url.clone(),
|
||||
urls: vec![args.url.clone()],
|
||||
identity: Box::new(identity.clone()),
|
||||
});
|
||||
if let Some(addr) = &args.voice {
|
||||
|
||||
Reference in new issue
Block a user