Closed dcaud closed 10 months ago
Yeah I don't think it is possible to work around the policy restrictions. I can try to ping the sysadmins...
I actually thought they had just removed the policy: https://github.com/rstudio/shinyapps-package-dependencies/pull/323
They definitely removed the policy a while back, but it has reappeared.
Thanks, jeroen! I think what happened is that they wrote a script to remove policy.xml for Focal that has was included (and updated) to work with Jammy.
The Posit folks fixed this so new apps launched there do not continue to have this problem.
The error happens when trying to write to a pdf with image_write() on shinyapps.io. I think the Posit needs to change the policy.xml file on their newly updated Ubuntu servers (see https://stackoverflow.com/questions/52998331/imagemagick-security-policy-pdf-blocking-conversion).
Do you have ideas to fix this issue without needing to wait for Posit to make a change?
Here's an example app that reproduces the error:
Related: https://github.com/rstudio/shinyapps-package-dependencies/pull/289#issuecomment-1780301670