View Issue Details

IDProjectCategoryView StatusLast Update
0021595mantisbtfilterspublic2017-08-29 23:54
Reportervboctor Assigned To 
PrioritynormalSeverityfeatureReproducibilityN/A
Status newResolutionopen 
Product Version1.3.0 
Summary0021595: When a filter generates a bad query, reset the filter
Description

When a user hits an error in filter api that generates an invalid query they are stuck and can't access View Issues page anymore since active filter always gets applied causing the php error similar to 0021592

Ideally, we should reset the filter when the query fails, allowing them to continue to work, rather than get blocked.

Tagsmantishub

Relationships

related to 0021592 closedcproensa Unknown column 'mantis_bug_table.tags' 
related to 0021661 new throw errors as exceptions 

Activities

vboctor

vboctor

2016-08-09 12:17

manager   ~0053776

The workaround for now is for the user to visit the following page (replace dots with MantisBT url):
https://.../view_all_set.php?type=3

However, the above is not discoverable to the user.

cproensa

cproensa

2016-08-14 11:15

developer   ~0053795

Maybe a candidate to be included in https://github.com/mantisbt/mantisbt/pull/783?

in that PR there is a big sanitization of filter related code, which probably sets an easier starting point to fix this issue

cproensa

cproensa

2016-09-26 13:14

developer   ~0054073

This can be tricky to be safe against a bad formed query.

Maybe my suggestion in 0021661 is also applicable here.
When retrieving the filter data, catch the error as an excepction, so if it fails allow a seamless recover with a defaulted filter.