]> source.dussan.org Git - nextcloud-server.git/commit
Fix exponential increase of timeout when finding ancestor elements
authorDaniel Calviño Sánchez <danxuliu@gmail.com>
Wed, 3 May 2017 10:34:04 +0000 (12:34 +0200)
committerDaniel Calviño Sánchez <danxuliu@gmail.com>
Wed, 3 May 2017 10:34:04 +0000 (12:34 +0200)
commit97bedb94af6d1981a618a4fa0024edbdf93e1a7b
treeebb84206fdbc1f1b0e5421e5e1bcb4917e3d7b6d
parent94c2f12226ed005fc2a1e9c440ec70346e9c272a
Fix exponential increase of timeout when finding ancestor elements

The timeout passed to the "find" method was multiplied by the
"findTimeoutMultiplier" attribute. However, as "find" used
"findAncestor" and "findAncestor", in turn, used "find" itself the
timeout was increased exponentially for ancestor elements. Now "find"
was split in "find" and "findInternal"; the first method is the public
one and modifies the given parameters as needed and then calls the
second method, private, that performs the find itself.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
tests/acceptance/features/core/Actor.php