attempt to perform an operation not allowed by the security policy `PDF'

Created on 5 September 2024, 4 months ago
Updated 7 September 2024, 4 months ago

This is still happening with 6.1.1.

attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/413

The solution from the parent issue isn't clear and doesn't describe the workaround.

πŸ› Bug report
Status

Active

Version

6.1

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States stephenplatz

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @stephenplatz
  • πŸ‡«πŸ‡·France sgostanyan

    The error you are encountering, attempt to perform an operation not allowed by the security policy 'PDF' @ error/constitute.c/IsCoderAuthorized/413, is not related to the module itself but rather to the ImageMagick security policies configured on your server.

    ImageMagick has a configuration file, typically called policy.xml, that defines rules for which operations are permitted or denied. In your case, the server's ImageMagick policy is restricting access to PDF files, which is why the module is unable to read or process the PDF.

    To resolve this, your server administrator will need to modify the policy.xml file to allow the processing of PDFs. Specifically, they need to adjust the following entry:

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

    If the rights are set to none, PDF operations will be blocked. Updating the rights to read|write should allow the module to work as expected.

    Please note that the location and content of the policy.xml file may vary depending on the version of ImageMagick installed. Typically, it can be found in directories such as /etc/ImageMagick/ or /etc/ImageMagick-7/ depending on the version.

Production build 0.71.5 2024