diff --git a/lib/Service/AppAPIService.php b/lib/Service/AppAPIService.php index 28aced7d..4bfc5164 100644 --- a/lib/Service/AppAPIService.php +++ b/lib/Service/AppAPIService.php @@ -300,17 +300,15 @@ public function validateExAppRequestToNC(IRequest $request, bool $isDav = false) $authValid = $authorizationSecret === $exApp->getSecret(); if ($authValid) { - if (!$isDav) { - try { - $path = $request->getPathInfo(); - } catch (\Exception $e) { - $this->logger->error(sprintf('Error getting path info. Error: %s', $e->getMessage()), ['exception' => $e]); - return false; - } - if (($this->sanitizeOcsRoute($path) !== '/apps/app_api/ex-app/state') && !$exApp->getEnabled()) { - $this->logger->error(sprintf('ExApp with appId %s is disabled (%s)', $request->getHeader('EX-APP-ID'), $request->getRequestUri())); - return false; - } + try { + $path = $request->getPathInfo(); + } catch (\Exception $e) { + $this->logger->error(sprintf('Error getting path info. Error: %s', $e->getMessage()), ['exception' => $e]); + return false; + } + if (($this->sanitizeOcsRoute($path) !== '/apps/app_api/ex-app/state') && !$exApp->getEnabled()) { + $this->logger->error(sprintf('ExApp with appId %s is disabled (%s)', $request->getHeader('EX-APP-ID'), $request->getRequestUri())); + return false; } if (!$this->handleExAppVersionChange($request, $exApp)) { return false;