From f3d7292ce284897721a6bdd58c2662c4cf952c2e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=B4me=20Chilliet?= Date: Thu, 12 Jan 2023 17:54:55 +0100 Subject: [PATCH] Tear down in catch of an Exception MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Côme Chilliet --- apps/provisioning_api/lib/Controller/AUserData.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/apps/provisioning_api/lib/Controller/AUserData.php b/apps/provisioning_api/lib/Controller/AUserData.php index 5913cb51314..d0fce7e532d 100644 --- a/apps/provisioning_api/lib/Controller/AUserData.php +++ b/apps/provisioning_api/lib/Controller/AUserData.php @@ -276,6 +276,8 @@ abstract class AUserData extends OCSController { 'exception' => $e, ] ); + /* In case the Exception left things in a bad state */ + \OC_Util::tearDownFS(); return []; } return $data;