]> source.dussan.org Git - nextcloud-server.git/commit
fix(config): Throw PreconditionException always when it didn't match backport/47933/stable30 47940/head
authorJoas Schilling <coding@schilljs.com>
Fri, 13 Sep 2024 07:16:35 +0000 (09:16 +0200)
committerbackportbot[bot] <backportbot[bot]@users.noreply.github.com>
Fri, 13 Sep 2024 11:40:13 +0000 (11:40 +0000)
commit66a6b442b5543a571ba405d328651677774b699a
treed4961e99c22994665735208c3e34e6a147525f25
parent91533fb6f7ac0d61f8016aafe5e06bed75fb7498
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