Files
mtusi2026lab4/src/core/exceptions/__init__.py
T
ricoromaandClaude Opus 5.5 dba40bc325 fix: address attachments verify findings
- keep one upload body in memory: BytesIO + getvalue() without copy,
  fixed glibc mmap threshold in the image (no realloc copy on growth)
- stop PNG inflate at expected size + 1 byte
- reject filename that is not valid UTF-8 after percent-decoding (400)
- failure stand: env limit variables do not change attachment limits;
  history with attachment_ids while S3 is stopped
- drop dead constants; restate "old image on new schema" scenario

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-21 02:16:49 +03:00

37 lines
973 B
Python

from .attachment import (
AttachmentContentMissing,
AttachmentNotFound,
InvalidFilename,
PayloadTooLarge,
UnsupportedMediaType,
UploadInterrupted,
)
from .base import DomainError
from .chat import ChatNotFound, InvalidChatMembers
from .idempotency import IdempotencyConflict
from .pagination import InvalidCursor
from .service import ServiceUnavailable
from .session import InvalidCredentials, Unauthenticated
from .storage import ObjectStorageUnavailable, StoredObjectMissing
from .user import UsernameTaken
__all__ = [
"AttachmentContentMissing",
"AttachmentNotFound",
"ChatNotFound",
"DomainError",
"IdempotencyConflict",
"InvalidChatMembers",
"InvalidCredentials",
"InvalidCursor",
"InvalidFilename",
"ObjectStorageUnavailable",
"PayloadTooLarge",
"ServiceUnavailable",
"StoredObjectMissing",
"Unauthenticated",
"UnsupportedMediaType",
"UploadInterrupted",
"UsernameTaken",
]