Fix: bound PNG metadata memory, validate upload inputs, batch attachment queries and move file operations to IO
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
Command: ./gradlew test
|
||||
BUILD SUCCESSFUL
|
||||
Tests: 76; failures: 0; errors: 0; skipped: 0
|
||||
Tests: 80; failures: 0; errors: 0; skipped: 0
|
||||
com.mtusi.messenger.main.infrastructure.controllers.attachment.AttachmentControllerTest: tests=3 failures=0
|
||||
upload originals ACL message links and idempotency()
|
||||
invalid images filenames and byte limit return client errors()
|
||||
@@ -14,9 +14,12 @@ com.mtusi.messenger.main.infrastructure.controllers.message.MessageIdempotencyTe
|
||||
com.mtusi.messenger.main.infrastructure.controllers.user.UserControllerTest: tests=11 failures=0
|
||||
com.mtusi.messenger.main.infrastructure.repositories.authentication.session.cache.RedisSessionCacheRepositoryTest: tests=3 failures=0
|
||||
com.mtusi.messenger.main.infrastructure.repositories.chat.ExposedChatRepositoryTest: tests=2 failures=0
|
||||
com.mtusi.messenger.main.infrastructure.repositories.message.MessageAttachmentsQueryTest: tests=1 failures=0
|
||||
history loads ordered attachment links in one query for the entire page()
|
||||
com.mtusi.messenger.main.infrastructure.services.attachment.AttachmentCleanupTest: tests=1 failures=0
|
||||
orphan cleanup respects grace and fences late publishers()
|
||||
com.mtusi.messenger.main.infrastructure.services.attachment.ImageValidatorTest: tests=2 failures=0
|
||||
com.mtusi.messenger.main.infrastructure.services.attachment.ImageValidatorTest: tests=3 failures=0
|
||||
compressed text metadata does not consume the decoded image memory budget()
|
||||
corrupted CRC and missing end chunk are rejected()
|
||||
pixel limit is enforced on header before decoding()
|
||||
com.mtusi.messenger.main.infrastructure.services.authentication.CrossReplicaRevocationTest: tests=2 failures=0
|
||||
@@ -27,3 +30,6 @@ com.mtusi.messenger.main.plugins.DatabaseMigrationTest: tests=1 failures=0
|
||||
com.mtusi.messenger.main.plugins.DependencyFailureTest: tests=5 failures=0
|
||||
com.mtusi.messenger.main.plugins.InstanceIdTest: tests=1 failures=0
|
||||
com.mtusi.messenger.main.plugins.SessionCacheTest: tests=3 failures=0
|
||||
com.mtusi.messenger.main.utils.TemporaryUploadTest: tests=2 failures=0
|
||||
temporary file is removed when upload is cancelled()
|
||||
temporary file is removed on success and failure()
|
||||
|
||||
Reference in New Issue
Block a user