Skip to content

[18.0] dms: attachment created during uploading of a new file is new garbage collected #468

Description

@tarteo

Module

dms

To Reproduce (scenario 1)

Affected versions: 18.0

Steps to reproduce the behavior:

  1. Go to any directory click Upload;
Image
  1. a dms.file is created and an ir.attachment;
Image
  1. run scheduled action "Base: Auto-vacuum internal data", and the attachment is not deleted;
  2. delete the dms.file;
  3. run the scheduled action again;
  4. the ir.attachment is still not deleted.

To Reproduce (scenario 2)

  1. Don't select a directory;
  2. upload a file, and you get the error "You must select a directory first";
  3. the ir.attachment is created though.

Expected behavior
I would expect the ir.attachment created during uploading new files to be garbage collected, or deleted directly.

Additional context
I'm using filestore storage.

Image

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions