fairDataSociety / fdp-storage

Serverless Web3 filesystem for organizing users' personal data implemented in Typescript.

Home Page:https://www.npmjs.com/package/@fairdatasociety/fdp-storage

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Account gets corrupted after deleting a pod

tomicvladan opened this issue · comments

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.

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.

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)