Details
-
Task
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
Attachment should be query-able without any message.
It opens the way to direct download and upload of attachment for Jmap but will also allow attachment de-duplication in storage.
We should create AttachmentMapper / AttachmentMapperFactory classes.
AttachmentManager should implement :
void storeAttachment(Attachment) Attachment getAttachment(AttachmentId)
We will propose a cassandra implementation.
Attachment table should looks like :
attachmentId (probably a SHA1), payload, type, size
Some test cases :
Asking for a non referenced AttachmentId should throw.
Asking for a referenced AttachmentId should get the attachment.
Asking for a null AttachmentId should throw.
Asking for a malformed AttachmentId should throw.