odoo/openerp/osv
Daniel Reis 8b3d69a0d7 [FIX] orm: performance of regex to check search `order` spec
This regex is used for a quick sanity check of
the order_spec in `search(order=<order_spec>)`.
Because it was build on the repetition of a
group ending with a series of optional patterns,
it could cause expensive backtracking when the
order spec did not actually match the regex
(the regex engine was trying all possible ways
to split the groups)

Forcing the repeating group to either end
with a comma or the end of the string prevents
prohibitive backtracking, while being even
more restrictive with regard to the syntax of
the order spec.

Closes #7755
2015-08-04 11:45:01 +02:00
..
__init__.py API docs: settings file and titles at modules 2011-06-23 12:03:57 +03:00
expression.py [FIX] expression: internal domain operators require different parsing 2015-06-23 15:04:45 +02:00
fields.py [FIX] fields: error if there is no value when convert a many2many relation 2015-06-24 16:52:05 +02:00
orm.py [FIX] orm: performance of regex to check search `order` spec 2015-08-04 11:45:01 +02:00
osv.py [IMP] osv: display full traceback in terminal (not client side) when a check fails instead of minimal error 2014-01-08 15:05:54 +01:00
query.py [REM] unnecessary parens 2012-12-14 13:38:03 +01:00