clowder-framework / clowder

A data management system that allows users to share, annotate, organize and analyze large collections of datasets. It provides support for extensible metadata annotation using JSON-LD and a distribute analytics event bus for automatic curation of uploaded data.
https://clowderframework.org/
University of Illinois/NCSA Open Source License
33 stars 17 forks source link

`superadmin` mode does not work for extractors #432

Open ocaisa opened 8 months ago

ocaisa commented 8 months ago

Describe the bug I wanted to submit a file for extraction in a space where I did not have rights. After enabling superadmin mode I could do the submission and saw that the extraction succeeded, but the upload of previews and metadata failed. @lmarini pointed out that extractions are always run under user privilieges, so this is an unintended abuse of superadmin.

To Reproduce Steps to reproduce the behavior:

  1. Enable superadmin mode in a space where you only have read rights
  2. Submit something for extraction
  3. Watch the logs for the extractor when it comes to metadata/preview upload, you will see 401 errors.

Expected behavior I'm not sure I expect a change in behaviour, but if I did it would be restricting the capabilities of superadmin in the interface to those that it can actually fully use.

ocaisa commented 8 months ago

I'm fine if this is closed, I just wanted to put it here for the sake of documentation

Albertagamergod1 commented 6 months ago

I'm fine if this is closed, I just wanted to put it here for the sake of documentation

Please find the fix for me