usnistgov / dioptra

Test Software for the Characterization of AI Technologies
https://pages.nist.gov/dioptra/
Other
220 stars 33 forks source link

[BUG] REST API does not allow folder specification in filename #597

Open jtsextonMITRE opened 2 months ago

jtsextonMITRE commented 2 months ago

When uploading a plugin file, using a '/' character in the filename returns an error, making it so that folder specification cannot be used when uploading plugin files.

The following regex should be updated to fix this. https://github.com/usnistgov/dioptra/blob/c289747dffae9fd5629321a98d5d272e8172baad/src/dioptra/restapi/v1/plugins/schema.py#L35