fairDataSociety / fdp-storage

Serverless Web3 filesystem for organizing users' personal data implemented in Typescript.
https://www.npmjs.com/package/@fairdatasociety/fdp-storage
Apache License 2.0
9 stars 11 forks source link

Account gets corrupted after deleting a pod #257

Open tomicvladan opened 1 year ago

tomicvladan commented 1 year ago

Steps to reproduce

  1. Login to Fairdrive
  2. Delete an existing pod
  3. Try creating the same pod again
  4. Try creating pod with a different name

Result

Getting Request failed with status code 409 errors

Expected result

It should be possible to create a pod with the existing name as a previous one. And the content of that pod should be empty. Also creating other pods shouldn't throw errors.

IgorShadurin commented 1 year ago

Most likely, this should be handled on the Fairdrive caching side. After deleting a pod, the cache should be updated. fdp-storage is covered by such a test.

tomicvladan commented 1 year ago

It's not related to caching, because the pod list gets refreshed correctly. And trying to create a pod returns this error from bee:

POST http://localhost:1633/soc/9bdc3df70db00fdc745da0feab9a70d153270244/cf29db53d5c44182b4c8b222b1e0036eb48bbedd3b6087ae80426e9e275774aa?sig=3fb15... 409 (Conflict)