Menu

#22 ImageMagick policy forbids handling PDF files

v1.0 (example)
open
nobody
None
5
2019-07-03
2018-10-07
darkdragon
No

ImageMagick now forbids handling PDF files by default. This is also the case in the version installed in Ubuntu 18.04. Thus the identify command will fail.

Disabling the following line in /etc/ImageMagick-6/policy.xml fixes it:
<policy domain="coder" rights="none" pattern="PDF"></policy>

Discussion

  • darkdragon

    darkdragon - 2018-10-07

    Maybe you can overwrite it with an environment variable or -limit command line option.

    See ImageMagick architecture and search for policy.xml.

    I noticed that in Ubuntu 18.04 the problem is a coder policy, while in the linked commit it is a module policy. Anyway, I hope you find a way to overwrite this policy!

     

    Last edit: darkdragon 2018-10-07
  • Tobias Elze

    Tobias Elze - 2018-10-07

    Thanks for bringing this up, this is pretty awful. I don't see a way to override this policy with -limit or with an environment variable. Do you have any ideas?

    The only way seems to be to edit the policy.xml file manually, which would be a nuisance for occasional users.

     
  • darkdragon

    darkdragon - 2018-10-12

    I don't have an idea myself but asked in the official forum.

     
  • darkdragon

    darkdragon - 2018-10-19

    The latest version distributed with Ubuntu 18.10 seems to ship with a version which does not forbid PDF handling by default.

    Here is a link to that version if you want to test it on your installation.

     
  • Tobias Elze

    Tobias Elze - 2018-10-20
    • Great to hear, although that does not solve the problem with 18.04 yet. It seems there is no other way than having the users to change the policy file manually. And even this only works if the user has admin rights.
     
  • darkdragon

    darkdragon - 2019-07-03

    Problem re-appeared in Ubuntu 19.04 with ImageMagick 6.9.10-14 :(

     

Log in to post a comment.

MongoDB Logo MongoDB