Uploaded image for project: 'Clowder'
  1. Clowder
  2. CATS-897

MongoDBDatasetService.findByFileId breaks on files within folders

XMLWordPrintableJSON

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Normal Normal
    • 1.4.1
    • None
    • Extraction Bus

      When deleting a file within a folder we call MongoDBDatasetService.findByFileId and it returns an empty list because it queries the `files` subdocument, which is empty, instead of looking for the parent folder.

      This can be reproduced by trying to trigger an extraction on "dataset.file.removed".

      The code for traversing the folders is in app.api.Files.folderPath():1255.

              bing Bing Zhang
              lmarini Luigi Marini
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: