Entity::search doesn't use type conversions
Bug #316730 reported by
e.mortoray
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Persephone |
Fix Committed
|
Undecided
|
Unassigned |
Bug Description
Using Entity search, and the query parameters, seems to assume the values are of the correct type. This leads to errors, and unexpected PHP errors.
For example passing an Integer value to a DateTime field (or Date I suppose) causes PHP to generate a 500 error without any error log entry or exception of any kind.
The TypeDescriptor should be used where possible to convert the types (or at least check them for correctness).
Changed in persephone: | |
status: | New → Confirmed |
Changed in persephone: | |
status: | Confirmed → Fix Committed |
To post a comment you must log in.
quote/decode in MDB2 helper class, and other DB classes, also have a similar problem. They should check the type.