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

Submitting Challenges Without a Flag Errors #255

Open
sentry-io bot opened this issue Feb 28, 2022 · 0 comments
Open

Submitting Challenges Without a Flag Errors #255

sentry-io bot opened this issue Feb 28, 2022 · 0 comments
Assignees
Labels

Comments

@sentry-io
Copy link

sentry-io bot commented Feb 28, 2022

Sentry Issue: BACKEND-4A

TypeError: string indices must be integers
(8 additional frame(s) were not displayed)
...
  File "rest_framework/views.py", line 466, in handle_exception
    response = exception_handler(exc, context)
  File "backend/exception_handler.py", line 50, in handle_exception
    raise exc
  File "rest_framework/views.py", line 506, in dispatch
    response = handler(request, *args, **kwargs)
  File "challenge/views.py", line 302, in post
    if not challenge.flag_plugin.check(flag, user=user, team=team):
  File "plugins/flag/plaintext.py", line 9, in check
    return self.challenge.flag_metadata["flag"] == flag

Unsure if this is something we actually want to catch. The self_check method does already cover this but we should probably make it clearer what's happened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants