udf.policy - Unable to Grant Read,Write to Specific File
September 22 2011 at 11:37 AM No score for this post
from IP address 188.8.131.52
Using a Java CDF that reads and writes to a file
I'm trying to grant permission to a specific file in the file system by granting permission in the udf.policy file.
When I uncomment the line permission java.security.AllPermission; the CDF works fine and interacts with the file correctly. This is just to prove that the CDF works, I need to tighten this up to a single file. I stop and start the app after each edit.(I've also tried bouncing the Essbase server too)
First of all, forgive my transgression in xposting this. I waited a few days for a response over there. My hope is that someone here who doesn't go there, might know how to address this:
When I use the following, I get an exception, shown below. Nothing of consequence is being written to the app or essbase logs
permission java.io.FilePermission "C:/test/essbase/CalcProfile.db", "write, read";
java.security.AccessControlException: access denied (java.io.FilePermission C:\esstest\Server\PlugIns\Essbase read)
I've tried creating the policy using PolicyTool, same result. However, I have no idea what or if I should put in the "CodeBase" field.
Has anyone had success creating read & write permissions to a single file using the udf.policy file? What is the magic syntax?
Scoring disabled. You must be logged in to score posts.