Uploaded image for project: 'James Mailbox'
  1. James Mailbox
  2. MAILBOX-268

Make attachment an top-level Entity

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • store
    • 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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            matthieu Matthieu Baechler
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: