Improve error messages for invalid queries

RESOLVED FIXED

Status

Socorro
Webapp
RESOLVED FIXED
5 years ago
a year ago

People

(Reporter: mbrandt, Assigned: peterbe)

Tracking

Firefox Tracking Flags

(Not tracked)

Details

(URL)

Attachments

(2 attachments)

(Reporter)

Description

5 years ago
Created attachment 770305 [details]
qa - bug

Admittedly an error is displayed to the user but it is lacking the beauty of the lovely-happy inspiration of the crash-stats template. I apologize if another bug is already tracking this work but I couldn't find it. Please ignore if one is already open.

Steps to reproduce:
1. goto https://crash-stats.mozilla.com/query?product=happy_pandas_were_here

Actual:
The error page only contains the following html

<ul class="errorlist"><li>product<ul class="errorlist"><li>Select a valid choice. http://netsparker.com/n? is not one of the available choices.</li></ul></li></ul>

[10:31:11.813] GET https://crash-stats.mozilla.com/query?product=happy_pandas_were_here [HTTP/1.1 400 BAD REQUEST 296ms]

Expected:
We use the django templates when displaying the error message
(Assignee)

Comment 1

2 years ago
This should be possible with https://docs.djangoproject.com/en/1.8/ref/urls/#django.conf.urls.handler400
Assignee: nobody → peterbe
(Assignee)

Comment 2

2 years ago
Created attachment 8757468 [details] [review]
Link to Github pull-request: https://github.com/mozilla/socorro/pull/3359

Comment 3

a year ago
Commit pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/2b32f0bef3622075c538ecd0cdc9b89c09dc1012
fixes bug 889491 - Improve error messages for invalid queries (#3359)

r=adngdb

Updated

a year ago
Status: NEW → RESOLVED
Last Resolved: a year ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.