Skip to content

Filter exception handling #12

@moschlar

Description

@moschlar

I want to put this up for discussion:

Currently, if a specified filter leads to an exception in SQLAlchemy (e.g. on the default TG2 quickstart model with auth, create a CrudRestController for the User model class and search for group=0), the exception is not caught.
(Or another example: Depending on the backend, filtering an Integer column for a character (e.g. user_id=a, works on sqlite, doesn't work on postgres) will throw a DataError).

In my opinion, for an operation like filtering search results, this should only lead to an empty result set and maybe a warning flash to the user that he tried an illegal operation.

What do others think?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions