Closed
Bug 1902001
Opened 9 months ago
Closed 4 months ago
[traceback] ValueError invalid ipv6 url in /sources/highlight/
Categories
(Socorro :: Webapp, defect, P3)
Socorro
Webapp
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: willkg, Assigned: willkg)
Details
Attachments
(1 file)
Sentry: https://mozilla.sentry.io/issues/5438091896/events/10770608919546f681016d46babcf1cc/
Traceback:
ValueError: Invalid IPv6 URL
File "django/core/handlers/exception.py", line 55, in inner
response = get_response(request)
File "django/core/handlers/base.py", line 197, in _get_response
response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "crashstats/crashstats/decorators.py", line 149, in inner
response = view(request, *args, **kwargs)
File "crashstats/sources/views.py", line 56, in highlight_url
parsed = urlsplit(url)
File "urllib/parse.py", line 497, in urlsplit
raise ValueError("Invalid IPv6 URL")
The url
querystring param is:
https://crash-stats.allizom.org[@a.xxx.org/?
This happened in the stage environment and is probably from fuzzing. We should add handling for this case and return an HTTP 400 because the it's a bad request or something like that.
Assignee | ||
Comment 1•5 months ago
|
||
Grabbing this. It's from fuzzing, but it's probably an easy fix.
Assignee: nobody → willkg
Assignee | ||
Comment 2•5 months ago
|
||
Assignee | ||
Comment 3•5 months ago
|
||
Comment 4•4 months ago
|
||
This was deployed in v2024.11.04.
NIing :willkg as the assignee in case there's anything that needs verifying in prod (and to update this ticket's status).
Flags: needinfo?(willkg)
Assignee | ||
Comment 5•4 months ago
|
||
Looks good.
Status: NEW → RESOLVED
Closed: 4 months ago
Flags: needinfo?(willkg)
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•