From 0eb36160d010d2fae1002c61f87f29164b800a74 Mon Sep 17 00:00:00 2001 From: Oleksander Piskun Date: Wed, 26 Mar 2025 09:13:41 +0200 Subject: [PATCH] (chore): removed the filling of the deprecated 'app_api_system' session flag Signed-off-by: Oleksander Piskun --- lib/Service/AppAPIService.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/Service/AppAPIService.php b/lib/Service/AppAPIService.php index fc2b9b85..9993dc1d 100644 --- a/lib/Service/AppAPIService.php +++ b/lib/Service/AppAPIService.php @@ -346,7 +346,6 @@ private function finalizeRequestToNC(ExApp $exApp, string $userId, IRequest $req $this->userSession->setUser(null); } $this->session->set('app_api', true); - $this->session->set('app_api_system', true); // TODO: Remove after drop support NC29 if ($delay) { $this->throttler->resetDelay($request->getRemoteAddress(), Application::APP_ID, [ @@ -448,7 +447,7 @@ public function runOccCommandInternal(array $args): bool { } $this->logger->info(sprintf('Calling occ(directory=%s): %s', $occDirectory ?? 'null', $args)); $process = proc_open('php console.php ' . $args, $descriptors, $pipes, $occDirectory); - + if (!is_resource($process)) { $this->logger->error(sprintf('Error calling occ(directory=%s): %s', $occDirectory ?? 'null', $args)); return false; @@ -469,7 +468,7 @@ public function runOccCommandInternal(array $args): bool { } $this->logger->info(sprintf('OCC command executed successfully. stdout: %s, stderr: %s', $stdout, $stderr)); - + return true; }