adobe / da-admin

Apache License 2.0
0 stars 4 forks source link

Review delete directory operation #60

Open bosschaert opened 1 month ago

bosschaert commented 1 month ago

The delete directory operation needs to be reviewed.

Normally when a document is deleted, first a version of it is stored, so that the content is kept in case the delete was accidental. We need to check whether this happens when a document is deleted through delete directory too.

Related to this, we need to ensure that putObjectWithVersion in https://github.com/adobe/da-admin/blob/main/src/storage/version/put.js rejects anything other than files.