diff options
author | Vincent Petry <vincent@nextcloud.com> | 2021-08-05 10:42:38 +0200 |
---|---|---|
committer | Vincent Petry <vincent@nextcloud.com> | 2021-08-10 11:19:15 +0200 |
commit | 15a62c52374ec49025ccccca48c7c4f86ffd1f74 (patch) | |
tree | b7ef01488d3f6759df29ae8bf65594aeccb3bbca /apps/workflowengine/lib/Controller/UserWorkflowsController.php | |
parent | 7f69a60ab10da4ea521a5ef1802229a4d4fa2d2a (diff) | |
download | nextcloud-server-15a62c52374ec49025ccccca48c7c4f86ffd1f74.tar.gz nextcloud-server-15a62c52374ec49025ccccca48c7c4f86ffd1f74.zip |
Make "name" column nullable in workflow operations
The "name" column is now unused and the code is always inserting an
empty string. While this works with most databases, Oracle complains
because an empty string is equivalent to null.
To fix this, the column definition is changed to allow null values now.
Also added some logging in case of database exceptions, because without
this nothing would be logged to detect the above problem.
Signed-off-by: Vincent Petry <vincent@nextcloud.com>
Diffstat (limited to 'apps/workflowengine/lib/Controller/UserWorkflowsController.php')
-rw-r--r-- | apps/workflowengine/lib/Controller/UserWorkflowsController.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/apps/workflowengine/lib/Controller/UserWorkflowsController.php b/apps/workflowengine/lib/Controller/UserWorkflowsController.php index dfb17c17f9b..dd2457dd9e8 100644 --- a/apps/workflowengine/lib/Controller/UserWorkflowsController.php +++ b/apps/workflowengine/lib/Controller/UserWorkflowsController.php @@ -35,6 +35,7 @@ use OCP\AppFramework\OCS\OCSForbiddenException; use OCP\IRequest; use OCP\IUserSession; use OCP\WorkflowEngine\IManager; +use Psr\Log\LoggerInterface; class UserWorkflowsController extends AWorkflowController { @@ -48,9 +49,10 @@ class UserWorkflowsController extends AWorkflowController { $appName, IRequest $request, Manager $manager, - IUserSession $session + IUserSession $session, + LoggerInterface $logger ) { - parent::__construct($appName, $request, $manager); + parent::__construct($appName, $request, $manager, $logger); $this->session = $session; } |