Copy link to clipboard
Copied
Hello, everyone.
I'm working on a script that will delete specific SOLR collections, re-create them, index them, then optimize them.
The delete portion succeeds. The create, however, is failing with a permissions issue:
access denied ("java.io.FilePermission" "X:\www\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\collections\xyz" "read")
What the heck is it trying to "read" when creating a collection with a CFCOLLECTION tag??
<cfcollection action="create" collection="xyz"
categories="no" path="X:\www\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion\collections\xyz"
language="English" engine="solr">
It runs fine if sandbox is disabled. This is not an option. Can anyone, please, help fix this?
Sandbox gives the CF account Read,Write,Execute on EVERYTHING.
^_^
Copy link to clipboard
Copied
Is it possible that this issue is related to Java 7?
I'm not sure of the timing, but this _may_ have started around the time that my dev system and the production systems were "upgraded" to Java 7.
^_^
Copy link to clipboard
Copied
What happens when you explicitly give all permissions to cfcollection?
Copy link to clipboard
Copied
The account that CF runs under has full control of the folders, and in the sandbox security the settings are for Read, Write, Execute for the root collections folder and all sub folders and files.
^_^
Copy link to clipboard
Copied
It is NOT related to Java 7. I uninstalled Java 7 from my dev machine and tested. The issue still remains.
I thought there might be a possibility that Tomcat didn't have the permissions, but this is also not the issue.
Still looking for a solution.
^_^