libresign icon indicating copy to clipboard operation
libresign copied to clipboard

Cannot set non existing property OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler

Open nlublovary opened this issue 9 months ago • 0 comments

Reference This is a follow-up to #3040

Describe the bug Installed latest LibreSign App version 9.0.2 on Nextcloud 29.0.0, when clicking Files or Settings>LibreSign I still receive same error: Cannot set non existing property OCA\\Libresign\\Handler\\CertificateEngine\\CfsslHandler->set = array (\n 0 => 'mydomain.com',\n). This bug breaks Nextcloud because it throws an exception when trying to get into the Files page.

Suggestion The error is thrown because Nextcloud can't find "set" property in CfsslHandler. This error can be mitigated and LibreSign will start to work, by adding the following into ./apps/libresign/lib/Handler/CertificateEngine/CfsslHandler.php

	public function set($uri): void {
		if ($uri) {
			$this->appConfig->setAppValue('cfssl_uri', $uri);
		} else {
			$this->appConfig->deleteAppValue('cfssl_uri');
		}
		$this->cfsslUri = $uri;
	}

Hope it helps. Cheers.

nlublovary avatar May 25 '24 14:05 nlublovary