FuzzManager icon indicating copy to clipboard operation
FuzzManager copied to clipboard

[CrashManager] No signature suggestion causes 500 error

Open jschwartzentruber opened this issue 4 years ago • 0 comments

Creating a bucket from a "No crash detected" CrashEntry results in a 500 server error.

Traceback (most recent call last):
  File "/srv/venv/lib/python3.8/site-packages/django/core/handlers/base.py", line 113, in _get_response
    response = wrapped_callback(request, *callback_args, **callback_kwargs)
  File "/srv/FuzzManager/server/crashmanager/views.py", line 396, in newSignature
    'proposedSig': json.loads(proposedSignature),
  File "/usr/lib/python3.8/json/__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "/usr/lib/python3.8/json/decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "/usr/lib/python3.8/json/decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

We should handle this case and show the new signature form with no suggestion.

jschwartzentruber avatar Feb 03 '22 15:02 jschwartzentruber