lab5: закрытие остаточных замечаний

Validate tRNS semantics and bind PLTE entry count to the IHDR bit depth so malformed PNGs are rejected with 415 instead of failing in the worker. Refuse replay of an older failed version while a newer pipeline job exists, preventing loss of the shared staging source, and retire version-stale queued jobs as superseded instead of republishing them forever.
This commit is contained in:
Vladislav Kunetskiy
2026-10-31 01:46:26 +03:00
parent 624f76b7d0
commit ac30972d48
14 changed files with 357 additions and 33 deletions
+4 -1
View File
@@ -1,4 +1,4 @@
# make test-attachments 2026-10-30T22:19:04Z
# make test-attachments 2026-10-30T22:43:33Z
env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 python3 student-tests/attachments_negative.py --base-url "http://localhost:8080"
10 MiB + 1 body: 413
empty body: 415
@@ -10,6 +10,9 @@ valid zlib, invalid PNG scanline filter: 415
invalid PNG color type/bit depth pair: 415
duplicate PNG IHDR: 415
trailing bytes after PNG zlib stream: 415
tRNS on RGBA PNG: 415
short tRNS on RGB PNG: 415
PLTE entries exceed palette bit depth: 415
dangerous filenames: 400
foreign attachment metadata/content: 404
empty text without attachments: 400