misc/migration/3.7.2_Any.py
author Aurelien Campeas <aurelien.campeas@logilab.fr>
Tue, 19 Mar 2013 15:30:06 +0100
changeset 8736 b84a233cb8b0
parent 5015 55e2602545cd
permissions -rw-r--r--
[views/primary] some inner sections should use the `limit` by default to avoid a denial of service (closes #2719110) Today, it is possible to call .related and get a huge unlimited database-dos-inducing resultset that will be nevertheless limited a bit further in pure python in the `autolimited` view. While we cannot completely avoid potential denial of services such as these we mitigate the problem with the default ui settings: if the inner vid is `autolimited`, then the relation result sets is computed using the user-defined limit. This change respects the semantics of the `autolimited` view and shouldn't break anything.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5015
55e2602545cd fix migration script
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5013
diff changeset
     1
sql('DROP FUNCTION IF EXISTS _fsopen(bytea)')
55e2602545cd fix migration script
Sylvain Thénault <sylvain.thenault@logilab.fr>
parents: 5013
diff changeset
     2
sql('DROP FUNCTION IF EXISTS fspath(bigint, text, text)')