You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We overwrite /etc/ImageMagick-6/policy.xml when building the docker image, and a newest change in our policy was to allow the .jpg extension using the coder domain:
<policymap>
...
<!-- Allow `.jpg` explicit, other then the `module` domain, the `coder` does NOT assigns rights to all formats of given patterns, see https://github.com/ImageMagick/ImageMagick/issues/6061 -->
<policy domain="coder" rights="read|write" pattern="{JPEG,PNG,JPG}" />
</policymap>
To explain the reasoning, I added the comment, above the policy, but this seems to break the policy, as it works when I remove the comment.
I suspect a parsing error, as I use some special characters, like "`", and the URL slashes "/"...
Definitely the backticks are the culprit, this works:
<policymap>
<!-- Allow ".jpg" explicit, other then the "module" domain, the "coder" does NOT assigns rights to all formats of given patterns, see https://github.com/ImageMagick/ImageMagick/issues/6061 -->
<policy domain="coder" rights="read|write" pattern="{JPEG,PNG,JPG}" />
</policymap>
renepupil
changed the title
XML Comment in /etc/ImageMagick-6/policy.xml breaks policy
Backticks in XML Comment breaks policy in /etc/ImageMagick-6/policy.xmlApr 23, 2024
We overwrite
/etc/ImageMagick-6/policy.xml
when building the docker image, and a newest change in our policy was to allow the.jpg
extension using thecoder
domain:To explain the reasoning, I added the comment, above the policy, but this seems to break the policy, as it works when I remove the comment.
I suspect a parsing error, as I use some special characters, like "`", and the URL slashes "/"...
\Imagick::getVersion()
:The text was updated successfully, but these errors were encountered: