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

Handle SuspiciousFileOperations in kolibri_whitenoise and return a 404 #11595

Closed
sentry-io bot opened this issue Dec 6, 2023 · 0 comments · Fixed by #11596
Closed

Handle SuspiciousFileOperations in kolibri_whitenoise and return a 404 #11595

sentry-io bot opened this issue Dec 6, 2023 · 0 comments · Fixed by #11596
Assignees

Comments

@sentry-io
Copy link

sentry-io bot commented Dec 6, 2023

SuspiciousFileOperation: The joined path (/usr/local/lib/windows/win.ini-0.1.0.js) is located outside of the base path com...

Sentry Issue: KOLIBRI-BACKEND-2D4

SuspiciousFileOperation: The joined path (/usr/local/lib/windows/win.ini-0.1.0.js) is located outside of the base path component (/usr/local/lib/python3.10/site-packages/kolibri/core/static)
(4 additional frame(s) were not displayed)
...
  File "django/contrib/staticfiles/finders.py", line 160, in find
    match = self.find_in_app(app, path)
  File "django/contrib/staticfiles/finders.py", line 174, in find_in_app
    if storage.exists(path):
  File "django/core/files/storage.py", line 392, in exists
    return os.path.exists(self.path(name))
  File "django/core/files/storage.py", line 405, in path
    return safe_join(self.location, name)
  File "django/utils/_os.py", line 76, in safe_join
    raise SuspiciousFileOperation(
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 a pull request may close this issue.

1 participant