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

Fix schemahandling upload #139

Merged
merged 4 commits into from
Nov 5, 2024

Conversation

Daniel-VM
Copy link
Member

@Daniel-VM Daniel-VM commented Nov 4, 2024

PR description

This PR fixes the SuspiciousFileOperation error that occurs in specific DJANGO version when uploading a schema file to the relecov-platform due to the presence of a global path pattern ("/") in the media directory (documents).

raise SuspiciousFileOperation(
django.core.exceptions.SuspiciousFileOperation: Detected path traversal attempt in 'path/to/relecov_schema_DATE.json'

Source: https://forum.djangoproject.com/t/django-3-2-4-update-suspiciousfileoperation-detected-path-traversal-attempt/8196/3

Session info:

Python 3.12.4
Django 4.2.15

@Daniel-VM Daniel-VM marked this pull request as ready for review November 4, 2024 09:36
@luissian luissian merged commit 8a79f06 into BU-ISCIII:develop Nov 5, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants