Java security on cloud

0
Hi I have a requirement to store PDF documents temporary on the cloud. However I am not able to write as I get: java.security.AccessControlException: access denied ("java.io.FilePermission" "/data/tmp/tempmerged81.pdf" "write"). This page "https://world.mendix.com/display/refguide4/Java+in+the+Cloud" states that writing and reading to the folder in project_directory/data/tmp is allowed. Is there a way to "lax" the java security or allow reading and writing to another directory on the cloud?
asked
2 answers
1

From a security standpoint I would not allow other locations. Why does it matter where you can store them?

Regards,

Ronald

[EDIT] To get within Java the path to the temp directory in the cloud see this post

answered
0

Thanks for the reply. The java action merges two PDF documents and then requires it to write the merged document to a file on the cloud. I then read from the stored document to get an InputStream so that I can use the Core.storeFileDocumentContent method to create a file document in my Mendix App. I then delete the temp file created. It does not matter where I store the temp.pdf only that my merger action (using Apache PDFBox) can store a file to read from. I essentially am merging a portrait pdf doc with a landscape pdf doc. The Java action works as required on local system. My only hurdle is the writing the temp file in cloud.

answered