]> source.dussan.org Git - nextcloud-server.git/commit
fix(config): Throw PreconditionException always when it didn't match 47933/head
authorJoas Schilling <coding@schilljs.com>
Fri, 13 Sep 2024 07:16:35 +0000 (09:16 +0200)
committerJoas Schilling <coding@schilljs.com>
Fri, 13 Sep 2024 07:20:08 +0000 (09:20 +0200)
commitdcd97e12346125faf6b3b8e9dd8a93e695745f11
tree531029e96352dbc4a0b53af2b79d4558628a4723
parentc9e4598360335d7eab0f4a5153dbf16a1f161351
fix(config): Throw PreconditionException always when it didn't match

Previously even when the precondition did not match, the call "passed"
when the after value was the expected one. This however can lead to
race conditions, duplicate code excutions and other things.

Signed-off-by: Joas Schilling <coding@schilljs.com>
lib/private/AllConfig.php
tests/lib/AllConfigTest.php