chetanmeh opened a new issue #3500: Make attachments immutable
URL: https://github.com/apache/incubator-openwhisk/issues/3500
 
 
   As part of work to enable [AttachmentStore SPI](#3450) we need to make 
attachments immutable. More details are provided in [mail thread][1]. In brief 
key point is that each attachment must be give a unique name and it should be 
created in following way
   
   1. Upload the attachment and have ArtifactStore return a generated name
   2. Then update the document with attachmentName set to name returned in 
previous step
   3. Then delete the old attachment after #2 completes successfully
   
   The approach would allow an AttachmentStore to
   
   1. Ensure that attachments are uniquely named
   2. Possibly inline small attachments by encoding the attachment content in 
attachment name say if 1KB doc is to be inlined the attachment name is hex 
encoded doc content
   
   [1]: 
https://lists.apache.org/thread.html/f90129cf991023c5a2c4622658d37d0eb14ecbc561f970e55bbd0035@%3Cdev.openwhisk.apache.org%3E

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to