Skip to content

[BUG] File data remaining in MongoDB after AAS deletion #975

@ChristophRh

Description

@ChristophRh

Description
When uploading an AAS (containing Submodels containing File Submodel Elements) via the BaSyx Web UI and subsequently deleting it all, the documents remain in the MongoDB fs.files and fs.chunks collections. The AAS is correctly removed from the registry and repository, but the corresponding files are not cleaned up.

To Reproduce

  1. Start BaSyx Java off-the-shelf components using Docker Compose with a MongoDB backend and Port-Mapping '27017:27017'
  2. Open the BaSyx Web UI
  3. Upload an AAS (.aasx package) with a Submodel that contains some files in Submodel Element File
  4. Delete the same AAS and all of its Submodels via the Web UI
  5. Connect to the MongoDB instance (e.g. using MongoDB Compass)
  6. Inspect the fs.files and fs.chunks collections in aas-env database

Expected behavior
After deleting an AAS and its Submodels, all associated data should be removed from MongoDB.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    To triage

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions