Closed
Bug 1241192
Opened 10 years ago
Closed 7 years ago
Form validate invalid date parameters in SuperSearch
Categories
(Socorro :: Webapp, task)
Socorro
Webapp
Tracking
(Not tracked)
RESOLVED
WORKSFORME
People
(Reporter: peterbe, Unassigned)
Details
Attachments
(1 file)
|
258.41 KB,
image/png
|
Details |
If you search for `date:>=2016-01-31` and `date:<=2016-01-01` there's a logical mismatch. There are no crashes that are greater than Jan 31st AND less than Jan 1st.
Also, (see attached screenshot), this could easily be avoided by disallowing the date to be >TODAY.
Comment 1•10 years ago
|
||
I don't think we should prevent the date from being greater than today. However, we indeed should raise a comprehensible error when the date parameters are illogic.
| Reporter | ||
Comment 2•10 years ago
|
||
(In reply to Adrian Gaudebert [:adrian] from comment #1)
> I don't think we should prevent the date from being greater than today.
> However, we indeed should raise a comprehensible error when the date
> parameters are illogic.
Isn't the date tied to which index we query on?
Comment 3•10 years ago
|
||
It's the opposite, the indices are tied to the dates. But there's a protection mechanism in place, that will swallow errors about missing indices, so it's fine to be able to query in the future. Worst case it will return no results. The problem here is that we hit a very specific case where we query on zero indices. We could either detect that there is no index and return an empty result, or raise an exception about the logical mismatch.
Comment 4•7 years ago
|
||
Seems like SuperSearch is doing this now. This URL:
Kicks up this error:
date:
* Operator combination failed 2019-02-08 23:39:00+00:00 >= 2019-02-04 23:39:00+00:00
I think we're good here.
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•