All questions about EDocman extension

Imagik error

  • jean-marc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #145195 by jean-marc
Imagik error was created by jean-marc
Hello,
I'm trying to generate PDF thumbnail with imagik but each time i'got : 

Save failed with the following error: attempt to perform an operation not allowed by the security policy `PDF' @ error/constitute.c/IsCoderAuthorized/408

Someone has already fix this ?
joomla : last
Edocman : last 
Ubuntu : 20.04
Ngnix proxy to apache

Imagik policy.xml :
<policymap>
<policy domain="module" rights="read|write" pattern="{PS,PDF,XPS}" />
  <!-- <policy domain="system" name="shred" value="2"/> -->
  <!-- <policy domain="system" name="precision" value="6"/> -->
  <!-- <policy domain="system" name="memory-map" value="anonymous"/> -->
  <!-- <policy domain="system" name="max-memory-request" value="256MiB"/> -->
  <!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
  <policy domain="resource" name="memory" value="256MiB"/>
  <policy domain="resource" name="map" value="512MiB"/>
  <policy domain="resource" name="width" value="16KP"/>
  <policy domain="resource" name="height" value="16KP"/>
  <!-- <policy domain="resource" name="list-length" value="128"/> -->
  <policy domain="resource" name="area" value="128MB"/>
  <policy domain="resource" name="disk" value="1GiB"/>
  <!-- <policy domain="resource" name="file" value="768"/> -->
  <!-- <policy domain="resource" name="thread" value="4"/> -->
  <!-- <policy domain="resource" name="throttle" value="0"/> -->
  <!-- <policy domain="resource" name="time" value="3600"/> -->
  <!-- <policy domain="coder" rights="none" pattern="MVG" /> -->
  <!-- <policy domain="module" rights="none" pattern="{PS,PDF,XPS}" /> -->
  <!-- <policy domain="delegate" rights="none" pattern="HTTPS" /> -->
  <!-- <policy domain="path" rights="none" pattern="@*" /> -->
  <!-- <policy domain="cache" name="memory-map" value="anonymous"/> -->
  <!-- <policy domain="cache" name="synchronize" value="True"/> -->
  <!-- <policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/> -->
  <!-- <policy domain="system" name="pixel-cache-memory" value="anonymous"/> -->
  <!-- <policy domain="system" name="shred" value="2"/> -->
  <!-- <policy domain="system" name="precision" value="6"/> -->
  <!-- not needed due to the need to use explicitly by mvg: -->
  <!-- <policy domain="delegate" rights="none" pattern="MVG" /> -->
  <!-- use curl -->
  <policy domain="delegate" rights="none" pattern="URL" />
  <policy domain="delegate" rights="none" pattern="HTTPS" />
  <policy domain="delegate" rights="none" pattern="HTTP" />
  <!-- in order to avoid to get image with password text -->
  <policy domain="path" rights="none" pattern="@*"/>
  <!-- disable ghostscript format types -->

<!--  <policy domain="coder" rights="none" pattern="PS" />
  <policy domain="coder" rights="none" pattern="PS2" />
  <policy domain="coder" rights="none" pattern="PS3" />
  <policy domain="coder" rights="none" pattern="EPS" />
  <policy domain="coder" rights="none" pattern="PDF" />
  <policy domain="coder" rights="none" pattern="XPS" /> -->
</policymap>

THX
 

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #145198 by Mr. Dam
Replied by Mr. Dam on topic Imagik error
Hi,
We are not sure about that error, but we think it has cause from
ImageMagick library. In that case, you need to disable the plugin: Edocman Generate Thumnbnail to solve the issue
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • jean-marc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #145200 by jean-marc
Replied by jean-marc on topic Imagik error
Ok Thanks,
But if I disable the plugin I could not auto-generate thumbnail And the library is useless ?
I'm digging to try to fix that in the conf of ImageMagick
Thanks
Jean

Please Log in or Create an account to join the conversation.

  • jean-marc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #145201 by jean-marc
Replied by jean-marc on topic Imagik error
Ok Thanks,
But if I disable the plugin I could not auto-generate thumbnail And the library is useless ?
I'm digging to try to fix that in the conf of ImageMagick
Thanks
Jean

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #145214 by Mr. Dam
Replied by Mr. Dam on topic Imagik error
Hi Jean,
You need to contact with Hosting admin to ask them the problem with ImageMagick library
Thanks
Dam

Please Log in or Create an account to join the conversation.

  • jean-marc
  • Topic Author
  • Offline
  • New Member
  • New Member
More
3 years 5 months ago #145337 by jean-marc
Replied by jean-marc on topic Imagik error
Hi dam,
Sorry for delay,
I've reinstalled the librairy and now all goes like a charm.
Regards,
Jean

Please Log in or Create an account to join the conversation.

More
3 years 5 months ago #145356 by Mr. Dam
Replied by Mr. Dam on topic Imagik error
Ok Jean

Please Log in or Create an account to join the conversation.

Moderators: Mr. Dam