Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jtsextonMITRE opened this issue Aug 8, 2024 · 0 comments · May be fixed by #632
Open

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

jtsextonMITRE opened this issue Aug 8, 2024 · 0 comments · May be fixed by #632
Assignees
Labels
bug Something isn't working

Comments

@jtsextonMITRE
Copy link
Collaborator

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.

ALLOWED_PLUGIN_FILENAME_REGEX = re.compile(r"^([A-Za-z]|[A-Za-z_][A-Za-z0-9_]+)\.py$")

@jtsextonMITRE jtsextonMITRE added the bug Something isn't working label Aug 8, 2024
@andrewhand andrewhand linked a pull request Aug 22, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants