NC21 Logging Passwords Internal Favicon API Error

Hi,
Trunas server release 12 with nginx reverse proxy two factor authentication app and SSL active.
Plugin app “Passwords” working but displaying a few fatal errors in the NC21 logging full details below:

Blockquote
OCA\Passwords\Exception\ApiException: Internal Favicon API Error
/usr/local/www/nextcloud/apps/passwords/lib/Controller/Api/ServiceApiController.php - line 186:
OCA\Passwords\Services\FaviconService->getFavicon()
/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 218:
OCA\Passwords\Controller\Api\ServiceApiController->getFavicon()
/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 127:
OC\AppFramework\Http\Dispatcher->executeController()
/usr/local/www/nextcloud/lib/private/AppFramework/App.php - line 157:
OC\AppFramework\Http\Dispatcher->dispatch()
/usr/local/www/nextcloud/lib/private/Route/Router.php - line 302:
OC\AppFramework\App::main()
/usr/local/www/nextcloud/lib/base.php - line 993:
OC\Route\Router->match()
/usr/local/www/nextcloud/index.php - line 37:
OC::handleRequest()
Blockquote

Below this error is logged as well:

Blockquote
ImagickException: attempt to perform an operation not allowed by the security policy `MVG’ @ error/constitute.c/IsCoderAuthorized/412
/usr/local/www/nextcloud/apps/passwords/lib/Helper/Image/ImagickHelper.php - line 111:
Imagick->readimage()
/usr/local/www/nextcloud/apps/passwords/lib/Helper/Icon/FallbackIconGenerator.php - line 124:
OCA\Passwords\Helper\Image\ImagickHelper->getImageFromFile()
/usr/local/www/nextcloud/apps/passwords/lib/Helper/Icon/FallbackIconGenerator.php - line 81:
OCA\Passwords\Helper\Icon\FallbackIconGenerator->createIconFromSvg()
/usr/local/www/nextcloud/apps/passwords/lib/Helper/Favicon/AbstractFaviconHelper.php - line 117:
OCA\Passwords\Helper\Icon\FallbackIconGenerator->createIcon()
/usr/local/www/nextcloud/apps/passwords/lib/Services/FaviconService.php - line 97:
OCA\Passwords\Helper\Favicon\AbstractFaviconHelper->getDefaultFavicon()
/usr/local/www/nextcloud/apps/passwords/lib/Controller/Api/ServiceApiController.php - line 186:
OCA\Passwords\Services\FaviconService->getFavicon()
/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 218:
OCA\Passwords\Controller\Api\ServiceApiController->getFavicon()
/usr/local/www/nextcloud/lib/private/AppFramework/Http/Dispatcher.php - line 127:
OC\AppFramework\Http\Dispatcher->executeController()
/usr/local/www/nextcloud/lib/private/AppFramework/App.php - line 157:
OC\AppFramework\Http\Dispatcher->dispatch()
/usr/local/www/nextcloud/lib/private/Route/Router.php - line 302:
OC\AppFramework\App::main()
/usr/local/www/nextcloud/lib/base.php - line 993:
OC\Route\Router->match()
/usr/local/www/nextcloud/index.php - line 37:
OC::handleRequest()
Blockquote

This looks like an issue caused by image magicks permissions. If you google the error, the answers suggest that you need to edit the policy.xml of image magick.

Alternatively, you can set the image rendering option in the app settings to “PHP gdlib”. However that option can’t use svg.

Thanks found the solution changed from “none” to “read|write”.

<policy domain="coder" rights="read|write" pattern="MVG" />