Skip to content

[ 馃悰 Bug ] After delete a file is not deleted from global cache#16

Description

@mishaszu

Describe the bug
After deleting an image it's possible to get a variant kept in cache. If files are removed manually (tested on filesystem storage type) and a user tries to get an image that was deleted and previously was kept in cache new file is created (as I assume from cache ).
If the global cache option is disabled or the bucket cache is used instead of the global the problem doesn't occur.

To Reproduce
Steps to reproduce the behavior:

  1. set Lust running instance
  2. creating an image
  3. getting the image
  4. deleting the image
  5. getting the image again (it's returned & created)
  6. deleting the image manually
  7. getting the image again (it's returned & created)

Expected behavior

  • Deleting image shouldn't be available with get endpoint
  • most importantly it shouldn't create a new instance of an image if it was deleted

Versioning (please complete the following information):

  • Lust Version = master
  • OS = ubuntu 20.04
  • Rustc Version = 1.70

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions