not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post any defects you find in the released or beta versions of the ImageMagick software here. Include the ImageMagick version, OS, and any command-line required to reproduce the problem. Got a patch for a bug? Post it here.
Post Reply
vedsingh
Posts: 1
Joined: 2018-02-19T03:07:23-07:00
Authentication code: 1152

not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post by vedsingh »

I am using wand package for image resizing (http://docs.wand-py.org/en/0.4.4/). It all works well with rest of image type i.e. jpg,png,gif but while resizing SVG image it is giving not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback error.

As per research, Changing policy of MVG to Read in policy.xml might resolve the error, is this correct?
Also i am using AWS lambda and image Magick is installed on lambda server for which we do not have access. Any idea we can fix this issue?
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post by snibgo »

What version of IM?

It is likely that policy.xml prohibits you from reading SVG. Can you paste the contents of policy.xml here?
snibgo's IM pages: im.snibgo.com
vrabeshkoxb
Posts: 1
Joined: 2018-05-11T02:48:38-07:00
Authentication code: 1152

Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post by vrabeshkoxb »

I have the same issue
Command failed: identify: not authorized `/tmp/magick-OgHGi6xW' @ error/constitute.c/ReadImage/454

I use command:

Code: Select all

convert in.svg -synchronize -channel A -ordered-dither checks out.png
Command runs in aws lambda

My policies:

Code: Select all

  <policy domain="coder" rights="none" pattern="EPHEMERAL" />
  <policy domain="coder" rights="none" pattern="HTTPS" />
  <policy domain="coder" rights="none" pattern="HTTP" />
  <policy domain="coder" rights="none" pattern="URL" />
  <policy domain="coder" rights="none" pattern="FTP" />
  <policy domain="coder" rights="none" pattern="MVG" />
  <policy domain="coder" rights="none" pattern="MSL" />
  <policy domain="coder" rights="none" pattern="TEXT" />
  <policy domain="coder" rights="none" pattern="LABEL" />
  <policy domain="path" rights="none" pattern="@*" />
Version of IM 6.7.8
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: not authorized `/tmp/magick-f4mXmqwC' @ error/constitute.c/ReadImage/454: PolicyError Traceback

Post by snibgo »

I suggest you remove or comment-out the MVG line.
snibgo's IM pages: im.snibgo.com
Post Reply